Convert MP4 to MPEG2-TS

Ashwini Sharma ak.ashwini at gmail.com
Mon Mar 28 23:03:17 PDT 2011


Hi All,

I am trying to convert a MP4 to MPEG2-TS file.
I am using the following pipe to do so.

gst-launch filesrc location=/home/ashwini/streams/ishq.mp4 ! decodebin
name=dec ! queue ! ffenc_mpeg2video quantizer=4 gop-size=1 ! mpegtsmux
name=mux ! filesink location=myfile.ts dec. ! queue ! audioconvert !
ffenc_aac ! mux.

But I get the error

ERROR: from element
/GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0: GStreamer
encountered a general stream error.
Additional debug info:
qtdemux.c(3051): gst_qtdemux_loop ():
/GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0:
streaming stopped, reason not-negotiated

When I play the MP4 file, i am able to do successfully.

Can anybody help with what I should be doing?

-Ashwini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110329/13c22c88/attachment.htm>


More information about the gstreamer-devel mailing list