Active Topics

 



Notices


Reply
Thread Tools
Posts: 1,038 | Thanked: 737 times | Joined on Nov 2005 @ Helsinki
#281
I tested 400x480 resolution on mplayer a few days ago. Works flawlessly at 7 fps, which is great. It's not fast enough for serious video playback, but it's brilliant for tutorial videos and slideshow videos (e.g. created in iphoto). I added that as a new resolution for media converter. Download here:
https://garage.maemo.org/frs/?group_id=26

Has there been any development on getting mplayer opera plugin that would be able to open flash videos on mplayer?
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#282
Originally Posted by konttori View Post
I tested 400x480 resolution on mplayer a few days ago. Works flawlessly at 7 fps, which is great. It's not fast enough for serious video playback, but it's brilliant for tutorial videos and slideshow videos (e.g. created in iphoto).
That's strange, MPlayer should easily work with 15 fps in this resolution. What did benchmark statistics say about the percentage of dropped frames when you tried higher fps? What is aspect ratio for this video? Make sure that MPlayer does not try to use software scaling to fix aspect ratio.

Anyway, software scaler for Nokie 770 will be also optimized and will work faster (N800 is at advantage here as it supports arbitrary scaling in hardware).
 
Posts: 129 | Thanked: 13 times | Joined on Oct 2005
#283
For a vga 30 fps video, 100 second test on n800:
xv + dspmp3 = 130 sec. 0.85 fps
xv + nosound = 188 sec. 15.9 fps
null + nosound = 142 sec. 21.1 fps



other observations about mplayer:
playing with xv sometimes freezes for several seconds and loops 2 adjacent frames while frozen
when playing a demanding video sometimes I must press home and select gmpayer or xterm to get mplayer to quit

these are with my own build:
mplayer/mencoder with v4l2 support can access the webcam
mplayer mirrors video from the webcam much better than the camera api demos

Code:
 $ mplayer  /media/mmc1/video/94-01.avi  -benchmark -endpos 100
MPlayer 1.0rc1-maemo.8 (C) 2000-2006 MPlayer Team
CPU: ARM
[MENU] Can't open menu config file: /home/user/.mplayer/menu.conf
Menu inited: /etc/mplayer/menu.conf

Playing /media/mmc1/video/94-01.avi.

AVI file format detected.
VIDEO:  [DIVX]  640x480  24bpp  29.970 fps  898.3 kbps (109.7 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre7-3.4.2
==========================================================================
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 (fake decoder)
AUDIO: 44100 Hz, 1 ch, ??, 128.0 kbit/18.14% (ratio: 16000->88200)
Selected audio codec: [dspmp3] afm: dspmp3 (MP3 audio pass-through for Nokia 770)
==========================================================================
AO: [gst] 44100Hz 1ch ?? (1 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar I420  [fs] [zoom]
A:   7.8 V:   5.1 A-V:  2.713 ct:  0.151 154/154 104% 10%  8.4% 50 0 40%

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A: 129.3 V: 100.0 A-V: 29.299 ct:  9.603 2999/2999 120%  0%  1.5% 2889 0 35%

BENCHMARKs: VC: 120.295s VO:   0.631s A:   1.481s Sys:   7.597s =  130.004s
BENCHMARK%: VC: 92.5316% VO:  0.4856% A:  1.1390% Sys:  5.8438% = 100.0000%
BENCHMARKn: disp: 110 (0.85 fps)  drop: 2889 (96%)  total: 2999 (23.07 fps)

Exiting... (End of file)
/ $




$ mplayer  /media/mmc1/video/94-01.avi  -benchmark -endpos 100   -nosound
MPlayer 1.0rc1-maemo.8 (C) 2000-2006 MPlayer Team
CPU: ARM
[MENU] Can't open menu config file: /home/user/.mplayer/menu.con f
Menu inited: /etc/mplayer/menu.conf

Playing /media/mmc1/video/94-01.avi.
Cache fill:  0.00% (0 bytes)
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [DIVX]  640x480  24bpp  29.970 fps  898.3 kbps (109.7 kb yte/s)
Clip info:
 Software: MEncoder 1.0pre7-3.4.2
================================================================ ==========
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
================================================================ ==========
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Plana r YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar I420  [fs] [zoom]
V: 100.0 2999/2999 148% 34%  0.0% 0 0 44%

BENCHMARKs: VC: 148.811s VO:  34.895s A:   0.000s Sys:   4.916s =  188.623s
BENCHMARK%: VC: 78.8936% VO: 18.5000% A:  0.0000% Sys:  2.6064% = 100.0000%

Exiting... (End of file)
/ $


 $ mplayer  /media/mmc1/video/94-01.avi  -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all   -nosound -benchmark -vo null -endpos 100
MPlayer 1.0rc1-maemo.8 (C) 2000-2006 MPlayer Team
CPU: ARM
[MENU] Can't open menu config file: /home/user/.mplayer/menu.conf
Menu inited: /etc/mplayer/menu.conf

Playing /media/mmc1/video/94-01.avi.

AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [DIVX]  640x480  24bpp  29.970 fps  898.3 kbps (109.7 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre7-3.4.2
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [null] 320x240 => 320x240 Planar YV12  [fs] [zoom]
V: 100.0 2999/2999 119%  0%  0.0% 0 0 44%

BENCHMARKs: VC: 119.311s VO:   0.126s A:   0.000s Sys:   4.137s =  123.574s
BENCHMARK%: VC: 96.5502% VO:  0.1016% A:  0.0000% Sys:  3.3481% = 100.0000%

Exiting... (End of file)
/ $ 

 $ mplayer  /media/mmc1/video/94-01.avi  -endpos 100 -nosound -vo null -benchmark
MPlayer 1.0rc1-maemo.8 (C) 2000-2006 MPlayer Team
CPU: ARM
[MENU] Can't open menu config file: /home/user/.mplayer/menu.conf
Menu inited: /etc/mplayer/menu.conf

Playing /media/mmc1/video/94-01.avi.

AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [DIVX]  640x480  24bpp  29.970 fps  898.3 kbps (109.7 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre7-3.4.2
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [null] 640x480 => 640x480 Planar YV12  [fs] [zoom]
V: 100.0 2999/2999 138%  0%  0.0% 0 0 44%

BENCHMARKs: VC: 138.108s VO:   0.138s A:   0.000s Sys:   3.999s =  142.245s
BENCHMARK%: VC: 97.0918% VO:  0.0969% A:  0.0000% Sys:  2.8113% = 100.0000%

Exiting... (End of file)
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#284
Thanks for posting benchmarks. So right now we can suppose that MPlayer seems to play 30 fps video on N800 roughly the same as it plays 24 fps video on 770 (http://maemo.org/pipermail/maemo-dev...er/006646.html). That is if video does not need to be scaled (if scaling was needed, 770 performance would be much worse in video output). These results corelate with cpu clock frequency increase (24 fps vs. 30 fps and 250MHz vs. 330MHz).

Well, playback of nonconverted video even on N800 is still a challenge. Optimizations for ARMv6 SIMD instructions can help to make it faster. Also N800 has a specialized video accelerator (IVA), if it could be used, maybe the results would be a lot better.

By the way, it is possible to enable grayscale mode if cpu performance is not fast enough to play some movies, it works a bit faster (-lavdopts gray). But it is much less fun to watch for sure.

Last edited by Serge; 2007-01-13 at 22:52.
 
Posts: 7 | Thanked: 0 times | Joined on Jan 2006
#285
Serge,

Anything us mortals can do to help get mplayer ported to the N800? Seems like it would be easy to take up a collection to buy a unit for developers to use. Seems like the least the community can do.
 
Posts: 71 | Thanked: 12 times | Joined on Jan 2007 @ Dubai, UAE
#286
About SIMD benefits, I understood that new OMAP 2420 has SIMD support?
Some benchmarks done for XVID with and without SSE (SIMD of Intel Pentium family):

http://list.xvid.org/pipermail/xvid-...ry/004815.html

SIMD SSE brings big benefits (200-300%) for XVID decoding. Not familiar how well OMAP SIMD implementation and Intel SSE compares but probably it would make sense to take SIMD into use. This I suppose requires coding some routines in ARM assembler, though.
 
uczmeg's Avatar
Posts: 53 | Thanked: 0 times | Joined on May 2006 @ Nottingham UK
#287
How does the N800s hardware compare to that in the GP2X?

It's a cheap linux based gaming device that has no problem playing unconverted 720x480 Divx (on it's 320x240 screen).
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#288
Originally Posted by uczmeg View Post
How does the N800s hardware compare to that in the GP2X?

It's a cheap linux based gaming device that has no problem playing unconverted 720x480 Divx (on it's 320x240 screen).
I have found some information about GP2X here: http://en.wikipedia.org/wiki/Gp2x
Apparently it is based on this SoC, so it has some dedicated video decoding support in hardware. Other than that, N800 has a faster CPU and more memory, so overall performance should be much better. Also N800 should have some dedicated hardware for video decoding as well check IVA block on this scheme, but probably it is not used yet in current version of software.
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#289
Originally Posted by uris View Post
About SIMD benefits, I understood that new OMAP 2420 has SIMD support?
Some benchmarks done for XVID with and without SSE (SIMD of Intel Pentium family):

http://list.xvid.org/pipermail/xvid-...ry/004815.html

SIMD SSE brings big benefits (200-300%) for XVID decoding. Not familiar how well OMAP SIMD implementation and Intel SSE compares but probably it would make sense to take SIMD into use. This I suppose requires coding some routines in ARM assembler, though.
ARMv5TE (Nokia 770) has instructions for performing fast single clock 16-bit multiplication (and idct for video decoding cointains a lot of such multiplications). Availability of such instructions speeds up video decoding as generic 32-bit multiplication takes more time.

ARMv6 (Nokia N800) has SIMD instructions to treat 32-bit registers as a pair of 16-bit values and perform arithmetic operations on this pair allowing to execute two 16-bit multiplies per clock.

Intel MMX uses 64-bit registers for SIMD, so it can perform operation on four 16-bit values at once. SSE2 has 128-bit registers and can perform operations on eight 16-bit values at once.

So SIMD on ARMv6 can't boost performance as much as on x86, but the improvement should be still quite noticeable

And you are right about assembly optimizations, they are needed and already used (but still can be improved) even for ARMv5TE.
 
Posts: 59 | Thanked: 5 times | Joined on Nov 2005
#290
I'm just about to upgrade to the latest version of MPlayer on the 770.

What are the current favoured command line options for playing back videos downloaded from the net via Opera?
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:22.