mpegts muxing of arbitrary movies for streaming

Manusha Wijekoon manusha1980 at gmail.com
Sat Sep 5 09:00:58 PDT 2015


Hi

I am trying to demux/decode an arbitrary movie file and then re-mux it to a
mpegts stream to use in streaming. I am able to do this for video, but it
needs to support audio as well as subtitles. As a first step I tried adding
audio to the already working video only pipeline. (NOTE: I have removed the
streaming elements here).

gst-launch-1.0 -v filesrc location=movie.mkv ! decodebin name=dec ! queue !
videoconvert ! videorate ! avenc_mpeg2video !  mpegtsmux name=mux ! tsdemux
name=de ! video/mpeg ! queue ! avdec_mpeg2video  ! autovideosink de. !
queue ! audio/mpeg ! avdec_mp2float ! alsasink dec. ! audioparse !
audioconvert ! audioresample ! audiorate ! avenc_mp2 ! mux.

however this does not work and gives this error.

:00:01.214010413 14290 0x7fb228012b20 DEBUG               GST_PADS
gstpad.c:5150:gst_pad_send_event_unchecked:<src_2:proxypad5> sent event,
ret error
0:00:01.218444164 14290 0x7fb228012990 DEBUG           videodecoder
gstvideodecoder.c:3008:gst_video_decoder_decode_frame:<avdec_h264-0> flow
error not-negotiated
0:00:01.220119392 14290 0x7fb22c0484f0 WARN           matroskademux
matroska-demux.c:4500:gst_matroska_demux_loop:<matroskademux0> error:
stream stopped, reason not-negotiated
0:00:01.220184047 14290 0x7fb22802dcf0 DEBUG               GST_PADS
gstpad.c:5150:gst_pad_send_event_unchecked:<src_3:proxypad6> sent event,
ret error
0:00:01.220268768 14290 0x7fb22c0484f0 INFO        GST_ERROR_SYSTEM
gstelement.c:1835:gst_element_message_full:<matroskademux0> posting
message: GStreamer encountered a general stream error.
0:00:01.220308728 14290 0x7fb22c0484f0 DEBUG                GST_BUS
gstbus.c:310:gst_bus_post:<bus0> [msg 0x2828730] posting on bus error
message: 0x2828730, time 99:99:99.999999999, seq-num 771, element
'matroskademux0', GstMessageError, gerror=(GError)NULL,
debug=(string)"matroska-demux.c\(4500\):\ gst_matroska_demux_loop\ \(\):\
/GstPipeline:pipeline0/GstDecodeBin:dec/GstMatroskaDemux:matroskademux0:\012stream\
stopped\,\ reason\ not-negotiated";
0:00:01.220487233 14290 0x7fb22c0484f0 DEBUG                    bin
gstbin.c:3409:gst_bin_handle_message_func:<dec> [msg 0x2828730] handling
child matroskademux0 message of type error


I am unable to understand the issue and some help is much appreciated.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150905/be7df21b/attachment.html>


More information about the gstreamer-devel mailing list