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 21:01

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Serge (Post 47253)
The patched xserver is not responsible for this issue.

Garrrrhhh... you're right! :) When I ran the tests in post #438 I had not sudo'd to root on the device running the stock xserver - when I sudo to root on the device with the stock xserver, the blanking is reproducible.

I really don't think this is an issue that warrants further investigation unless you can fix it without spending much time on it - under normal circumstances users shouldn't be running apps as root, and other than when I'm testing I would typically use the GUI anyway. :)

Karel Jansens 2007-05-04 21:52

Re: MPlayer which version is suitable
 
Serge, I just installed the latest version of Mplayer and the replacement xserver and I'm truly amazed. For the first time I can enjoy smooth video playback on my N800 at a resolution that really does its great display justice (400x240 at 25 fps). I've been watching a couple of minutes of "28 Days Later", which was extremely choppy and teary before and is now absolutely smooth an thoroughly enjoyable (in a slasher-psychopathic sense, obviously).

Also, I found this latest version of Mplayer so stable that you should really consider dropping the "RC" and go v1 full-on.

There is still one thing missing on the N800 that I use extensively on my Archos: a resume play-function. My Archos remembers where I stopped watching the last movie and can resume it from there.

I've always said that this is an indispensable function for a portable media player and I'm wondering whether this sort of functionality can be incorporated in Mplayer.

hafken 2007-05-05 03:11

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Serge (Post 47126)
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.

hi,
sorry for the delay; I will get you a sample clip tomorrow !

-dave

luketoh 2007-05-05 05:32

Re: MPlayer which version is suitable
 
One thing I noticed was that somehow, if I used KMplayer as the frontend, and switched to full screen, the video is not as smooth as just using Mplayer alone (ie. without kmplayer).

I don't understand why the front end would cause Mplayer to play things differently though...anyone else noticed this?


Luke

Serge 2007-05-06 11:31

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by hafken (Post 47312)
hi,
sorry for the delay; I will get you a sample clip tomorrow !

Thanks a lot, just upload it somewhere and provide me with a link, or contact me in PM, so we can discuss how I can get this sample. We just recently had this audio/video sync bug story which took too much time to resolve because nobody cared to report it properly. So I was worried that we might be getting something similar repeated :)

jmk 2007-05-06 15:23

Re: MPlayer which version is suitable
 
I also installed the latest version of Mplayer and the replacement xserver (http://fanoush.wz.cz/maemo/xserver-x...o31_armel.deb), they work fine. However i am too lazy to do benchmarking.

Karel Jansens 2007-05-06 15:30

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by jmk (Post 47445)
I also installed the latest version of Mplayer and the replacement xserver (http://fanoush.wz.cz/maemo/xserver-x...o31_armel.deb), they work fine. However i am too lazy to do benchmarking.

I don't grok benchmarking. When I can watch a movie without being annoyed by hickups or artefacts, and when that movie plays clearly enough to make me think I'm watching it on a bigger screen than I'm really doing, then I'm good.

Mplayer and the xserver upgrade give me that feeling. I'm good. :cool:

luketoh 2007-05-06 16:45

Re: MPlayer which version is suitable
 
As Serge says, if no one bothers to respond with proper bug reports or benchmarks, then the person/s programming the software will not be able to fix any issues more effectively and efficiently. We're helping ourselves when we help the programmers.

jmk 2007-05-06 23:34

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by luketoh (Post 47452)
As Serge says, if no one bothers to respond with proper bug reports or benchmarks, then the person/s programming the software will not be able to fix any issues more effectively and efficiently. We're helping ourselves when we help the programmers.

Ok i will post some tests tomorrow or someday next week when i have time.

Serge 2007-05-07 06:17

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by jmk (Post 47484)
Ok i will post some tests tomorrow or someday next week when i have time.

Thanks, but I think we have enough benchmarks for .16 version already ;) Bugreports if something does not work properly are always welcome though.

luketoh 2007-05-07 06:32

Re: MPlayer which version is suitable
 
So far, everthing is peachy. The only problem I faced is when using KMPlayer for the frontend...it seems to make the video slower/jerky... although I cannot understand why...

tolou 2007-05-07 10:07

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Serge (Post 47067)
Another quite noticeable performance improvement (20% improvement observed on Nokia_N800.avi video clip, for other files it may vary) requires installing xserver package with a patch for ARMv6 optimized color format conversion, two alternative links for download can be found here: http://maemo.org/pipermail/maemo-dev...ay/010058.html
Keep in mind that xserver is a critical system package and if anything gets wrong with it, you will probably have to reflash. Everything works fine for me, but you have been warned.

Hmm, is this really for the LATEST 2007 F/W, v. 3.2007.10-7, a.k.a Maemo 3.1? I have 51-6 (Maemo 3.0) still and went for this install anyway... Does it matter? Works for me, so far... :rolleyes:

hafken 2007-05-07 13:20

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Serge (Post 47423)
Thanks a lot, just upload it somewhere and provide me with a link, or contact me in PM, so we can discuss how I can get this sample. We just recently had this audio/video sync bug story which took too much time to resolve because nobody cared to report it properly. So I was worried that we might be getting something similar repeated :)

Hi,
Sorry for the delay again (I don't have a lot of time to do this stuff right now -- family obligations take precedence!) , I'm having problems extracting a sample clip that still doesn't play correctly (when using avidemux the resulting clip doesn't have the problem anymore!). The original file was created using handbrake on the mac. I'm at work now, so I don't have access to that setup, but tonight I will try to recapture a short clip for you. This actually could have been a bug in handbrake, as it is still beta software itself. I'll let you know once I have the clip available and have confirmed it still doesn't work. Thanks for your patience...

-dave

tolou 2007-05-09 07:46

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by tolou (Post 47547)
Hmm, is this really for the LATEST 2007 F/W, v. 3.2007.10-7, a.k.a Maemo 3.1? I have 51-6 (Maemo 3.0) still and went for this install anyway... Does it matter? Works for me, so far... :rolleyes:

Well needless to say I´ve encountered the infamous endless reboot loop on that partition... :mad: Not really sure if it´s related to the xserver?
I had Openbox-ROX on mmc-boot, but switched to the Hildon boot and there it was...
Interesting that the ROX seemed to manage though. Wonder if it´s immune to the reboot issue?!

tolou 2007-05-09 09:23

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Serge (Post 47253)
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

Hmm, I think I be needing that of the 51-6 version:
http://repository.maemo.org/pool/mae...21.1_armel.deb

Will have to try to extract the files and copy them into the mmc boot partition. Wish me luck... :cool:

Serge 2007-05-09 10:07

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by tolou (Post 47777)
Hmm, I think I be needing that of the 51-6 version:
http://repository.maemo.org/pool/mae...21.1_armel.deb

Will have to try to extract the files and copy them into the mmc boot partition. Wish me luck... :cool:

Yes, the patched xserver can be only installed on N800 with 3.2007.10-7 version of firmware, sorry, that's one more thing I forgot to mention in my initial announcement. Though I did add a warning that everyone experimenting with the patched xserver should be prepared for a reflash in the worst case. Surely, once/if this patch gets added to the next version of official N800 firmware, everything will be much easier for end users.

By the way, why don't you upgrade to the latest firmware? You will not get a good video playback with the old one anyway.

tolou 2007-05-09 11:34

Re: MPlayer which version is suitable
 
Ohh, it worked alright. And I got as good video performance with the mplayer as I could expect, I think. Thanks Serge!
Now if I can, I will be running the old 51-6 system with all my apps and tweaks. The 10-7 isn´t really enough for me to take that plunge. Waiting for the next F/W to be released instead.

I´m running on the flash now so no real harm done.

jmk 2007-05-09 12:48

Re: MPlayer which version is suitable
 
Ok i did some tests with patched xserver and latest mplayer build. Virtual memory is disabled.

Playing gilmore.girls.714.hdtv.xvid.notv-sample.avi.

AVI file format detected.

VIDEO: [XVID] 624x352 24bpp 23.976 fps 1069.5 kbps (130.6 kbyte/s)

Clip info:

Software: MEncoder 1.0rc1-3.3.5


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, ??, 160.0 kbit/10.42% (ratio: 20000->192000)

Selected audio codec: [dspmp3] afm: dspmp3 (MP3 audio pass-through for Nokia 770)


patched xserver:
BENCHMARKs: VC: 55,454s VO: 7,633s A: 0,653s Sys: 2,061s = 65,802s
BENCHMARK%: VC: 84,2752% VO: 11,5997% A: 0,9923% Sys: 3,1328% = 100,0000%
BENCHMARKn: disp: 1299 (19,74 fps) drop: 93 (6%) total: 1392 (21,15 fps)

original xserver:
BENCHMARKs: VC: 52,797s VO: 10,030s A: 0,386s Sys: 2,827s = 66,039s
BENCHMARK%: VC: 79,9474% VO: 15,1878% A: 0,5838% Sys: 4,2811% = 100,0000%
BENCHMARKn: disp: 1294 (19,59 fps) drop: 105 (7%) total: 1399


Playing south.park.1009.proper.dsr.xvid.sample-kyr.avi.

Cache fill: 0.00% (0 bytes)

AVI file format detected.

VIDEO: [XVID] 512x384 12bpp 23.976 fps 850.8 kbps (103.9 kbyte/s)


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, ??, 160.0 kbit/10.42% (ratio: 20000->192000)

Selected audio codec: [dspmp3] afm: dspmp3 (MP3 audio pass-through for Nokia 770)

patched xserver

BENCHMARKs: VC: 37,152s VO: 7,202s A: 0,276s Sys: 17,820s = 62,450s
BENCHMARK%: VC: 59,4910% VO: 11,5320% A: 0,4424% Sys: 28,5346% = 100,0000%
BENCHMARKn: disp: 1412 (22,61 fps) drop: 0 (0%) total: 1412 (22,61 fps)

original: drop 0 no difference

Playing the.simpsons.1819.pdtv.sample-lol.avi.

Cache fill: 0.00% (0 bytes)

AVI file format detected.

VIDEO: [XVID] 512x384 12bpp 23.976 fps 849.2 kbps (103.7 kbyte/s)


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, ??, 160.0 kbit/10.42% (ratio: 20000->192000)

Selected audio codec: [dspmp3] afm: dspmp3 (MP3 audio pass-through for Nokia 770)


patched xserver
BENCHMARKs: VC: 35,618s VO: 7,122s A: 0,528s Sys: 18,986s = 62,255s
BENCHMARK%: VC: 57,2135% VO: 11,4400% A: 0,8488% Sys: 30,4977% = 100,0000%
BENCHMARKn: disp: 1403 (22,54 fps) drop: 0 (0%) total: 1403 (22,54 fps)

original: drop 0 no difference

Playing 24.621.hdtv.sample-lol.avi.

Cache fill: 0.00% (0 bytes)

AVI file format detected.

VIDEO: [XVID] 624x352 12bpp 23.976 fps 1164.5 kbps (142.2 kbyte/s)


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, ??, 112.0 kbit/7.29% (ratio: 14000->192000)

Selected audio codec: [dspmp3] afm: dspmp3 (MP3 audio pass-through for Nokia 770)


patched xserver:
BENCHMARKs: VC: 56,217s VO: 6,603s A: 0,456s Sys: 2,588s = 65,863s
BENCHMARK%: VC: 85,3534% VO: 10,0258% A: 0,6917% Sys: 3,9291% = 100,0000%
BENCHMARKn: disp: 1123 (17,05 fps) drop: 277 (19%) total: 140


original:
BENCHMARKs: VC: 56,573s VO: 6,662s A: 0,427s Sys: 2,470s = 66,132s
BENCHMARK%: VC: 85,5463% VO: 10,0732% A: 0,6460% Sys: 3,7345% = 100,0000%
BENCHMARKn: disp: 1096 (16,57 fps) drop: 303 (21%) total: 1399 (21,15 fps)



Playing xor-greys.anatomy.303-sample.avi.

Cache fill: 0.00% (0 bytes)

AVI file format detected.

VIDEO: [XVID] 608x336 24bpp 23.976 fps 822.3 kbps (100.4 kbyte/s)

patched xserver:
BENCHMARKs: VC: 57,128s VO: 8,076s A: 0,399s Sys: 8,985s = 74,588s
BENCHMARK%: VC: 76,5919% VO: 10,8275% A: 0,5347% Sys: 12,0459% = 100,0000%
BENCHMARKn: disp: 1480 (19,84 fps) drop: 68 (4%) total: 1548 (20,75 fps)



Playing world.series.of.poker.2006.e02.pdtv.xvid.sample-tbs.avi.

Cache fill: 0.00% (0 bytes)

AVI file format detected.

VIDEO: [XVID] 544x368 24bpp 29.970 fps 1389.4 kbps (169.6 kbyte/s)

Clip info:

patched xserver:
BENCHMARKs: VC: 35,325s VO: 4,082s A: 0,554s Sys: 2,203s = 42,164s
BENCHMARK%: VC: 83,7792% VO: 9,6821% A: 1,3150% Sys: 5,2237% = 100,0000%
BENCHMARKn: disp: 779 (18,48 fps) drop: 254 (24%) total: 1033

original xserver:
BENCHMARKs: VC: 35,648s VO: 3,879s A: 0,556s Sys: 2,189s = 42,272s
BENCHMARK%: VC: 84,3300% VO: 9,1763% A: 1,3154% Sys: 5,1783% = 100,0000%
BENCHMARKn: disp: 784 (18,55 fps) drop: 250 (24%) total: 1034 (24,46 fps)



Nokia_N800.avi


patched xserver:

BENCHMARKs: VC: 30,488s VO: 7,782s A: 0,455s Sys: 64,166s = 102,891s

BENCHMARK%: VC: 29,6315% VO: 7,5633% A: 0,4423% Sys: 62,3629% = 100,0000%

BENCHMARKn: disp: 2502 (24,32 fps) drop: 0 (0%) total: 2502 (24,32 fps)

Original:

BENCHMARKs: VC: 30,803s VO: 7,626s A: 0,442s Sys: 63,938s = 102,810s

BENCHMARK%: VC: 29,9607% VO: 7,4180% A: 0,4304% Sys: 62,1909% = 100,0000%

BENCHMARKn: disp: 2501 (24,33 fps) drop: 0 (0%) total: 2501 (24,33 fps)


There is little or no difference as you can see.

fanoush 2007-05-09 12:56

Re: MPlayer which version is suitable
 
You did reboot after swapping X server binary, right?

Serge 2007-05-09 13:05

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by jmk (Post 47794)
Ok i did some tests with patched xserver and latest mplayer build. Virtual memory is disabled.

[snip]

Nokia_N800.avi

patched xserver:

BENCHMARKs: VC: 30,488s VO: 7,782s A: 0,455s Sys: 64,166s = 102,891s
BENCHMARK%: VC: 29,6315% VO: 7,5633% A: 0,4423% Sys: 62,3629% = 100,0000%
BENCHMARKn: disp: 2502 (24,32 fps) drop: 0 (0%) total: 2502 (24,32 fps)

Original:

BENCHMARKs: VC: 30,803s VO: 7,626s A: 0,442s Sys: 63,938s = 102,810s
BENCHMARK%: VC: 29,9607% VO: 7,4180% A: 0,4304% Sys: 62,1909% = 100,0000%
BENCHMARKn: disp: 2501 (24,33 fps) drop: 0 (0%) total: 2501 (24,33 fps)

There is little or no difference as you can see.

Both results look good and show the numbers which are normal for the patched xserver. Are you sure you really did run benchmark with the original xserver in your last test? Rebooting is needed for the changes to take effect. My own tests with the original vs. patched xserver for Nokia_N800.avi look very much the same as the results posted my Milhouse: http://www.internettablettalk.com/fo...&postcount=431

tolou 2007-05-09 13:37

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by fanoush (Post 47795)
You did reboot after swapping X server binary, right?

Yes, I´ve rebooted successfully to ROX since patching to the modified 3.1 xserver.

jmk 2007-05-09 18:14

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Serge (Post 47796)
Both results look good and show the numbers which are normal for the patched xserver. Are you sure you really did run benchmark with the original xserver in your last test? Rebooting is needed for the changes to take effect. My own tests with the original vs. patched xserver for Nokia_N800.avi look very much the same as the results posted my Milhouse: http://www.internettablettalk.com/fo...&postcount=431

Of course i did reboot. Installed patched xserver with dpkg -i packagename.deb and rebooted after that.

tolou 2007-05-10 08:09

Re: MPlayer which version is suitable
 
:D
Yes, unpacked the original maemo 3.0 xserver deb into the mmc boot partition and I´m home free again! FYI.

f97mp 2007-05-10 12:48

Re: MPlayer which version is suitable
 
Is there any possibility for MPlayer@N800 ever playing h264 video in a descent way? I understand h264 is rather demanding, but do you guys think it will be possible on the lovely N800?

My intention was to watch video-podcasts, e.g. this one http://www.cnn.com/CNN/Programs/ande...ast/index.html .

I have the latest MPlayer of this thread installed and the default xserver. MPlayer identifies the video (locally stored) as h264 and tries to decode it, it seems. I only get a blank screen and audio stutter though.

Any one else with better luck?

tolou 2007-05-10 19:06

Re: MPlayer which version is suitable
 
Here's my Nokia_N800.avi benchmark with the modified 3.1 xserver on a ROX booted 51-6:
Code:

BENCHMARKs: VC:  32,536s VO:  8,530s A:  0,504s Sys:  61,070s =  102,641s
BENCHMARK%: VC: 31,6992% VO:  8,3105% A:  0,4915% Sys: 59,4988% = 100,0000%
BENCHMARKn: disp: 2511 (24,46 fps)  drop: 0 (0%)  total: 2511 (24,46 fps)


madman999 2007-05-11 22:14

Re: MPlayer which version is suitable
 
fyi-I got Mplayer working on my N800 and reading ASF video files.

the playback is smooth and Audio is in sync.

Serge 2007-05-12 17:01

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by f97mp (Post 47915)
Is there any possibility for MPlayer@N800 ever playing h264 video in a descent way? I understand h264 is rather demanding, but do you guys think it will be possible on the lovely N800?

Don't know if it will improve performance to the decent level, but h264 decoding can be optimized quite well using ARMv6 SIMD instructions. Right now h264 decoding does not have any ARM assembly optimizations in MPlayer/FFmpeg at all. All of this will require quite a bit of work and time though, it is easier said than done.

Quote:

My intention was to watch video-podcasts, e.g. this one http://www.cnn.com/CNN/Programs/ande...ast/index.html.
This podcast also has audio encoded in AAC, and AAC is not very well supported in MPlayer on ARM (performance wise) right now. Making use of AAC DSP codec from N800 also requires quite a lot of work. You may search this forum for some more details.

Tuxedosteve 2007-05-20 20:29

Re: MPlayer which version is suitable
 
I'm new to using Mplayer (I can't believe I've been struggling with the built in video player for so long). Does anyone else have the problem of Mplayer stopping video playback about a second or so before the actual end of the video file? (Mplayer version 1.0rc1-maemo.16.n800)

Karel Jansens 2007-05-20 20:46

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by Tuxedosteve (Post 49231)
I'm new to using Mplayer (I can't believe I've been struggling with the built in video player for so long). Does anyone else have the problem of Mplayer stopping video playback about a second or so before the actual end of the video file? (Mplayer version 1.0rc1-maemo.16.n800)

Never tried it -- I only watch credits on the big screen. :p

sherifnix 2007-05-21 03:50

Re: MPlayer which version is suitable
 
Serge,

I just had a question about the DSP and motion compensation stuff. Does Nokia have to write drivers to open these up to you, or is it just optimization done on your end. I only ask because I saw that the Nokia N95 can decode 640x480 .h264. I realize its Symbian but its the same chipset/processor. Blows me away that they pulled that off, I wish they'd have that kinda support built in for us.

Anyways, I'm not asking for anything just chit chatting! =) I'm glad you're almost to the "holy grail" of vga+ divx/xvid decoding... its all I ever wanted from the tablet!

Thanks again for all your hard work!

Serge 2007-05-28 19:54

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by sherifnix (Post 49259)
I just had a question about the DSP and motion compensation stuff. Does Nokia have to write drivers to open these up to you, or is it just optimization done on your end.

As far as I know N800 has C55x DSP core clocked at 220Mhz (the same 252MHz core is used in Nokia 770) and also IVA running at 220MHz (1). I did not find much information about IVA, but the following post suggests that it is ARM7 core with some multimedia coprocessors. C55x DSP core can be theoretically good for video and some people have even compiled simple examples for it, but in practice seems like nobody did anything of practical value for it up to this moment. In order to use IVA we would need some documentation and also support for it in dspgateway. Also I don't have any DSP programming experience ... yet

Serge 2007-05-28 20:00

Re: MPlayer which version is suitable
 
mplayer_1.0rc1-maemo.17 has been released:
* Added YUV420 color format support for framebuffer video output ('-vo nokia770'). It works out of the box for N800, but needs a fixed kernel for Nokia 770 (https://garage.maemo.org/tracker/ind...d=164&atid=683). Nokia 770 requires explicit command line option '-vo nokia770:yuv420=1' for enabling YUV420 video output (using it with the default IT OS 2006 kernel will just crash the device). YUV420 format provides 20-30% speedup for video output (overall improvement is only a few percents though as video decoding usually takes much more time than video output)
* Now '-vo nokia770' is temporarily set as default video output for N800 as it lets to have fast video output performance even without xserver patch https://bugs.maemo.org/show_bug.cgi?id=1278)

This is an experimental version (for the reasons explained above), so if it does not work good for you, you are advised to stay with version .16

fanoush 2007-05-28 20:51

Re: MPlayer which version is suitable
 
If anyone really wants that few percent speedup on n770 and wants to flash custom kernel because of this, let me know and I'll provide a link for such kernel image if you cannot compile kernel yourself with that patch. Also if such adventurous soul has relatively new N770 device I would need a tester for tearsync (i.e. tearless playback) feature, see this
http://maemo.org/pipermail/maemo-dev...ay/010156.html
and bottom of this
http://maemo.org/pipermail/maemo-dev...ay/010285.html
you should have higher HW build version in /proc/component_version than me (1602) and are not afraid of flashing kernel. On my device (one of the first ones from November 2005) it simply hangs. It may be that on newer device (newer HW build) those pins inside are connected \and tearsync feature will magically work. But it may also be that my code is buggy and most probably the device will hang when enabling the tearsync feature with mplayer (default is disabled). Otherwise such kernel should work as usual but without any warranty of course :-)

Serge, is the tearsync option for -vo nokia770 in .17 too?

Serge 2007-05-29 06:52

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by fanoush (Post 49966)
Serge, is the tearsync option for -vo nokia770 in .17 too?

Yes, 'tearsync' option is supported: '-vo nokia770:tearsync=1'.

By the way, it can be also used on N800 to disable tearsync ('-vo nokia770:tearsync=0') for real 'racers' who need the best performance at any cost :)

fanoush 2007-05-29 11:28

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by fanoush (Post 49966)
If anyone really wants that few percent speedup on n770 and wants to flash custom kernel because of this, let me know and I'll provide a link for such kernel image if you cannot compile kernel yourself with that patch.

I guess it is easier to put here a link just in case anyone with N770 is interested
http://fanoush.wz.cz/maemo/zImage-yuv420
1276624 bytes
md5sum is 12434779377540ec1f3c7bfa394e44b5

It is based on kernel source from latest IT2006 FW (.49) with high speed mmc patches, multiblock MMC writes enabled, extended brightness control, yuv420 patch and tearsync backport. I am using it on my device for one week or so but better treat it as experimental kernel :-) You can even use linux flasher to load it temporarily without writing to flash (flasher -l -k zImage-yuv420 -b) and next reboot brings your old kernel back. For those who have different hw-build version than 1602 (see /proc/component_version) I would be interested if tearsync works with latest mplayer and -vo nokia770:tearsync=1. Thanks.

N770-Freak 2007-05-29 13:03

Re: MPlayer which version is suitable
 
I have tested tearsync with my 770 without success! After starting playback I got a black screen and after some seconds my device rebooted.

~$ cat /proc/component_version
Code:

product  SU-18
hw-build  1802
nolo      0.9.14

kernel: zImage-yuv420
mplayer: mplayer_1.0rc1-maemo.17

~$ mplayer -vo nokia770:tearsync=1 /home/user/MyDocs/.videos/Discovery.avi
Code:

MPlayer 1.0rc1-maemo.17.n770 (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 /home/user/MyDocs/.videos/Discovery.avi.

Cache fill:  0.00% (0 bytes) 
AVI file format detected.
VIDEO:  [DIVX]  352x208  24bpp  15.000 fps  389.5 kbps (47.5 kbyte/s)
Clip info:
 Software: MEncoder dev-CVS-050626-17:02-3.4.2
[nokia770] Nokia 770 hardware detected
==========================================================================
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: 44100 Hz, 2 ch, ??, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [dspmp3] afm: dspmp3 (MP3 audio pass-through for Nokia 770)
==========================================================================
AO: [gst] 44100Hz 2ch ?? (1 bytes per sample)
Starting playback...
VDec: vo config request - 352 x 208 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,69:1 - prescaling to correct movie aspect.
VO: [nokia770] 352x208 => 352x208 Planar YV12  [fs] [zoom]
[nokia770] Using ARM JIT YUY2 scaler (quality=2) to scale 352x208 => 400x236


fanoush 2007-05-29 14:18

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by N770-Freak (Post 50013)
I have tested tearsync with my 770 without success! After starting playback I got a black screen and after some seconds my device rebooted.

~$ cat /proc/component_version
Code:

product  SU-18
hw-build  1802
nolo      0.9.14


Thanks for testing. This means the code really does not work on many (all?) devices. Let's just hope it is my bug and can be fixed. It seems unlikely that someone inside Nokia bothered to write the tearsync code for N770 (which is completely different than code for n800) but the hardware in fact does not support it. Still it never made into official N770 kernel so maybe they found it later, who knows.

sdrman 2007-05-30 00:48

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by fanoush (Post 49966)
If anyone really wants that few percent speedup on n770 and wants to flash custom kernel because of this, let me know and I'll provide a link for such kernel image if you cannot compile kernel yourself with that patch.

I'm sorry if this is a stupid question, but did you intend to post a patch for n770 tearsync? I didn't find the source code anywhere. I tried the provided binary and it behaved exactly as N770-Freak described. I have the same hw version too.

fanoush 2007-05-30 07:45

Re: MPlayer which version is suitable
 
Quote:

Originally Posted by sdrman (Post 50099)
I'm sorry if this is a stupid question, but did you intend to post a patch for n770 tearsync? I didn't find the source code anywhere. I tried the provided binary and it behaved exactly as N770-Freak described. I have the same hw version too.

Yes, definitely. Only that it currently doesn't work at all so I guessed few people would be interested in such patch. And it also takes some time to clean up kernel sources to produce patch only with specific feature when there are more unrelated changes done. However I am very well aware that kernel is GPLed and my link above means I am distributing binary so I simply have to produce source if someone wants it. And in fact I would be happy if some kernel hacker had a look at the code and found what is missing/wrong in the code. OK I'll do a diff ASAP. It is basically a merge from n800 2.6.18 kernel source tree (which does contain some newer N770 code including tearsync too) as explained in
http://maemo.org/pipermail/maemo-dev...ay/010156.html
But please PM me if you don't really want it after all so I am not doing useless extra work, thanks. Also expect that the patch will be a bit messy.

Serge 2007-05-30 18:47

Re: MPlayer which version is suitable
 
Hi all. New fanoush's kernel properly supports yuv420 mode which is already an improvement and speeds up video playback in mplayer. It still does not support tearsync (work in progress) which would be a very nice addition and would improve video quality on Nokia 770. I think that he does a great job and deserves all the help we may provide...

On the other hand, judging from the ratio of 770/800 mplayer package downloads, either Nokia did really sell lots of N800 already and the new device is really very popular or many people have already given up on 770 as a multimedia device. Are there many people who would like to see video support improving on 770?


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

vBulletin® Version 3.8.8