From: Bohdy <bo...@tp...> - 2004-07-30 11:13:12
|
Hello, I have done some benchmarks with mplayer on gc-linux with various audio and video modes. They may be of interest: Sound and video: SDL sound and video BENCHMARKs: VC: 21.087s VO: 27.197s A: 2.843s Sys: 5.826s = 56.953s BENCHMARK%: VC: 37.0258% VO: 47.7535% A: 4.9912% Sys: 10.2295% = 100.0000% SDL video with OSS sound BENCHMARKs: VC: 20.013s VO: 26.374s A: 2.302s Sys: 4.381s = 53.069s BENCHMARK%: VC: 37.7105% VO: 49.6965% A: 4.3378% Sys: 8.2551% = 100.0000% fbdev video and SDL sound BENCHMARKs: VC: 26.030s VO: 5.755s A: 2.190s Sys: 3.292s = 37.266s BENCHMARK%: VC: 69.8480% VO: 15.4421% A: 5.8763% Sys: 8.8336% = 100.0000% fbdev video with OSS sound BENCHMARKs: VC: 26.159s VO: 5.911s A: 1.402s Sys: 1.105s = 34.577s BENCHMARK%: VC: 75.6555% VO: 17.0954% A: 4.0537% Sys: 3.1953% = 100.0000% Video Only: SDL video with no sound BENCHMARKs: VC: 20.332s VO: 27.254s A: 0.000s Sys: 0.580s = 48.165s BENCHMARK%: VC: 42.2129% VO: 56.5834% A: 0.0000% Sys: 1.2037% = 100.0000% fbdev video with no sound BENCHMARKs: VC: 26.636s VO: 5.956s A: 0.000s Sys: 0.587s = 33.179s BENCHMARK%: VC: 80.2799% VO: 17.9500% A: 0.0000% Sys: 1.7701% = 100.0000% Sound Only: SDL sound but no video BENCHMARKs: VC: 20.809s VO: 0.012s A: 1.501s Sys: 5.059s = 27.382s BENCHMARK%: VC: 75.9970% VO: 0.0433% A: 5.4824% Sys: 18.4773% = 100.0000% OSS sound but no video BENCHMARKs: VC: 20.707s VO: 0.006s A: 1.472s Sys: 6.209s = 28.394s BENCHMARK%: VC: 72.9277% VO: 0.0200% A: 5.1846% Sys: 21.8677% = 100.0000% Transfer rate comparisons: fbdev video with OSS sound (nocache) BENCHMARKs: VC: 23.254s VO: 5.164s A: 7.280s Sys: 6.079s = 41.777s BENCHMARK%: VC: 55.6613% VO: 12.3602% A: 17.4270% Sys: 14.5515% = 100.0000% fbdev video with OSS sound (cache=2048) BENCHMARKs: VC: 26.159s VO: 5.911s A: 1.402s Sys: 1.105s = 34.577s BENCHMARK%: VC: 75.6555% VO: 17.0954% A: 4.0537% Sys: 3.1953% = 100.0000% fbdev video with OSS sound (nocache, directly from Aram) BENCHMARKs: VC: 22.215s VO: 5.028s A: 1.234s Sys: 0.892s = 29.368s BENCHMARK%: VC: 75.6431% VO: 17.1198% A: 4.2011% Sys: 3.0360% = 100.0000% Pure decoding test: No video and no sound and limits are off BENCHMARKs: VC: 16.034s VO: 0.006s A: 0.000s Sys: 0.553s = 16.594s BENCHMARK%: VC: 96.6303% VO: 0.0360% A: 0.0000% Sys: 3.3337% = 100.0000% All these test have been performed on one quicktime file of fairly high bitrate (~3000 kbps @ 640x480) encoded with the Sorenson 3 video and mp3 audio codecs with a lenght of 27.5 seconds using mplayer's built in -benchmark mode. Of course its worth noting that the fbdev mode produces discoloured results which are completely fixed in Isobel's wonderful SDL port but I think that it shows that video output is possible with fairly little overhead. I also think that its clear by the pure decoding test that there is a lot of room for improvement. Cheers, bohdy. |