Convert MP4 to MPEG2-TS

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert MP4 to MPEG2-TS

ak.ashwini
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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Convert MP4 to MPEG2-TS

Sudarshan Bisht
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 <[hidden email]> 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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Convert MP4 to MPEG2-TS

ak.ashwini
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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Convert MP4 to MPEG2-TS

_vaibhav_
$ gst-launch filesrc location=/home/vaibhav/Videos/testts.mp4 ! decodebin2 name=dec ! queue ! ffenc_mpeg2video quantizer=4 gop-size=1 ! mpegtsmux name=mux ! filesink location=/home/vaibhav/Videos/myfile.ts dec. ! queue ! audioconvert ! ffenc_aac ! mux.

Its working very well at my end, am using GStreamer 0.10.32.
Try using latest stable release, It may be a bug which is fixed in new version.


Kind Regards,
Vaibhav Ingale | +91-9226938504
[hidden email]
http://vaibhav-ingale.blogspot.com/



On Tue, Mar 29, 2011 at 12:15 PM, Ashwini Sharma <[hidden email]> wrote:
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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Convert MP4 to MPEG2-TS

dave clark
In reply to this post by ak.ashwini
i use Avdshare Video Converter to convert mp4 to mpeg2-ts.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Convert MP4 to MPEG2-TS

educationtry
In reply to this post by ak.ashwini
I use iDealshare VideoGo to convert MP4 to MPEG-2 or convert MPEG-2 to MP4



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel