<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)&lt; GST_AUDIO_CHANNEL_POSITION_FRONT_MONO &gt;, 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)&lt; GST_AUDIO_CHANNEL_POSITION_FRONT_MONO &gt;, 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)&lt; GST_AUDIO_CHANNEL_POSITION_FRONT_MONO &gt;, 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<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> </div>
<div>-Ashwini<br><br></div>
<div class="gmail_quote">On Tue, Mar 29, 2011 at 11:49 AM, sudarshan bisht <span dir="ltr">&lt;<a href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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 class="h5">On Tue, Mar 29, 2011 at 9:03 AM, Ashwini Sharma <span dir="ltr">&lt;<a href="mailto:ak.ashwini@gmail.com" target="_blank">ak.ashwini@gmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div></div>
<div class="h5">
<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">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>