maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   MPlayer which version is suitable (https://talk.maemo.org/showthread.php?t=2405)

Milhouse 2007-05-04 06:44

Re: MPlayer which version is suitable
 
Test #2 - N800 Demo video

Code:

==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Trying to force audio codec driver family dspmp3...
Opening audio decoder: [dspmp3] MP3 audio pass-through for Nokia 770/N800 (fake decoder)
AUDIO: 48000 Hz, 2 ch, ??, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [dspmp3] afm: dspmp3 (MP3 audio pass-through for Nokia 770)
==========================================================================
AO: [gst] 48000Hz 2ch ?? (1 bytes per sample)
Starting playback...
VDec: vo config request - 400 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 400x240 => 426x240 Planar YV12  [fs] [zoom]

Stock xserver - entire video benchmark
Code:

BENCHMARKs: VC:  30.440s VO:  14.304s A:  0.492s Sys:  57.487s =  102.723s
BENCHMARK%: VC: 29.6333% VO: 13.9248% A:  0.4791% Sys: 55.9628% = 100.0000%
BENCHMARKn: disp: 2501 (24.35 fps)  drop: 0 (0%)  total: 2501 (24.35 fps)

Patched xserver - entire video benchmark
Code:

BENCHMARKs: VC:  31.618s VO:  7.160s A:  0.506s Sys:  62.193s =  101.477s
BENCHMARK%: VC: 31.1580% VO:  7.0560% A:  0.4983% Sys: 61.2878% = 100.0000%
BENCHMARKn: disp: 2500 (24.64 fps)  drop: 0 (0%)  total: 2500 (24.64 fps)


Milhouse 2007-05-04 06:58

Re: MPlayer which version is suitable
 
Test #3 - Return of the King Trailer

Code:

==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Trying to force audio codec driver family dspmp3...
Opening audio decoder: [dspmp3] MP3 audio pass-through for Nokia 770/N800 (fake decoder)
AUDIO: 48000 Hz, 2 ch, ??, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [dspmp3] afm: dspmp3 (MP3 audio pass-through for Nokia 770)
==========================================================================
AO: [gst] 48000Hz 2ch ?? (1 bytes per sample)
Starting playback...
VDec: vo config request - 480 x 266 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.80:1 - prescaling to correct movie aspect.
VO: [xv] 480x266 => 480x266 Planar YV12  [fs] [zoom]

Stock xserver - 60 second benchmark
Code:

BENCHMARKs: VC:  40.883s VO:  16.370s A:  0.340s Sys:  3.981s =  61.574s
BENCHMARK%: VC: 66.3959% VO: 26.5864% A:  0.5527% Sys:  6.4649% = 100.0000%
BENCHMARKn: disp: 1697 (27.56 fps)  drop: 103 (5%)  total: 1800 (29.23 fps)

Patched xserver - 60 second benchmark
Code:

BENCHMARKs: VC:  43.446s VO:  6.558s A:  0.353s Sys:  11.080s =  61.436s
BENCHMARK%: VC: 70.7173% VO: 10.6741% A:  0.5744% Sys: 18.0342% = 100.0000%
BENCHMARKn: disp: 1775 (28.89 fps)  drop: 25 (1%)  total: 1800 (29.30 fps)


Milhouse 2007-05-04 07:04

Re: MPlayer which version is suitable
 
Version .16 is the best yet! :) The only problem I've noticed so far is that the screen is blanking (due to power management) while the video is playing (at least, it is blanking when playing from the command line).

Tearing would seem to be entirely eliminated - I can't say I noticed a single tear during my testing.

The patched xserver does appear to have a beneficial impact - typically the time taken to output video is reduced by at least 50% when compared with the unpatched xserver.

Excellent work Serge! :)

luketoh 2007-05-04 09:41

Re: MPlayer which version is suitable
 
How did you benchmark original xserver? Was that done before the upgrade or there's a way to switch between them?

Serge 2007-05-04 09:59

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Milhouse (Post 47108)
The only problem I've noticed so far is that the screen is blanking (due to power management) while the video is playing (at least, it is blanking when playing from the command line).

That's strange, blanking should be disabled on video playback. Can you provide some more details about how to reproduce this problem (your power management settings, etc.)?

Also it would be good if hafken provided a sample video for audio problem he managed to encounter. Otherwise we have very little chances of getting this particular bug fixed.

helmutk 2007-05-04 14:40

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Karel Jansens (Post 47004)
Do you have virtual memory enabled? I noticed discernable differences in Mplayer with (and without) virtual memory.


Yes, I have Virtual Memory of 128M enabled.
r16 seems to be working fine for me with no issues seen yet.

Milhouse 2007-05-04 16:14

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by luketoh (Post 47124)
How did you benchmark original xserver? Was that done before the upgrade or there's a way to switch between them?

I'm in the fortunate position where I have two N800s - both with the latest SDHC kernel, but one now has the patched xserver. :)

Milhouse 2007-05-04 16:37

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Serge (Post 47126)
That's strange, blanking should be disabled on video playback. Can you provide some more details about how to reproduce this problem (your power management settings, etc.)?

Hi Serge. It may actually be a problem specific to the patched xserver (I used Fanoush's deb) - I'm not able to reproduce the problem with the stock xserver.

When running mplayer from the command line with the patched xserver (extra detail - I had sudo'd to root) the screen will blank - my settings are 2 and 5 minutes, LED enabled, Lock screen & keys not checked, default brightness 7 bars. When running mplayer via the GUI app the screen doesn't dim/blank - it's only a problem when using the command line. Nothing special on the command line - just "mplayer -benchmark -quiet <filename>".

Since it appears specific to the patched xserver, it's possibly a bug or issue introduced since the last 3.2007.10-7 release, or a patch build.

Milhouse 2007-05-04 16:55

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by luketoh (Post 47124)
How did you benchmark original xserver? Was that done before the upgrade or there's a way to switch between them?

Looking at the patched xserver deb from Fanoush, there are quite a few files in the deb along with the modified Xomap binary. Most of these other files seem to be startup and configuration scripts, probably identical to the existing files (?). Therefore it may be possible to revert back to the original xserver by simply replacing /usr/bin/Xomap (original file size 837992, patched file size 928416).

The file is too large to attach, but you can grab it from here if you're brave enough to try it! :)

http://www.nmacleod.com/n800/Xomap-3.2007.10-7.zip

Serge 2007-05-04 19:59

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Milhouse (Post 47197)
Hi Serge. It may actually be a problem specific to the patched xserver (I used Fanoush's deb) - I'm not able to reproduce the problem with the stock xserver.

When running mplayer from the command line with the patched xserver (extra detail - I had sudo'd to root) the screen will blank - my settings are 2 and 5 minutes, LED enabled, Lock screen & keys not checked, default brightness 7 bars. When running mplayer via the GUI app the screen doesn't dim/blank - it's only a problem when using the command line. Nothing special on the command line - just "mplayer -benchmark -quiet <filename>".

Thanks for the detailed description, that's an excellent example of ideal bugreport :)

Apparently it is running mplayer after logging as user and doing 'sudo gainroot' does not let blanking prevention to work properly. Moreover, I just tested mplayer on Nokia 770 and it just crashes in the same circumstances. When just running mplayer as user or root without sudo stuff, everything works properly. The patched xserver is not responsible for this issue. The problem existed in mplayer since the very beginning, but was not noticed before as mplayer is not usually run in such a way (and it should never happen when mplayer is launched from gui). This bug is not very serious and can be easily avoided on normal mplayer use, but I'll try to see what can be done to fix it.

By the way, you can get original unmodified N800 xserver back by downloading and reinstalling it from http://repository.maemo.org/pool/bor...so31_armel.deb

And a warning for Nokia 770 users (forgot to mention it in my announcement post, but this should be quite obvious anyway) - don't try to install this patched xserver on your devices even if you have OS2007 hackers edition, or at least don't blame me if you do (this particular video improvement is N800 hardware specific, so has no chances to be useful on Nokia 770).


All times are GMT. The time now is 20:31.

vBulletin® Version 3.8.8