Convert MP4 to MPEG2-TS

Ashwini Sharma ak.ashwini at gmail.com
Mon Mar 28 23:45:33 PDT 2011


Hi,
 I tried your suggestion, But to no avail.

following is the log. If you can help with something...

gst-launch -v filesrc
location=/home/ashwini/dsk2/dtvemu/nfs/rootfs/data/test_6fps.mp4 ! decodebin
name=dec ! queue ! ffenc_mpeg2video quantizer=4 gop-size=1 ! mpegtsmux
name=mux ! filesink location=24fps.ts
Setting pipeline to PAUSED ...
/GstPipeline:pipeline0/GstDecodeBin:dec/GstTypeFindElement:typefind.GstPad:src:
caps = application/x-3gp, profile=(string)basic
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0.GstPad:sink:
caps = application/x-3gp, profile=(string)basic
/GstPipeline:pipeline0/GstDecodeBin:dec/GstQueue:queue1.GstPad:sink: caps =
video/mpeg, mpegversion=(int)4, systemstream=(boolean)false,
profile=(string)simple, level=(string)2,
codec_data=(buffer)000001b002000001b5090000010000000120008440fa282c2090a28f,
width=(int)176, height=(int)144, framerate=(fraction)1000/167,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstDecodeBin:dec/GstQueue:queue1.GstPad:src: caps =
video/mpeg, mpegversion=(int)4, systemstream=(boolean)false,
profile=(string)simple, level=(string)2,
codec_data=(buffer)000001b002000001b5090000010000000120008440fa282c2090a28f,
width=(int)176, height=(int)144, framerate=(fraction)1000/167,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstDecodeBin:dec/GstQueue:queue1.GstPad:src: caps =
video/mpeg, mpegversion=(int)4, systemstream=(boolean)false,
profile=(string)simple, level=(string)2,
codec_data=(buffer)000001b002000001b5090000010000000120008440fa282c2090a28f,
width=(int)176, height=(int)144, framerate=(fraction)1000/167,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstDecodeBin:dec/ffdec_mpeg4:ffdec_mpeg40.GstPad:sink:
caps = video/mpeg, mpegversion=(int)4, systemstream=(boolean)false,
profile=(string)simple, level=(string)2,
codec_data=(buffer)000001b002000001b5090000010000000120008440fa282c2090a28f,
width=(int)176, height=(int)144, framerate=(fraction)1000/167,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstDecodeBin:dec/ffdec_mpeg4:ffdec_mpeg40.GstPad:sink:
caps = video/mpeg, mpegversion=(int)4, systemstream=(boolean)false,
profile=(string)simple, level=(string)2,
codec_data=(buffer)000001b002000001b5090000010000000120008440fa282c2090a28f,
width=(int)176, height=(int)144, framerate=(fraction)1000/167,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstDecodeBin:dec/ffdec_mpeg4:ffdec_mpeg40.GstPad:sink:
caps = video/mpeg, mpegversion=(int)4, systemstream=(boolean)false,
profile=(string)simple, level=(string)2,
codec_data=(buffer)000001b002000001b5090000010000000120008440fa282c2090a28f,
width=(int)176, height=(int)144, framerate=(fraction)1000/167,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstDecodeBin:dec.GstGhostPad:src1: caps =
audio/x-raw-float, rate=(int)8000, channels=(int)1,
channel-positions=(GstAudioChannelPosition)<
GST_AUDIO_CHANNEL_POSITION_FRONT_MONO >, endianness=(int)1234, width=(int)32
/GstPipeline:pipeline0/GstDecodeBin:dec/ffdec_amrnb:ffdec_amrnb0.GstPad:src:
caps = audio/x-raw-float, rate=(int)8000, channels=(int)1,
channel-positions=(GstAudioChannelPosition)<
GST_AUDIO_CHANNEL_POSITION_FRONT_MONO >, endianness=(int)1234, width=(int)32
/GstPipeline:pipeline0/GstDecodeBin:dec.GstGhostPad:src1.GstProxyPad:proxypad2:
caps = audio/x-raw-float, rate=(int)8000, channels=(int)1,
channel-positions=(GstAudioChannelPosition)<
GST_AUDIO_CHANNEL_POSITION_FRONT_MONO >, endianness=(int)1234, width=(int)32
/GstPipeline:pipeline0/GstDecodeBin:dec.GstGhostPad:src0: caps =
video/x-raw-yuv, width=(int)176, height=(int)144,
framerate=(fraction)1000/167, format=(fourcc)I420,
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstDecodeBin:dec/ffdec_mpeg4:ffdec_mpeg40.GstPad:src:
caps = video/x-raw-yuv, width=(int)176, height=(int)144,
framerate=(fraction)1000/167, format=(fourcc)I420,
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw-yuv,
width=(int)176, height=(int)144, framerate=(fraction)1000/167,
format=(fourcc)I420, interlaced=(boolean)false,
pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstDecodeBin:dec.GstGhostPad:src0.GstProxyPad:proxypad1:
caps = video/x-raw-yuv, width=(int)176, height=(int)144,
framerate=(fraction)1000/167, format=(fourcc)I420,
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)12/11
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-raw-yuv,
width=(int)176, height=(int)144, framerate=(fraction)1000/167,
format=(fourcc)I420, interlaced=(boolean)false,
pixel-aspect-ratio=(fraction)12/11
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

-Ashwini

On Tue, Mar 29, 2011 at 11:49 AM, sudarshan bisht <bisht.sudarshan at gmail.com
> wrote:

> If you are facing such issues then try with less number of plugins in your
> pipeline ( for example first try to transcode into file which has only
> video), this would give you a fair idea about what is going wrong. And use
> -v option with gst-launch to get information about caps.
>
>
>   On Tue, Mar 29, 2011 at 9:03 AM, Ashwini Sharma <ak.ashwini at gmail.com>wrote:
>
>>   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
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110329/108f6f47/attachment-0001.htm>


More information about the gstreamer-devel mailing list