[Gstreamer-openmax] GstOpenmax demuxer issue

prafull singh singh.prafull0206 at gmail.com
Thu Dec 18 05:59:54 PST 2008


Hi Felipe,

 Thanks for your suggestion.
 Now I'm able to play only audio and only video file with my own OPENMAXIL
decoder and render component. But still I'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'm using following command-

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  ! omx_h264dec  ! omx_videosink}

Output-
0:00:01.872129492 14702 0x8156600 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxh264dec0> omx_buffer: size=12000,
len=0, flags=0, offset=0, timestamp=3100000
0:00:01.882511015 14702 0x81567c8 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxaacdec0> omx_buffer: size=16384,
len=0, flags=0, offset=0, timestamp=2229115
0:00:01.892919079 14702 0x81567c8 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxaacdec0> omx_buffer: size=16384,
len=0, flags=0, offset=0, timestamp=2252335
0:00:01.903288588 14702 0x81567c8 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxaacdec0> omx_buffer: size=16384,
len=0, flags=0, offset=0, timestamp=2275555
0:00:01.913693300 14702 0x81567c8 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxaacdec0> omx_buffer: size=16384,
len=0, flags=0, offset=0, timestamp=2298775
0:00:01.913775996 14702 0x8156600 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxh264dec0> omx_buffer: size=12000,
len=0, flags=0, offset=0, timestamp=3200000
0:00:01.924093262 14702 0x81567c8 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxaacdec0> omx_buffer: size=16384,
len=0, flags=0, offset=0, timestamp=2321995
0:00:01.935407917 14702 0x81567c8 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxaacdec0> omx_buffer: size=16384,
len=0, flags=0, offset=0, timestamp=2345215
0:00:01.945712890 14702 0x81567c8 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxaacdec0> omx_buffer: size=16384,
len=0, flags=0, offset=0, timestamp=2368435
0:00:01.957028104 14702 0x81567c8 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxaacdec0> omx_buffer: size=16384,
len=0, flags=0, offset=0, timestamp=2391655
0:00:01.957111639 14702 0x8156600 DEBUG                  omx
gstomx_base_filter.c:533:pad_chain:<omxh264dec0> omx_buffer: size=12000,
len=0, flags=0, offset=0, timestamp=3300000
0:00:02.127006368 14702 0x8160ea0 INFO                   omx
gstomx_base_sink.c:154:render:<omxaudiosink0> omx: play
0:00:02.135888452 14702 0x8160ea0 DEBUG                  omx
gstomx_base_sink.c:174:render:<omxaudiosink0> omx_buffer: size=16384, len=0,
flags=0, offset=0, timestamp=0
0:00:02.136050214 14702 0x8160ea0 DEBUG                  omx
gstomx_base_sink.c:241:handle_event:<omxaudiosink0> event: tag
gstomx_base_sink.c:handle_event
0:00:02.136071726 14702 0x8160ea0 DEBUG                  omx
gstomx_base_sink.c:241:handle_event:<omxaudiosink0> event: newsegment
gstomx_base_sink.c:handle_event

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.

Thanks.
Regards
Prafull




On Thu, Dec 11, 2008 at 9:31 PM, Felipe Contreras <
felipe.contreras at nokia.com> wrote:

> On Thu, 2008-12-11 at 17:41 +0530, ext prafull singh wrote:
> > Hi,
> >
> > I'm using command
> >  gst-launch-0.10 playbin
> > uri=file:///home/prafull/downloads/sample_iPod.m4v
> >
> > Here I'm using omx_audio sink and omx_video sink for playing audio and
> > video. Here I'm able to render audio data but not video data. Here I'm
> > getting warning
> > gstomx_base_videodec.c:settings_changed_cb
> >
> > (gst-launch-0.10:7956): GStreamer-WARNING **: pad omxh264dec0:src
> > returned caps which are not a real subset of its template caps
> >
> >
> > (gst-launch-0.10:7672): GStreamer-WARNING **: pad omxh264dec0:src
> > returned caps which are not a real subset of its template caps
> >
> > (gst-launch-0.10:7672): GStreamer-WARNING **: pad omxh264dec0:src
> > returned caps which are not a real subset of its template caps
> > gstomx_base_sink.c:handle_event
> > Pipeline is PREROLLED ...
> > Setting pipeline to PLAYING ...
> > New clock: GstSystemClock
> > gstomx_base_sink.c:handle_event
> > gstomx_base_sink.c: got EOS eventgstomx_base_sink.c:render
> > gstomx_base_sink.c:render
> > gstomx_base_sink.c:render
> > gstomx_base_sink.c:render
> >
> > I tried by manually setting caps but then also not working.
> > omx_h264dec !
> > "video/x-raw-yuv,format=(fourcc)UYVY,width=640,height=480,framerate=24/1"
> > > ! omx_videosink
> >
> > Actually I observed that maximum range of framerate in
> > gstomx_base_video_decoder.c src Template is 30/1 but by
> > setting_changed return value is more than this range that's why it is
> > not able to negotiate caps. Where I should change to make caps
> > negotiation proper between  decoder and sink component.
>
> You can change that in: gstomx_base_videodec.c:generate_src_template.
>
> --
> Felipe Contreras
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-openmax/attachments/20081218/8a007299/attachment.htm>


More information about the Gstreamer-openmax mailing list