Problems about playing avi using gstreamer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problems about playing avi using gstreamer

xujh
Hi All:
  Recently i am developing videoplayer  using gstreamer as the base framewok.

I test it under command line using gst-launch
gst-launch-0.10 -v -T filesrc location=/data/cgd.avi ! avidemuxer name=demux demux. ! h264decoder  ! queue !  videosink demux. ! mad ! queue ! audioconvert ! audiosink
At start ,the audio disappeared after seconds ,the video play well.
When i played video without audio ,it played well,so as i played just mp3.

I thought that it was caused by lack of resources because the cpu usage was up to 80% and the memory was nearly used.

So i drop some video frames by gst_base_sink_set_max_lateness(GST_BASE_SINK(videosink),20*GST_MSECOND);

This time i can hear audio though it's not smoothly.

Now i wonder what else i can do to let the audio come out smoothly ?