How interface mplayer or ffmpeg codec into application

Hi,
I am usin gAngstrom Kernel and rfs.

I am looking to play video(mpeg4 or H264) using mplayer or FFmpeg
codec from my application.
what are ways to do this?

Thanks,
Rachit

Hi,
I tried ffmpeg player on the SAMSUNG processor with following compilation, it is working exactly.

./configure --disable-video-x11 --disable-video-fbcon --enable-video-nanox --with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal] --prefix=/home/projects/arm/osm/sdl --host=arm-linux-gnu --enable-oss --disable-esd --disable-alsa --disable-video-directfb --disable-joystick --disable-video-x11 --disable-diskaudo --disable-video-dummy --disable-osmesa-shared --disable-video-qtopia --disable-video-wscons --disable-video-fbcon --disable-video-cocoa --disable-video-svga --disable-dummyaudio --disable-altivec --disable-nas --disable-arts --disable-alsa-shared --disable-assembly --disable-loadso --disable-cdrom --disable-events --disable-ipod --disable-mintaudio --disable-arts-shared

with regards,
saminath

Hi Sanjai,

thanks for reply,

         I tried ffmpeg player on the SAMSUNG processor with following

compilation, it is working exactly.

./configure --disable-video-x11 --disable-video-fbcon --enable-video-nanox
--with-nanox-pixel-type=[rgb/0888/888/565/555/332/pal]
--prefix=/home/projects/arm/osm/sdl --host=arm-linux-gnu --enable-oss
--disable-esd --disable-alsa --disable-video-directfb --disable-joystick
--disable-video-x11 --disable-diskaudo --disable-video-dummy
--disable-osmesa-shared --disable-video-qtopia --disable-video-wscons
--disable-video-fbcon --disable-video-cocoa --disable-video-svga
--disable-dummyaudio --disable-altivec --disable-nas --disable-arts
--disable-alsa-shared --disable-assembly --disable-loadso --disable-cdrom
--disable-events --disable-ipod --disable-mintaudio --disable-arts-shared

As per this, I need to configure FFmpeg source for beagleboard. But as
I know it's already available in Angstrom Module...Is this require to
do again..?
How to use FFmpeg codec in my application ?

Thanks,
Rachit

Hi Rachit,
The Mplayer given in the RFS is opening X11 which is not desired. So it’s better to recompile it.

2010/1/12 Rachit Shah <rachit81@gmail.com>

Hi Rachit,
The Mplayer given in the RFS is opening X11 which is not desired. So it's better to recompile it.

Why not pass -vo fbdev instead? Saves you a ton of needless work.

Yes, that is a good option. Thanks.

2010/1/12 Koen Kooi <koen@beagleboard.org>

Hi,

Thanks for reply.

Is there any source of documentation to configure FFmpeg for
beagleboard ?
As per above reply I need to just configure with
"./configure arm-none-linux-gnueabi-gcc -03 -march=armv7-a -
mtune=cortex-A8 -mfpu=neon -mfloat-abi=softfp --host=arm-none-linux-
gnueabi -vo fbdev " this option,right?

Thanks,
Rachit

No, you *build* ffmpeg by doing 'bitbake ffmpeg' on your buildhost, you *run* mplayer on your target with 'mplayer foo.avi -vo fbdev'

Hi Koen,

Thanks for reply. I will check it. but I am getting error in building
console-image through bitbake.(http://groups.google.com/group/
beagleboard/browse_thread/thread/63c49e03b6795cc9/e3f4e0320199b9e1?
lnk=gst&q=error+console++image#e3f4e0320199b9e1).
I will check it once this issue resolve.
Currently I can play video though mplayer using CLI..
I want to interface player(codec) into my application.so I can
directly play video or audio from that.

Thanks,
Rachit