$ 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.<br>
<br>Its working very well at my end, am using GStreamer 0.10.32.<br>Try using latest stable release, It may be a bug which is fixed in new version.<br><br><br clear="all">Kind Regards,<br>Vaibhav Ingale | +91-9226938504<br>
<a href="mailto:vaibhav.d.ingale@gmail.com" target="_blank">vaibhav.d.ingale@gmail.com</a><br><a href="http://vaibhav-ingale.blogspot.com/" target="_blank">http://vaibhav-ingale.blogspot.com/</a><br><br>
<br><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 12:15 PM, Ashwini Sharma <span dir="ltr"><<a href="mailto:ak.ashwini@gmail.com">ak.ashwini@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>Hi,</div>
<div> I tried your suggestion, But to no avail.</div>
<div> </div>
<div>following is the log. If you can help with something...</div>
<div> </div>
<div>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<br>Setting pipeline to PAUSED ...<br>
/GstPipeline:pipeline0/GstDecodeBin:dec/GstTypeFindElement:typefind.GstPad:src: caps = application/x-3gp, profile=(string)basic<br>Pipeline is PREROLLING ...<br>/GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0.GstPad:sink: caps = application/x-3gp, profile=(string)basic<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<br>
/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<div class="im">
<br>
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0: GStreamer encountered a general stream error.<br>Additional debug info:<br>qtdemux.c(3051): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0:<br>
streaming stopped, reason not-negotiated<br></div></div><font color="#888888">
<div> </div>
<div>-Ashwini<br><br></div></font><div><div></div><div class="h5">
<div class="gmail_quote">On Tue, Mar 29, 2011 at 11:49 AM, sudarshan bisht <span dir="ltr"><<a href="mailto:bisht.sudarshan@gmail.com" target="_blank">bisht.sudarshan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204);">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. <br>
<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Tue, Mar 29, 2011 at 9:03 AM, Ashwini Sharma <span dir="ltr"><<a href="mailto:ak.ashwini@gmail.com" target="_blank">ak.ashwini@gmail.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);">
<div>
<div></div>
<div>
<div>Hi All,</div>
<div> </div>
<div>I am trying to convert a MP4 to MPEG2-TS file.</div>
<div>I am using the following pipe to do so.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>But I get the error </div>
<div> </div>
<div>ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0: GStreamer encountered a general stream error.<br>Additional debug info:<br>qtdemux.c(3051): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstDecodeBin:dec/GstQTDemux:qtdemux0:<br>
streaming stopped, reason not-negotiated</div>
<div> </div>
<div>When I play the MP4 file, i am able to do successfully.</div>
<div> </div>
<div>Can anybody help with what I should be doing?</div>
<div> </div><font color="#888888">
<div>-Ashwini<br></div></font><br></div></div>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>
<font color="#888888"><br>Sudarshan Bisht<br></font><br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>