GNOME Bugzilla – Bug 723386
Bad port index playing VC-1 WMV in Raspberry Pi
Last modified: 2014-07-23 08:24:54 UTC
Using gst-omx with gstreamer 1.0 on Raspberry Pi works perfectly for MP4, but for VC-1 WMV I get this error: $ gst-launch-1.0 --gst-debug omx*:5 playbin uri=file:///home/pi/f_184.bin.wmv Setting pipeline to PAUSED ... Pipeline is PREROLLING ... 0:00:00.761259508 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxmpeg2videodec' 0:00:00.764297390 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxmpeg4videodec' 0:00:00.766645300 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxh263dec' 0:00:00.769115204 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxh264dec' 0:00:00.770573147 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxtheoradec' 0:00:00.773794023 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxvp8dec' 0:00:00.776275926 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxmjpegdec' 0:00:00.778765830 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxvc1dec' 0:00:00.780051780 2597 0x201c60 DEBUG omx gstomx.c:2758:plugin_init: Registering element 'omxh264enc' 0:00:00.783500647 2597 0x201c60 DEBUG omx gstomx.c:2659:_class_init: No src template caps specified for element 'omxvc1dec', using default 'video/x-raw, width = (int) [ 1, max ], height = (int) [ 1, max ], framerate = (fraction) [ 0, max ]' 0:00:00.787106507 2597 0x201c60 DEBUG omx gstomx.c:2684:_class_init: Using hack: no-component-role 0:00:00.793024278 2597 0x201c60 DEBUG omxvideodec gstomxvideodec.c:731:gst_omx_video_dec_open:<omxwmvdec-omxvc1dec0> Opening decoder 0:00:00.807414720 2597 0x201c60 DEBUG omx gstomx.c:129:gst_omx_core_acquire: Successfully loaded core '/opt/vc/lib/libopenmaxil.so' 0:00:00.812541521 2597 0x201c60 DEBUG omx gstomx.c:144:gst_omx_core_acquire: Successfully initialized core '/opt/vc/lib/libopenmaxil.so' 0:00:00.816939351 2597 0x201c60 DEBUG omx gstomx.c:653:gst_omx_component_new:<omxwmvdec-omxvc1dec0> Successfully got component handle 0x30be30 (OMX.broadcom.video_encode) from core '/opt/vc/lib/libopenmaxil.so' 0:00:00.819010271 2597 0x201c60 DEBUG omx gstomx.c:807:gst_omx_component_get_state:<omxwmvdec-omxvc1dec0> Getting state of video_encode 0:00:00.821262184 2597 0x201c60 DEBUG omx gstomx.c:884:gst_omx_component_get_state:<omxwmvdec-omxvc1dec0> video_encode returning state Loaded 0:00:00.823679090 2597 0x201c60 DEBUG omx gstomx.c:906:gst_omx_component_add_port:<omxwmvdec-omxvc1dec0> video_encode adding port 130 0:00:00.824698051 2597 0x201c60 DEBUG omx gstomx.c:997:gst_omx_component_get_parameter:<omxwmvdec-omxvc1dec0> Getting video_encode parameter at index 0x02000001 0:00:00.827297950 2597 0x201c60 DEBUG omx gstomx.c:1000:gst_omx_component_get_parameter:<omxwmvdec-omxvc1dec0> Got video_encode parameter at index 0x02000001: Bad port index (0x8000101b) 0:00:00.830305833 2597 0x201c60 ERROR omx gstomx.c:915:gst_omx_component_add_port:<omxwmvdec-omxvc1dec0> video_encode failed to add port 130: Bad port index (0x8000101b) 0:00:00.831894772 2597 0x201c60 DEBUG omx gstomx.c:906:gst_omx_component_add_port:<omxwmvdec-omxvc1dec0> video_encode adding port 131 0:00:00.833234720 2597 0x201c60 DEBUG omx gstomx.c:997:gst_omx_component_get_parameter:<omxwmvdec-omxvc1dec0> Getting video_encode parameter at index 0x02000001 0:00:00.835026650 2597 0x201c60 DEBUG omx gstomx.c:1000:gst_omx_component_get_parameter:<omxwmvdec-omxvc1dec0> Got video_encode parameter at index 0x02000001: Bad port index (0x8000101b) 0:00:00.835532631 2597 0x201c60 ERROR omx gstomx.c:915:gst_omx_component_add_port:<omxwmvdec-omxvc1dec0> video_encode failed to add port 131: Bad port index (0x8000101b)
That was fixed in git by this commit already: commit 92098e66afba94a1f2bb844a88b9c7de8b2c712a Author: Josep Torra <n770galaxy@gmail.com> Date: Fri Sep 20 17:19:53 2013 +0200 rpi: fix a copy paste error in the config file
I am using the 1.0 branch, which hadn't this applied. With this change, it fixed this problem on 1.0 also.