View previous topic :: View next topic |
Author |
Message |
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 12:14 am Post subject: How To Play Quicktime movies with mplayer : |
|
|
Here is a more comprehensive guide that includes help on installing various codecs :
https://forums.gentoo.org/viewtopic.php?t=47041
Playing animatrix or matrix or other Quicktime movies from you harddrive :
Ok i see a couple of people are struggling to get the Matrix and Animatrix trailers and some other Quictime movies to work. The good news is that it is very easy to get to work.
Installing Mplayer :
1] The Simple Install (just for Quicktime movies):
1) Faad2 is now in portage :
Code: | emerge sync
emerge -u faad2 |
2) One you have that installed, install the lastest mplayer (0.90):
And now you can play your favourite quicktime movie files.
PS : Xine can also play some of the Quicktime movies because it has a version of faad2 packaged with it. And i am sure that in a couple of days time the faad2 package will be available to gentoo.
Last edited by mikepb78 on Sat Apr 12, 2003 12:58 am; edited 19 times in total |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 12:20 am Post subject: Fixing out of sync audio (non aac mpeg audio): |
|
|
UPDATE : This only applies to non-aac audio Quicktime movies. Read the next posting for aac mpeg audio Quicktime movies
Here is a test :
Code: | mplayer -frames 1 -noloop -vo null -ao null -v the_second_renaissance.mov 2> /dev/null | grep -i faad |
Selected audio codec: [faad] afm:faad (AAC MPEG2/MPEG4 Audio)
If it is aac audio, if so read the next posting.
Fixing out of Sync Audio :
OK, even though now you can play most mov files. It does not mean it plays fine. Sometime the audio it out of sync. Here is how you can fix it :
UPDATE : Here is how to calculate the delay :
Code: | mencoder -aid 2 -ofps 24 -oac copy -ovc copy -o /dev/null the_second_renaissance.mov 2> /dev/null | grep "Audio stream" |
This should print out something like this :
Audio stream: 47.888 kbit/s (5986 bps) size: 61160 bytes 10.217 secs
A lot of the time the "-delay" option for mplayer works :
This is for the second renaissance episode of animatrix :
mplayer -delay -10.217 animatrix.mov
You can play with the "-delay" value till it seem right. Once you are satisfied you can save yourself time by storing that value for the specific file like so :
Code: |
echo "delay=-10.217" > ~/.mplayer/animatrix.mov.conf
|
Now animatrix.mov will use -delay -10.6 by default. You can specify any setting you want that has a commandline in mplayer like this. ie :
animatrix.mov.conf
Code: | vo=xv
ao=sdl
fs=yes
loop=yes
delay=-10.217
|
This will play the animatrix movie fullscreen with the Video driver being xv and the sound driver being sdl, it will loop playback.
Last edited by mikepb78 on Sat Apr 12, 2003 10:33 pm; edited 7 times in total |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 12:31 am Post subject: Fixing out of sync audio forever : |
|
|
Converting and Fixing Out of sync mov :
So you downloaded the animatrix movie.
New Preferred Way if you have AAC Mpeg Audio :
NOTE: This only works if the audio is of type aac mpeg audio
This is thanks to a Gentoo posting :
Code: |
mplayer -aid 2 -dumpaudio -dumpfile begin.aac animatrix.mov
mplayer -aid 1 -dumpaudio -dumpfile main.aac animatrix.mov
cat begin.aac main.aac > complete.aac
faad complete.aac
mplayer -audiofile complete.wav animatrix.mov
|
Generic way :
Here is how i did it :
1) Do a 2-pass encode to get better quality :
mencoder -fps 23.976 -oac mp3lame -lameopts br=160 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=2000:vpass=1 -o detect_640_dl.avi detect_640_dl.mov
mencoder -fps 23.976 -oac mp3lame -lameopts br=160 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=2000:vpass=2 -o detect_640_dl.avi detect_640_dl.mov
2) Strip out the mp3. Unfortunatley mencoder do not do ogg :
mplayer -dumpaudio -dumpfile stream.mp3 detect_640_dl.avi
3) Resync the audio :
Update: Calculated the delay like in the previous posting
ogmmerge -o detect_640_dl.ogm -A detect_640_dl.avi -s 10600 stream.mp3
The -s option is in milliseconds, so you can play around with that to get it more accurate.
So now you have a nice ogm of the movie.
Last edited by mikepb78 on Sat Apr 12, 2003 10:36 pm; edited 7 times in total |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 12:37 am Post subject: Watching trailers in your Browser : |
|
|
How to watch Quicktime trailers in your browser :
Ok so you want to play your favourite trailer or Apple.com or at Matrix.com, but you do not want to mission with reading the html source to be able to see the trailers. So here are some browser plugins to help you get sorted :
Konqueror :
Also supports Mozilla plugins :
Kmplayer : http://www.xs4all.nl/~jjvrieze/kmplayer.html
To install do :
Mozilla or Phoenix :
Mplayerplug-in : http://mplayerplug-in.sourceforge.net/
Code: | emerge mplayerplug-in |
Opera :
Opera now supports Mozilla plugins :
Mplayerplug-in : http://mplayerplug-in.sourceforge.net/
Code: | emerge mplayerplug-in |
|
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 12:56 am Post subject: So why is the Quicktime Audio Out of sync : |
|
|
Update : The more accuate answer is that these quicktime movies has 2 audio tracks. One that plays the first couple of seconds and the next the plays the rest. Mplayer only play one of them. So the length of the first track is the duration of the delay.
Well Quicktime movies support multiple codecs in one file.
So when the animatrix trailer in player the first couple of seconds is mjpeg and then the rest is nomal mpeg4. So the mplayer decoder get a bit confused. This problem is going to be resolved sometime in the future.
But for now using the -delay option will work.
Last edited by mikepb78 on Sat Apr 12, 2003 10:39 pm; edited 2 times in total |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 12:58 am Post subject: Making the most of mplayer : |
|
|
A complete Install Mplayer :
Mplayer uses a lot of other codecs to play stuff. So to make the most of mplayer here is some useful codecs to install :
Video Drivers :
If you have a nvidia card some of these drivers will not work properly. This is coz of the closed drivers that Nvidia supply.At the moment the best vider driver for Nvidia cards is the XV driver which can be used like this :
mplayer -vo xv movie.avi
or you can set is as the default in
/etc/mplayer.conf
or for a local user in :
.mplayer/config
XV :
Comes with mplayer all you need it Xfree to be installed. For Nvidia and most cards this is the one for you.
SDL :
You need SDL to be installed. This is one of the better drivers.
X11 :
This driver is not as fast as the XV driver and does not support dynamic scaling. You only need X to installed to use this one. This driver can be used by most cards and it the most stable.
AA :
This uses asci to print you movie to the console window.
GGI :
Fast and safe graphics and drivers for about any graphics card to the Linux kernel (sometimes)
XVIDIX :
Ideal for ATI
MGA_VID :
Ideal for Matrox cards
DirectFD :
A framebuffer driver. Better than FBDev
Audio Drivers :
SDL :
You need to install SDL. If you have arts runnig or are using either alsa or oss drivers it autodetects it and uses what is avaiable.
OSS :
ARTS :
Kde Sound Server. Not really idea for playing movies. But it works .. kinda.
ALSA :
If this driver does for work well, then use the OSS driver.
Codecs :
OGM and OGG :
emerge libvorbis
emerge libogg
XVID and MPG4 :
emerge xvid
Streaming :
emerge live
Xanim Codecs :
emerge xanim
MP4 audio :
emerge faac
emerge libsndfile (deps)
emerge faad2 (https://bugs.gentoo.org/show_bug.cgi?id=17342)
Mp3 playing and encoding :
emerge lame
emerge mad
Misc :
emerge flaac
Installing Browser Plugins :
emerge kmapler
emerge mplayerplug-in
(I will complete this a little later)
Last edited by mikepb78 on Fri Apr 11, 2003 1:19 am; edited 1 time in total |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
|
Back to top |
|
|
PARENA Guru
Joined: 06 Jan 2003 Posts: 349
|
Posted: Fri Apr 11, 2003 9:16 am Post subject: |
|
|
Excellent information. Our love for you is endless...
This should be put in the Documentation forum. |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 10:23 am Post subject: What is the error ? |
|
|
Malakin wrote: | I was unable to add faad2 support for mplayer. Trying to compile faad2 it stopped on an error and told me I needed libsndfile support and when I tried to compile that I got errors. |
You need to install the faad2 package like so :
and then install Mplayer.
And what is the errors that you got for libsndfile?
That is because Xine comes bundled with libfaad2. Xine it great, but if does not play all of the animatrix or matrix trailers properly. And mplayer will allow you to fix them permenantly. |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 11:12 am Post subject: Mplayer Tip of the Day : |
|
|
Howto setting defaults for a specific movie only :
You can specify any setting you want that has a commandline in mplayer like this. ie :
animatrix.mov.conf
Code: |
vo=xv
ao=sdl
fs=yes
loop=yes
sid=3
aid=2
|
This will play the animatrix movie fullscreen with the Video driver being xv and the sound driver being sdl, it will loop playback.
By the way you can set the sid and aid like this to for a specific movie :
Cowboy_Beboy-The_Movie.ogm.conf
Setting the SID and AID is handy for OGM files which have subtitles and multiple audio id stored in the movie file. You can find the SID like so :
Code: |
mplayer -noloop -frames 1 -vo null -ao null -v cowboy_bebop_-_01.ogm 2> /dev/null | grep "text"
|
And the Audio ID like so :
Code: |
mplayer -noloop -frames 1 -vo null -ao null -v cowboy_bebop_-_01.ogm 2> /dev/null | grep "audio"
|
Global settings for mplayer is stored in /etc/mplayer.conf and local settings in ~/.mplayer/config |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Fri Apr 11, 2003 1:54 pm Post subject: |
|
|
You should really put this in the Documentation Tips, & Tricks forum.
Oh, and isn't this a QuickTime 6 problem rather than just the Animatrix movies? |
|
Back to top |
|
|
Jimbow Guru
Joined: 18 Feb 2003 Posts: 597 Location: Silver City, NM
|
Posted: Fri Apr 11, 2003 7:13 pm Post subject: |
|
|
I emerged faad2 (after downloading the ebuild) and remerged mplayer but I still can't play animatrixlgfinal_dl.mov. My mplayer still works in general (with DVDs).
Here are my installed packages: Code: | * media-libs/faad2 [ Masked ]
Latest version available: 1.1
Latest version installed: 1.1
Size of downloaded files: 991 kB
* media-video/mplayer
Latest version available: 0.90_rc5
Latest version installed: 0.90_rc5
Size of downloaded files: 3,934 kB |
My CFLAGS: Code: | -Os -march=pentium3 -fomit-frame-pointer -pipe |
Here is are the complaints Code: | $ mplayer -delay 10.6 animatrixlgfinal_dl.mov
[boiler plate edited out for brevity. Will post it if helpful]
Opening audio decoder: [qtaudio] QuickTime Audio Decoder
win32 libquicktime loader (c) Sascha Sommer
Standard init done you may now call supported functions
loader_init DONE???
loader_init DONE!
Error no 12
VirtualAlloc(0x0x66800000, 4259840) failed
External func COMCTL32.dll:17
External func COMCTL32.dll:16
Unsupported QuickTime version (0x17b0f330)
InitializeQTML:268498899
ADecoder preinit failed :(
ADecoder init failed :(
*** Try to upgrade /home/jbowlin/.mplayer/codecs.conf from etc/codecs.conf
*** If it still does not work, read DOCS/codecs.html!
Cannot find codec for audio format 0x324D4451.
==========================================================================
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0" => local display)
==========================================================================
Opening video decoder: [qtvideo] Quicktime Video decoder
theQuickTimeDispatcher catched -> 0x17b0f330
Win32 Warning: Accessed uninitialized Critical Section (0x17d98210)!
Win32 Warning: Accessed uninitialized Critical Section (0x17d981f8)!
MPlayer interrupted by signal 4 in module: init_video_codec
- MPlayer crashed by an 'Illegal Instruction'.
It usually happens when you run it on a CPU different than the one it was
compiled/optimized for.
Verify this!
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. For details, see DOCS/bugreports.html#crash.b.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc
version. If you think it's MPlayer's fault, please read DOCS/bugreports.html
and follow the instructions there. We can't and won't help unless you provide
this information when reporting a possible bug. |
_________________ After Perl everything else is just assembly language. |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Fri Apr 11, 2003 8:26 pm Post subject: Try upgrading now : |
|
|
Try upgrading to the lastest mplayer :
Code: | emerge sync
emerge win32codecs faad2 mplayer
|
Get the lastest win32codecs.
And delete any old .mplayer/codec.conf you might have.
Which animatrix trailer it is ?
Here is a list of some packages that i have installed for mplayer :
Code: | media-libs/a52dec-0.7.4
media-libs/aalib-1.4_rc4-r2
media-libs/alsa-lib-0.9.2
media-libs/alsa-oss-0.9.1
media-libs/audiofile-0.2.3-r1
media-libs/divx4linux-20020418-r2
media-libs/faac-26102001-r1
media-libs/faad2-1.1
media-libs/flac-1.1.0
media-libs/libfame-0.9.0
media-libs/libpng-1.2.5-r4
media-libs/libsndfile-1.0.4
media-libs/libsdl-1.2.5-r1
media-libs/libvorbis-1.0-r2
media-libs/win32codecs-0.90.1-r2
media-libs/xvid-0.9.1 |
Here is a more comprehensive guide that includes help on installing various codecs :
https://forums.gentoo.org/viewtopic.php?t=47041 |
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Fri Apr 11, 2003 11:14 pm Post subject: |
|
|
Quote: | You need to install the faad2 package like so: | That ebuild didn't exist yesterday when I posted that (it's dated today). I initially tried the one you mention at the top of the thread and it didn't work.
I tried the new faad2 ebuild and it installed fine. Mplayer now plays the new matrix trailer fine but it crashes at the end with this error "MPlayer interrupted by signal 11 in module: decode_video" (same thing with animatrix video). Also the slider to control the movie position isn't working with either clip, you can still change movie position but the slider doesn't visibly move. Anyone else with these problems?
I suppose there still isn't a way to make mplayer keep the aspect ratio correct when resizing?
Any suggestions on an mplayer gui/skin that has a simple slider for the volume control instead of that stupid knob?
Quote: | That is because Xine comes bundled with libfaad2. Xine it great, but if does not play all of the animatrix or matrix trailers properly. And mplayer will allow you to fix them permenantly. | Xine plays all the trailers perfectly that I can find including the animatrix/matrix ones. Can you specify a trailer that doesn't work for you with Xine? |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sat Apr 12, 2003 12:09 am Post subject: |
|
|
It is good to see people using Xine and being liking it. I still find it a bit slow, however on my smp computer xine performs quite well as it uses both cpus, it would be nice to see mplayerxp get some more attention.
Malakin wrote: | That ebuild didn't exist yesterday when I posted that (it's dated today). |
There is one in portage now. The one i refered to in posting was the only one avaiable at the time and does work.
Malakin wrote: | Also the slider to control the movie position isn't working with either clip, you can still change movie position but the slider doesn't visibly move. Anyone else with these problems? |
Not many of the mplayer users actually use the "gmplayer" gui, it is far better and faster to use mplayer.
Malakin wrote: | I suppose there still isn't a way to make mplayer keep the aspect ratio correct when resizing? |
You can maintain aspect ratio with mplayer with the -aspect command:
Code: | mplayer -zoom -vo x11 -aspect 16:9 movie.avi |
This only works with the xvidix and x11 drivers at the moment. The xv and the sdl drivers use the initial value, but after you resizing it, it loses the aspect ratio.
Or you can store the aspect ratio in the movie with mencoder :
Code: | mencoder -aspect 16:9 -ovc copy -oac copy -o fixed.avi noaspect-ratio.avi |
Malakin wrote: | Any suggestions on an mplayer gui/skin that has a simple slider for the volume control instead of that stupid knob? |
Look at the Blue theme. It is the new default theme for mplayer. Also the scroll button over the volume changes the volume up and down.
This posting has more details and a snapshot of the Blue theme :
https://forums.gentoo.org/viewtopic.php?t=47041
Malakin wrote: | Can you specify a trailer that doesn't work for you with Xine? |
The last time i used Xine it had problems with the detective ep. With the audio being out of sync |
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sat Apr 12, 2003 2:06 am Post subject: Mplayer Versus Xine (who cares they are both good): |
|
|
Mplayer Versus Xine (who cares they are both good):
This is just a response to your posting. I use both Xine and Mplayer, and i like both of them. Both are good but both have a lot of things they need fixing. Xine is still a bit slow on MY comp and freezes my comp some times, i am not saying Xine is to blame. It is just that due to these circumstances i choose not to use Xine. Mplayer GUI is a hack and it will be fixed in the future when the GTK2 comes out. To put in perspective, the xine and mplayer programmers get along and help each other out with codecs etc.., although the xine and mplayer users do not. :
Malakin wrote: | This doesn't work, if you drag the window to resize it, it still loses aspect ratio. (Locking aspect ratio is the default in xine) |
It DOES works try this :
Code: | mplayer -zoom -vo x11 -aspect 16:9 movie.avi |
Or one of the xvidix drivers.
To set is as a default in mplayer edit ~/.mplayer/config :
Code: | vo=x11
zoom="yes"
aspest="16:9"
|
or for a specific movie eg "movie.avi" edit ~/.mplayer/movie.avi.conf
Malakin wrote: | Seeking with a gui is a lot easier then using mplayer without the gui with keyboard controls, so is changing the volume. |
Yes it is easier to seek to a position in the movie. Out of interest the scroll mouse allows you to change position on the stream. This can be remapped to change volume :
Here are some seek keyboard commands :
man mplayer wrote: |
<- and -> seek backward/forward 10 seconds
up and down seek backward/forward 1 minute
pgup and pgdown seek backward/forward 10 minutes
< and > backward/forward in playlist
|
Malakin wrote: | In case the gui does bother you in xine you can just hit g to hide/show the gui, not aware of any key to do this in mplayer (not listed in the manual). |
Unfortunately there is no binding for that in mplayer .. at the moment.
Mplayer and Xine both has bugs and can misbehave :
All the movie play fine on my comp with Mplayer but i would prefer ogms. Mplayer and Xine has there own bugs (On my computer it is fatal ). I like them both.
Malakin wrote: | I just tried it and the audio was the same in both mplayer and xine. In mplayer it jitters a bit at the beginning of this video and complains my computer is too slow (with or without gui), but goes on to the play the rest of the video until it crashes at the end like the others |
I get niether, but i am sure somethings can go wrong.
Malakin wrote: | Works fine in xine though(Both are using xv/alsa ouput). |
The audio is out of sync and i can not fix it ??? This is the one i am refering to : "THE_SECOND_RENAISSANCE_1_large.mov" maybe it is the version i am using?
Quote: | This is xine (X11 gui) - a free video player v0.9.20
(c) 2000-2003 by G. Bartsch and the xine project team. |
In either cases xine and mplayer perform will if it is a OGM and not a Quicktime mov.
Gmplayer Blue Skin Volume Control :
Malakin wrote: | Scroll wheel is slow, I like being able to click once to change the volume to any setting (the default in xine). |
It is also the default in mplayer in the Blue Skin or anyone with a slider for a volume control. Using a Scroll wheel is just a option (btw in X you can set the number of lines per scroll).
Something interesting
Controlling Mplayer : eg Volume :
You can also use the keyboard or a joystick or fifo to you change the volume :
man mplayer wrote: |
/ and * decrease/increase volume
9 and 0 decrease/increase volume
m mute sound
|
To get a full list of commands available for mplayer :
Code: | mplayer -input cmdlist |
To get a full list of key available for mplayer :
Code: | mplayer -input keylist |
Input can be accepted via infra-red remote/joystick and file. This is how you can use a fifo file to remotely control mplayer.
Code: | mkfifo controller
mplayer -input file=controller movie.avi
|
Now you can control that mplayer instance by echoing in commands into the "controller" file.
Last edited by mikepb78 on Sat Apr 12, 2003 3:17 am; edited 5 times in total |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sat Apr 12, 2003 2:16 am Post subject: Sorry for the empty posts : |
|
|
I merged my posting into one post and did not delete this one till to late.
Last edited by mikepb78 on Sat Apr 12, 2003 10:22 pm; edited 2 times in total |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sat Apr 12, 2003 2:18 am Post subject: Xine is Good : |
|
|
Xine is good. But this is not about xine it is about mplayer .. |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sat Apr 12, 2003 2:23 am Post subject: empty |
|
|
empty
Last edited by mikepb78 on Sat Apr 12, 2003 2:43 am; edited 1 time in total |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sat Apr 12, 2003 2:33 am Post subject: empty |
|
|
empty |
|
Back to top |
|
|
spinez n00b
Joined: 30 Mar 2003 Posts: 58
|
Posted: Sat Apr 12, 2003 8:35 am Post subject: |
|
|
thanks for the guide.. i was successfully able to view the matrix trailer with sound. however, im having a slight problem now.
whenever i view the file, my processor gets maxed out to 100% and i get "your computer is too slow to play this." it actually doesn't even look choppy but i get the error message anyways. the only way i can rememdy this is to use the -framedrop option which is fine since it still looks smooth as hell, but i'm curious as to why this is happening.
i have a athlon 1.2 with nvidia ti4200, alsa 90 (turtle beach santa cruz). all my divx/vcd/svcd play fine at under 30% cpu... dvd plays great at 60-70% cpu.. any ideas? |
|
Back to top |
|
|
mikepb78 Apprentice
Joined: 27 Feb 2003 Posts: 171 Location: London
|
Posted: Sat Apr 12, 2003 10:59 am Post subject: Benchmarking : |
|
|
spinez wrote: | whenever i view the file, my processor gets maxed out to 100% and i get "your computer is too slow to play this." |
Unfortunately the CPU usage is partly to do with the fact that you are using the win32 codec as there is no native codec for Quicktime 6 yet. But it also looks like you are using a preemptive kernel, and if you are not then use it!!!.
Good news : The new Xfree 4.3 and the 2.5 kernels offer a great speed improvements with video playback. Lets just hope there are better Nvidia drivers.
spinez wrote: | i have a athlon 1.2 with nvidia ti4200, alsa 90 (turtle beach santa cruz) |
Nice comp similar to mine, although mplayer does not support Nvidia cards as well as Matrox card. I will see what setting reduce the most cpu usage.
My spec :
GeForce4 Ti 4600
Turtle Beach Santa Cruz
2 x Athlon MP 2400
Benchmark Playback :
You can try benchmark you playbay with this command. I i will print information at the end. Now you can check what is using all the cpu time by switching the -vo and -ao options. First try with null to see how much just decoding uses.
Code: | mplayer -benchmark -ss 00:00:30 -noloop -frames 100 -nofs -ao null -vo null trailer_final_1000_dl.mov 2> /dev/null | grep BENCHMARK |
Once you have found the victim you can do some system tuning. However if it is the raw decoding there is not much you can do other then tweak you comps performance itself. Check if you have dma is set etc..
I am going to try it myself and post results on :
https://forums.gentoo.org/viewtopic.php?t=47041
For now here is my findings :
With the Video driver and Audio driver being set to null.
Code: | mplayer -benchmark -ss 00:00:20 -noloop -frames 100 -ao null -vo null trailer_final_1000_dl.mov 2> /dev/null | grep BENCHMARK
BENCHMARKs: VC: 1.562s VO: 0.001s A: 0.084s Sys: 2.577s = 4.223s
BENCHMARK%: VC: 36.9945% VO: 0.0119% A: 1.9824% Sys: 61.0112% = 100.0000%
|
Playing fullscreen with the xv and sdl drivers :
Code: |
mplayer -osdlevel 0 -fps 24 -noloop -benchmark -frames 100 -ss 00:00:20 -ao sdl -vo xv trailer_final_1000_dl.mov 2> /dev/null | grep BENCH
BENCHMARKs: VC: 1.577s VO: 0.531s A: 0.084s Sys: 2.032s = 4.224s
BENCHMARK%: VC: 37.3292% VO: 12.5627% A: 1.9949% Sys: 48.1133% = 100.0000%
|
As you can see there is about a 12-15% difference between raw playback and displaying the movie.
TIP:
Try different -sws and -pp value. -pp 0 disables win32 posprocessing.
Code: |
-pp <quality> (see -vop pp option too!)
Set postprocess level of the DLL. This option is NO LONGER US-
ABLE with MPlayer's postprocess filter, but only with Win32 Di-
rectShow DLLs which have internal postprocessing routine.
The valid range of -pp value vary on codecs, mostly 0-6, where
0=disable 6=slowest/best.
-sws <software scaler type> (see -vop scale option too)
This option sets the quality (and speed, respectively) of the
software scaler, with the -zoom option. For example with x11 or
other outputs which lack hardware acceleration. Possible set-
tings are:
NOTE:
For -sws 2 and 7, the sharpness can be set with the scaling pa-
rameter (p) of -vop scale (0 (soft) - 100 (sharp)), for -sws 9,
it specifies the filter length (1 - 10).
0 fast bilinear (default)
1 bilinear
2 bicubic (good quality)
3 experimental
4 nearest neighbour (bad quality)
5 area
6 luma bicubic / chroma bilinear
7 gauss
8 sincR
9 lanczos
10 bicubic spline
|
Goodluck and send me info if you has found the problem. |
|
Back to top |
|
|
spinez n00b
Joined: 30 Mar 2003 Posts: 58
|
Posted: Sat Apr 12, 2003 7:36 pm Post subject: |
|
|
Well, it looks like I had post processing set to 6 in my config.. I tirned it off (0) and now am able to play the matrix trailer just fine. CPU is about 70-75% used and peaks at 95%. I get no warnings though and I don't have to use -framedrop anymore
Here are my results anyways in case someone wants to compare.
audio/video off
Code: | mplayer -benchmark -ss 00:00:20 -noloop -frames 100 -ao null -vo null trailer_final_1000_dl.mov 2> /dev/null | grep BENCHMARK
BENCHMARKs: VC: 2.038s VO: 0.001s A: 0.204s Sys: 2.084s = 4.328s
BENCHMARK%: VC: 47.1041% VO: 0.0136% A: 4.7158% Sys: 48.1665% = 100.0000%
|
xv and alsa9
Code: | mplayer -osdlevel 0 -fps 24 -noloop -benchmark -frames 100 -ss 00:00:20 -ao alsa9 -abs 1 -vo xv trailer_final_1000_dl.mov 2> /dev/null | grep BENCH
BENCHMARKs: VC: 2.049s VO: 0.719s A: 0.139s Sys: 1.286s = 4.193s
BENCHMARK%: VC: 48.8594% VO: 17.1508% A: 3.3226% Sys: 30.6672% = 100.0000%
BENCHMARKn: disp: 101 (24.09 fps) drop: 0 (0%) total: 101 (24.09 fps)
|
xv, alsa9, and post processing 6
Code: | mplayer -osdlevel 0 -fps 24 -pp 6 -noloop -benchmark -frames 100 -ss 00:00:20 -ao alsa9 -abs 1 -vo xv trailer_final_1000_dl.mov 2> /dev/null | grep BENCH
BENCHMARKs: VC: 2.160s VO: 1.301s A: 0.146s Sys: 0.594s = 4.201s
BENCHMARK%: VC: 51.4178% VO: 30.9607% A: 3.4786% Sys: 14.1428% = 100.0000%
BENCHMARKn: disp: 57 (13.57 fps) drop: 44 (43%) total: 101 (24.04 fps)
|
|
|
Back to top |
|
|
|