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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2,080 Views
c_morini
Contributor I

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

 

0 Kudos
Reply
2 Replies

671 Views
c_morini
Contributor I

Fabio,

 

thanks for your suggestion.

 

I try it on my PC and it works very well but, when i compile it for imx51 platform and run it, it returns

 

Error: A FILE protocol source plugin is required to play this stream, but not installed.

 

the error is the same if i try to play MP3, MPEG 2 or MPEG 4 files.

 

do you know what can be this plugin?

 

regards

 

Claudio

Message Edited by c.morini on 2009-11-19 09:43 AM
0 Kudos
Reply

671 Views
fabio_estevam
NXP Employee
NXP Employee

Claudio,

 

I think you should try to use playbin in your application.

 

Try building this simple player: http://code.google.com/p/gst-player/

 

Regards,

 

Fabio Estevam

0 Kudos
Reply