PDA

View Full Version : failure to play the SWF file use mplayer under the -slave model



Kunkka
15th April 2011, 02:43
Environment : Under the Fedora13 with WMware.
Recently, i had to design the user interface for mplayer use qt3.
the source package of mplayer : MPlayer-1.0rc4.tar.bz2
configure : ./configure --prefix=/usr/local/mplayer --codecsdir=/usr/lib/codecs/ --enable-gui --enable-menu

When i play the SWF file ,it can not be played... but it can play the AVI files.:confused:
I wrote some codes play the file:

playProc->clearArguments();
playProc->addArgument(mplayerPath);
playProc->addArgument( "-vo" );
playProc->addArgument( "xv" );
playProc->addArgument( "-slave");
playProc->addArgument( "-quiet");
playProc->addArgument(filename);
playProc->addArgument("-wid");
playProc->addArgument("0x" + QString::number((long)(playWidget->winId()),16));
playProc->start();

When I played the SWF files report I get the following:

[root@localhost bin]# ./mplayer /home/ywj/Main.swf
MPlayer 1.0rc4 (C) 2000-2010 MPlayer Team

Playing /home/ywj/Main.swf.
libavformat file format detected.
[swf @ 0x93cbd10]Compressed SWF format not supported
LAVF_header: av_open_input_stream() failed
Seek failed
libavformat file format detected.
LAVF_header: av_open_input_stream() failed

Exiting... (End of file)

Any help would be appreciated!
Thank you .:)

high_flyer
15th April 2011, 09:56
Are you sure you have the right codec, and that it is loaded?

Kunkka
15th April 2011, 10:42
Are you sure you have the right codec, and that it is loaded?
:) Thank you. I download some extra codec for mplayer :
all-20071007.tar.bz2
windows-all-20071007.zip
Blue-1.7.tar.bz2

after tar i did something :
cd all-20071007
cp -r * /usr/lib/codecs
cd windows-all-20071007
cp -r * /usr/lib/win32

Then, What am I gonna do ?:confused:

high_flyer
15th April 2011, 10:50
Then, What am I gonna do ?
I don't know - read the mplayer docs about how to load codecs?

Kunkka
15th April 2011, 11:02
I don't know - read the mplayer docs about how to load codecs?

Oh no:( My English is very poor. I can't find the useful information bout codecs after "./configure -help"

I realized another thing too. there is no use for a command "man page" and prompted that:

Cannot open the message catalog "man" for locale "zh_CN.UTF-8"
(NLSPATH="/usr/share/locale/%l/LC_MESSAGES/%N")

No manual entry for page

Why...:confused: SOS!!!

high_flyer
15th April 2011, 11:23
We can't help you with the English.
But you can find the documentation online as well - ask google.