Hi Felipe,<br><br>&nbsp;Thanks for your suggestion.<br>&nbsp;Now I&#39;m able to play only audio and only video file with my own OPENMAXIL decoder and render component. But still I&#39;m facing problem while playing video file containing both audio and video then video and audio are not in sync either video is not able to play totally and audio we can play or listen. I&#39;m using following command-<br>
<br>gst-launch -v filesrc location=/home/prafull/downloads/sample_iPod.m4v ! qtdemux name=demux {demux.audio_00 ! queue ! omx_aacdec ! omx_audiosink} {demux.video_00 ! queue&nbsp; ! omx_h264dec&nbsp; ! omx_videosink}&nbsp; <br><br>Output-<br>
0:00:01.872129492 14702 0x8156600 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxh264dec0&gt; omx_buffer: size=12000, len=0, flags=0, offset=0, timestamp=3100000<br>0:00:01.882511015 14702 0x81567c8 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxaacdec0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=2229115<br>
0:00:01.892919079 14702 0x81567c8 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxaacdec0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=2252335<br>0:00:01.903288588 14702 0x81567c8 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxaacdec0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=2275555<br>
0:00:01.913693300 14702 0x81567c8 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxaacdec0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=2298775<br>0:00:01.913775996 14702 0x8156600 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxh264dec0&gt; omx_buffer: size=12000, len=0, flags=0, offset=0, timestamp=3200000<br>
0:00:01.924093262 14702 0x81567c8 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxaacdec0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=2321995<br>0:00:01.935407917 14702 0x81567c8 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxaacdec0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=2345215<br>
0:00:01.945712890 14702 0x81567c8 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxaacdec0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=2368435<br>0:00:01.957028104 14702 0x81567c8 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxaacdec0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=2391655<br>
0:00:01.957111639 14702 0x8156600 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_filter.c:533:pad_chain:&lt;omxh264dec0&gt; omx_buffer: size=12000, len=0, flags=0, offset=0, timestamp=3300000<br>0:00:02.127006368 14702 0x8160ea0 INFO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_sink.c:154:render:&lt;omxaudiosink0&gt; omx: play<br>
0:00:02.135888452 14702 0x8160ea0 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_sink.c:174:render:&lt;omxaudiosink0&gt; omx_buffer: size=16384, len=0, flags=0, offset=0, timestamp=0<br>0:00:02.136050214 14702 0x8160ea0 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_sink.c:241:handle_event:&lt;omxaudiosink0&gt; event: tag<br>
gstomx_base_sink.c:handle_event <br>0:00:02.136071726 14702 0x8160ea0 DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; omx gstomx_base_sink.c:241:handle_event:&lt;omxaudiosink0&gt; event: newsegment<br>gstomx_base_sink.c:handle_event <br><br>Here render is getting data from both audio and video decoder but after sometime it is going to hang on handle_event newsegment and tag. Can you please tell me what can be the reason for not being able to play both audio and video.<br>
<br>Thanks.<br>Regards<br>Prafull<br><br><br><br><br><div class="gmail_quote">On Thu, Dec 11, 2008 at 9:31 PM, Felipe Contreras <span dir="ltr">&lt;<a href="mailto:felipe.contreras@nokia.com">felipe.contreras@nokia.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Thu, 2008-12-11 at 17:41 +0530, ext prafull singh wrote:<br>

&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m using command<br>
&gt; &nbsp;gst-launch-0.10 playbin<br>
&gt; uri=file:///home/prafull/downloads/sample_iPod.m4v<br>
&gt;<br>
&gt; Here I&#39;m using omx_audio sink and omx_video sink for playing audio and<br>
&gt; video. Here I&#39;m able to render audio data but not video data. Here I&#39;m<br>
&gt; getting warning<br>
&gt; gstomx_base_videodec.c:settings_changed_cb<br>
&gt;<br>
&gt; (gst-launch-0.10:7956): GStreamer-WARNING **: pad omxh264dec0:src<br>
&gt; returned caps which are not a real subset of its template caps<br>
&gt;<br>
&gt;<br>
&gt; (gst-launch-0.10:7672): GStreamer-WARNING **: pad omxh264dec0:src<br>
&gt; returned caps which are not a real subset of its template caps<br>
&gt;<br>
&gt; (gst-launch-0.10:7672): GStreamer-WARNING **: pad omxh264dec0:src<br>
&gt; returned caps which are not a real subset of its template caps<br>
&gt; gstomx_base_sink.c:handle_event<br>
&gt; Pipeline is PREROLLED ...<br>
&gt; Setting pipeline to PLAYING ...<br>
&gt; New clock: GstSystemClock<br>
&gt; gstomx_base_sink.c:handle_event<br>
&gt; gstomx_base_sink.c: got EOS eventgstomx_base_sink.c:render<br>
&gt; gstomx_base_sink.c:render<br>
&gt; gstomx_base_sink.c:render<br>
&gt; gstomx_base_sink.c:render<br>
&gt;<br>
&gt; I tried by manually setting caps but then also not working.<br>
&gt; omx_h264dec !<br>
&gt; &quot;video/x-raw-yuv,format=(fourcc)UYVY,width=640,height=480,framerate=24/1&quot;<br>
&gt; &gt; ! omx_videosink<br>
&gt;<br>
&gt; Actually I observed that maximum range of framerate in<br>
&gt; gstomx_base_video_decoder.c src Template is 30/1 but by<br>
&gt; setting_changed return value is more than this range that&#39;s why it is<br>
&gt; not able to negotiate caps. Where I should change to make caps<br>
&gt; negotiation proper between &nbsp;decoder and sink component.<br>
<br>
</div></div>You can change that in: gstomx_base_videodec.c:generate_src_template.<br>
<br>
--<br>
<font color="#888888">Felipe Contreras<br>
<br>
</font></blockquote></div><br>