<div dir="ltr">Hi<div><br></div><div>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).</div><div><br></div><div>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.<br></div><div><br></div><div>however this does not work and gives this error.</div><div><br></div><div><div><div>:00:01.214010413 14290 0x7fb228012b20 DEBUG               GST_PADS gstpad.c:5150:gst_pad_send_event_unchecked:<src_2:proxypad5> sent event, ret error</div><div>0:00:01.218444164 14290 0x7fb228012990 DEBUG           videodecoder gstvideodecoder.c:3008:gst_video_decoder_decode_frame:<avdec_h264-0> flow error not-negotiated</div><div>0:00:01.220119392 14290 0x7fb22c0484f0 WARN           matroskademux matroska-demux.c:4500:gst_matroska_demux_loop:<matroskademux0> error: stream stopped, reason not-negotiated</div><div>0:00:01.220184047 14290 0x7fb22802dcf0 DEBUG               GST_PADS gstpad.c:5150:gst_pad_send_event_unchecked:<src_3:proxypad6> sent event, ret error</div><div>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.</div><div>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";</div><div>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</div></div></div><div><br></div><div><br></div><div>I am unable to understand the issue and some help is much appreciated.</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div></div>