GNOME Bugzilla – Bug 711288
Error when aspect ratio of transport stream changes on raspberry pi
Last modified: 2013-11-11 18:05:30 UTC
Video files: Input: http://reauktion.de/gst/test.ts Output: http://reauktion.de/gst/test.mkv Pipeline: GST_DEBUG=3 gst-launch-1.0 filesrc location=test.ts ! progressreport ! tsparse ! decodebin name=demux demux. ! queue ! audioconvert ! voaacenc bitrate=128000 ! queue ! mux. demux. ! queue ! videoconvert ! deinterlace ! videoconvert ! omxh264enc control-rate=1 target-bitrate=1250000 ! "video/x-h264,profile=high" ! queue ! h264parse ! mux. matroskamux name=mux ! filesink location=test.mkv Log: 0:00:00.345725462 2394 0xb62720 ERROR omx gstomx.c:2767:plugin_init: Invalid type name 'GstOMXTheoraDec' for element 'omxtheoradec' 0:00:00.347406416 2394 0xb62720 ERROR omx gstomx.c:2767:plugin_init: Invalid type name 'GstOMXVP8Dec' for element 'omxvp8dec' Setting pipeline to PAUSED ... Pipeline is PREROLLING ... 0:00:00.651820018 2394 0xb757b0 WARN default descriptions.c:611:format_info_get_desc: Unexpected MPEG-1 layer in audio/mpeg, mpegversion=(int)1 0:00:01.183420353 2394 0xb75b20 FIXME videoencoder gstvideoencoder.c:589:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0> GstVideoEncoder::reset() is deprecated 0:00:01.311515820 2394 0xc5cec0 ERROR omxvideoenc gstomxvideoenc.c:725:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> No corresponding frame found 0:00:01.317960642 2394 0xc5cec0 ERROR omxvideoenc gstomxvideoenc.c:725:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> No corresponding frame found 0:00:01.350815737 2394 0xb75a90 FIXME basesink gstbasesink.c:3022:gst_base_sink_default_event:<filesink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock 0:00:01.905868426 2394 0xb75a30 WARN matroskamux matroska-mux.c:3249:gst_matroska_mux_write_data:<mux:video_0> Invalid buffer timestamp; dropping buffer 0:00:02.710492234 2394 0xc0b350 WARN videodecoder gstvideodecoder.c:2315:gst_video_decoder_prepare_finish_frame:<omxmpeg2videodec-omxmpeg2videodec0> decreasing timestamp (0:00:00.940000000 < 0:00:03.940000000) 0:00:03.716206492 2394 0xb4a9b0 ERROR omx gstomx.c:1994:gst_omx_port_wait_buffers_released_unlocked:<omxmpeg2videodec-omxmpeg2videodec0> Timeout waiting for video_decode port 131 to release all buffers 0:00:03.718094440 2394 0xb4a9b0 WARN videodecoder gstvideodecoder.c:809:gst_video_decoder_setcaps:<omxmpeg2videodec-omxmpeg2videodec0> Subclass refused caps 0:00:03.719564399 2394 0xb4a9b0 WARN videodecoder gstvideodecoder.c:2015:gst_video_decoder_chain:<omxmpeg2videodec-omxmpeg2videodec0> error: decoder not initialized ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:demux/GstOMXMPEG2VideoDec-omxmpeg2videodec:omxmpeg2videodec-omxmpeg2videodec0: GStreamer error: negotiation problem. Additional debug info: gstvideodecoder.c(2015): gst_video_decoder_chain (): /GstPipeline:pipeline0/GstDecodeBin:demux/GstOMXMPEG2VideoDec-omxmpeg2videodec:omxmpeg2videodec-omxmpeg2videodec0: decoder not initialized Execution ended after 0:00:02.336424555 Setting pipeline to PAUSED ... Setting pipeline to READY ... 0:00:03.733595012 2394 0xb757b0 WARN mpegtsbase mpegtsbase.c:1311:mpegts_base_loop:<mpegtsparse2-0> error: Internal data stream error. 0:00:03.736757924 2394 0xb757b0 WARN mpegtsbase mpegtsbase.c:1311:mpegts_base_loop:<mpegtsparse2-0> error: stream stopped, reason not-negotiated 0:00:03.758243332 2394 0xb62720 ERROR omx gstomx.c:792:gst_omx_component_set_state:<omxmpeg2videodec-omxmpeg2videodec0> Error setting video_decode state from 3 to 2: Insufficient resources (0x80001000) 0:00:08.759661356 2394 0xb62720 WARN omx gstomx.c:877:gst_omx_component_get_state:<omxmpeg2videodec-omxmpeg2videodec0> video_decode timeout while waiting for state change 0:00:13.761758389 2394 0xb62720 WARN omx gstomx.c:877:gst_omx_component_get_state:<omxmpeg2videodec-omxmpeg2videodec0> video_decode timeout while waiting for state change 0:00:13.762521368 2394 0xb62720 ERROR omx gstomx.c:792:gst_omx_component_set_state:<omxmpeg2videodec-omxmpeg2videodec0> Error setting video_decode state from 3 to 1: Insufficient resources (0x80001000) 0:00:18.774928184 2394 0xb62720 WARN omx gstomx.c:877:gst_omx_component_get_state:<omxmpeg2videodec-omxmpeg2videodec0> video_decode timeout while waiting for state change Setting pipeline to NULL ... Freeing pipeline ...
So, multiple possible issues: a) decoder does not handle aspect ratio change, this is bug #710948 b) encoder might not handle aspect ratio change properly c) muxer will not accept aspect ratio change (this is kind of expected for matroska, try a different muxer such as mpegpsmux or mpegtsmux).
Yes, first of all this is a). Related to that we'll have to fix it in a similar way for the encoder too. c) is a problem in the application *** This bug has been marked as a duplicate of bug 710948 ***