AnsweredAssumed Answered

IMX51 : (Linux) Trouble with Gstreamer MPEG4 (Video + Audio)

Question asked by Claudio Morini on Nov 16, 2009
Latest reply on Nov 19, 2009 by Claudio Morini

After the installation of the last Linux SDK (plus IMX51_SDK16_LINUX_MMCODECS) i try to create a simple application to play MPEG4 videos.

 

I start my application from the example that i find here:

 

http://www.imxdev.org/wiki/index.php?title=All_Board_Creating_App_Video

 

and, after some little modifications (plugins name, etc), i found some this problem with the video result:

 

The video plays very very quickly without any type of syncronization with Audio (Audio speed go normal and is ok)

 

I try to play this code into a X window (i add some code lines inth the application to do it) but the problem is always the same.

 

if i try to play this MPEG4 video file from command lines:

 

gst-launch filesrc location=[MPEG4 filename path] ! mfw_mp4demuxer name=demux demux. ! queue max-size-buffers=0 max-size-time=0 ! mfw_vpudecoder ! mfw_v4lsink demux. !queue max-size-buffers=0 max-size-time=0 ! mfw_aacplusdecoder ! audioconvert ! alsasink

 

everything works ok (it starts on the top left with Audio+Video sync).

 

If is necessary, I can post the application source code.

 

I try to modify the code to play MPEG2, but the problem is the same (Video quickly and audio normal).

 

Please, help me to find if the trouble is into the application or BSP.

 

Claudio

 

Outcomes