(Sorry, sent this to mplayer-users by mistake!) Hallo! I'm developing a multimedia frontend program, and I wanted to be able to let the user use mplayer (if installed) as one of the backends. However I can't seem to build a commandline and call mplayer from within my own program! For example, this simple program: #include <stdlib.h> int main(int argc, char *argv[]) { system("/usr/local/bin/mplayer -vo null -quiet -framedrop /mymediafiles/fred.mpg >/test.log"); return 0; } Examining test.log (from the above) shows that mplayer parses the mpg file OK and gets as far as starting to play, but crashes everything (the keyboard is locked up, and I can't Ctrl-Alt-Backspace out of X, can't switch to another terminal, but the OS is still running underneath - I can connect via ftp). If I run mplayer from an xterm with the identical command line it works fine! Can someone try the above program, of course replacing the path with some video file on your own system, and see if it is possible? Or maybe offer some suggestion as to why it behaves so strangely? :)
Further update to this:
I'm developing a multimedia frontend program, and I wanted to be able to let the user use mplayer (if installed) as one of the backends. However I can't seem to build a commandline and call mplayer from within my own program! For example,
If I run mplayer by using "system xterm -e /usr/local/bin/mplayer fred.mpg", it works. Why does it work when run from xterm, but not when run directly within X?
On Monday, 3. December 2001 20:14, you wrote:
Further update to this:
I'm developing a multimedia frontend program, and I wanted to be able to let the user use mplayer (if installed) as one of the backends. However I can't seem to build a commandline and call mplayer from within my own program! For example,
If I run mplayer by using "system xterm -e /usr/local/bin/mplayer fred.mpg", it works. Why does it work when run from xterm, but not when run directly within X?
try system mplayer < /dev/zero -- Best Regards, Atmos ____________________________________________ - MPlayer Developer - http://mplayerhq.hu/ - ____________________________________________
Hi Atmos,
If I run mplayer by using "system xterm -e /usr/local/bin/mplayer fred.mpg", it works. Why does it work when run from xterm, but not when run directly within X?
try system mplayer < /dev/zero
Thank you, that is the solution! -- Lewin A.R.W. Edwards Embedded Engineer, Digi-Frame Inc. Work: http://www.digi-frame.com/ Tel (914) 937-4090 9am-6:30pm M-F ET Personal: http://www.larwe.com/ http://www.zws.com/
participants (2)
-
Felix Buenemann -
Lewin A.R.W. Edwards