MPlayer for QNX
Over the last little while I have read a lot of posts on QNX sites about getting MPlayer to work. Over my time at QNX I was required to make a lot of software run under Photon or the AGTDK. So I thought I would give mplayer a try.
As all of the guys at Crank know I hate “configure”. It never really works for me and it always seems that each project has it’s own idea of how it should work. The biggest problem I usually have with “configure” is that under QNX the compiler is “qcc”. this means that some of the stock “gcc” options will not work. The most notable one is “-version”. This means that sometimes “configure” does not know that you are using “gcc” and also what version it is. In order to get mplayer working I had to change the configure script a bit to recognize the compiler and also make some minor mods to the source to make it build. I also disabled all of the assembly routines for the current build.
Next I implemented the rendering backend and have MPlayer running under:
- SDL
- Photon
- GF
It renders to a basic buffer so there is nothing fancy and no user interface, just command line. It also only draws to an RGB buffer as most drivers don’t have YUV support. So it should run under any QNX Neutrino 6.4.0 X86 machine including vmware. I have posted binaries to the Crank website. You will also need the Crank Open Source archive.
Example of running under Photon, for GF use “-vo gf” (if you want audio use the sdl audio: “-ao sdl”) :
mplayer -vo photon /home/brian/xmen.mp4
If you require the source diffs and the configure line let me know.
Have fun,
Brian

Thanks for the port!
# ./mplayer-gf
Could not find library libgf.so.1
where get this library from?
This build was done for QNX 6.4.0 which includes the Advanced Graphics TDK (libgf.so). libgf is a graphics framework library which is used for rendering and connecting to the graphics card. Are you running this under 6.3.2? If so the TDK is an add on.
hi,
I am working on qnx 6.4,i have downloaded “mplayer-qnx6.4.0″ and run, it could not load few libraries like
libiconv.so.2
so i also downloaded “opt-crank.3.3″ from crank open source,but i am unalble to run
./mplayer-ph
./mplayer-gf
please help me
Excellent blog! Very interesting themes. I will regularly read it.
Hi, Brian!
Unfortunately I wasn’t able to watch video with your version of mplayer on vmware or on real x86 box.
I’ve tried both mplayer-gf and -ph with -vo photon, -vo sdl, -vo gf and it causes
“MPlayer interrupted by signal 11 in module: init_video_codec”.
-vo null is working.
With some video files mplayer crashes with
“MPlayer interrupted by signal 11 in module: demux_open” error.
I’ve installed mplayer and Crank Open Source archive to the /opt/crank/ and added it to the PATH and LIBPATH variables. Do I need any other libraries except standard QNX 6.4 and those included in Crank Open Source archive?
Please advice how can I watch video with your build of mplayer
e.g. on new installation of QNX 6.4.1 in VMware 6.
Thanks!