Re: Using freerunner as webcam display
2010/9/6 Alexander Lehner leh...@edv-buero-lehner.de: xrandr -o 2 seems not to work. I'm sorry, I meant xrandr -o 1 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
Em 06-09-2010 00:24, Alexander Lehner escreveu: Just one strange thind to mention: opkg update/upgrade from my prior version crashed my phone and the power button started to shine in magenta! Never seen this before, but it was really nice. (We could use this if the SIM card was detected as TCom provider...) I usually ssh into the phone, stop X so it wastes less memory, and only then do an upgrade (specially if it's a lot of stuff). Rui ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
Rui Miguel Silva Seabra r...@1407.org writes: I usually ssh into the phone, stop X so it wastes less memory, and only then do an upgrade (specially if it's a lot of stuff). I usually upgrade about once a week after taking backups. I use apt-get update apt-get --download-only dist-upgrade and read the changelogs of important packages while they download from http://changelogs.debian.net/index.php Then I spend an hour or so testing and reporting bugs. If there's a really bad bug I dget(1) an older version of the affected package and try downgrading that. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
[cut] I think it's the CPU which is around 90% already at 2fps. Another problem is, that the mpeg stream sometimes seems to be corrupt which crashess mplayer after some time. So I did a 'while true; do mplayer...; done' around and set codecs and other parameters by hand to avoid the autodetection. Keep in mind that there are several versions of mplayer compiled. Each of them are better suited for different video formats or other factors: There is some special version of mplayer with glamo support: http://downloads.tuxfamily.org/3v1deb/openmoko/mplayer-glamo.tar.bz2 Also PaulTT has compiled a version of mplayer with tremor available: http://www.paultt.org/downloads/openmoko/mplayer_dev-SVN-r29155-4.1.2_armv4t.ipk Or you can use one from FSO: http://downloads.freesmartphone.org/fso-unstable/feeds/armv4t/mplayer_0.0+1.0rc2-r12_armv4t.ipk I have seen a note on wiki that says: The kernel is now (July 2010) configured to use kernel-mode switching (kms) for glamo. The glamo video driver has no direct control over glamo anymore and cannot use accelerated video playing until a new driver is written. http://wiki.openmoko.org/wiki/Video_Player Hope this will help you. Cheers. -- Patryk LeadMan Benderz Linux Registered User #377521 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Email secured by Check Point ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
В Пнд, 06/09/2010 в 12:54 +0200, Patryk Benderz пишет: I have seen a note on wiki that says: The kernel is now (July 2010) configured to use kernel-mode switching (kms) for glamo. The glamo video driver has no direct control over glamo anymore and cannot use accelerated video playing until a new driver is written. Only shr distribution at this moment using kms-kernel. Gennady ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
On Sat, 4 Sep 2010, Denis Shulyaka wrote: 2010/9/3 Alexander Lehner leh...@edv-buero-lehner.de: On Fri, 3 Sep 2010, Gennady Kupava wrote: Hi Alex! I think that video filters you use take too much cpu. Try -zoom instead of -vf scale and also try `xrandr -o 2` before running mplayer and omit the -vf rotate=2 parameter. Also try -vo x11 if above does not work. Denis. Hi Dennis, thanks for your hints. I found out, that is mainly fbdev which costs the high CPU load. with x11 and no rotation I get 60% CPU at 10fps and a fluent movie. x11 and rotation is about 80%CPU. fbdev is at 80-90%CPU with or without rotation and a not so smooth video any more. xrandr -o 2 seems not to work. So I can live with that - after all it's actually only a 'proof of concept' without any relevant importance ;) I also updated to a new image (last one was more than 1 month ago) and I was surprised about the speed improvement - launching applications and the reaction time of certain controls (especially disabling dimming and suspend) are really impressive now! However did this - thanks a lot, I now hate my freerunner less than before ;) Just one strange thind to mention: opkg update/upgrade from my prior version crashed my phone and the power button started to shine in magenta! Never seen this before, but it was really nice. (We could use this if the SIM card was detected as TCom provider...) Alex. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
2010/9/3 Alexander Lehner leh...@edv-buero-lehner.de: On Fri, 3 Sep 2010, Gennady Kupava wrote: ? ???, 03/09/2010 ? 19:03 +0200, Alexander Lehner ?: I think it's the CPU which is around 90% already at 2fps. Another problem is, that the mpeg stream sometimes seems to be corrupt which crashess mplayer after some time. So I did a 'while true; do mplayer...; done' around and set codecs and other parameters by hand to avoid the autodetection. Hey, do not scarify this man with timings, theora, omhacks and etc. I can play 640*480 mpeg2 at 12fps, glamo can update 640x480 fullscreen at much higher fps ;) 2 fps is way too low, you should find what is missing. What is resolution? what is codec, can you rstp service send in different format (may be mpeg4 will be faster)? Do you sending sound with your image? Which part of system eats 90% of CPU? Caclulate your rate and find out why it is so slow, find out why it is so slow! I turned back the fps of the cam to 10fps and it still works, i.e. I don't have framedrops and CPU load is the same (ok, there is not much room left...) BUT: the reaction is too slow. If i move the cam, it takes up to 15 seconds, until the actual image appears. It seems that there is some data stuck somewhere, but I don't know where. If I watch the cam from a PC, I don't see that delay. The webcam sends a sound, but i've turned sound off in mplayer. The resolution is 640x480. It's mplayer itself which eats all CPU. The only alternative is MJPEG which does not work, so I'm using MPEG4 (did I say MPEG2 before?). My FR is connected via WiFi (someone said it's faster than USB) and next to the accesspoint. My mplayer line looks like: mplayer -vc ffodivx -vf scale -fps 2 -fs -nosound -vf rotate=2 -vo fbdev rtsp://doorspy:554/mpeg4 And that's what mplayer says: -- Playing rtsp://doorspy:554/mpeg4. Resolving doorspy for AF_INET... Connecting to server doorspy[192.168.13.40]: 554... rtsp_session: unsupported RTSP server. Server type is 'unknown'. STREAM_LIVE555, URL: rtsp://doorspy:554/mpeg4 Stream not seekable! file format detected. Initiated video/MP4V-ES RTP subsession on port 53728 Initiated audio/PCMU RTP subsession on port 58282 VIDEO: [mp4v] 0x0 0bpp 0.000 fps 0.0 kbps ( 0.0 kbyte/s) Opening video filter: [rotate=2] == Forced video codec: ffodivx Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) == Audio: no sound FPS forced to be 2.000 (ftime: 0.500). Starting playback... Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. [swscaler @ 0x40e90890]No accelerated colorspace conversion found from yuv420p to rgb565le. -- Alex. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community Hi Alex! I think that video filters you use take too much cpu. Try -zoom instead of -vf scale and also try `xrandr -o 2` before running mplayer and omit the -vf rotate=2 parameter. Also try -vo x11 if above does not work. Denis. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Using freerunner as webcam display
Hi, I've got a TrentNET wireless webcam and just found out how to access its mpeg4 video stream and am using now my GPS-broken freerunner as permanent display for this webcam: mplayer -nosound -vf rotate=2 -vo fbdev rtsp://webcam-ipaddr:554/mpeg4 I had to turn down the cam's fps to 2 for a real-time video without delay. Alex. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
On Fri, Sep 3, 2010 at 2:52 PM, Alexander Lehner leh...@edv-buero-lehner.de wrote: Hi, I've got a TrentNET wireless webcam and just found out how to access its mpeg4 video stream and am using now my GPS-broken freerunner as permanent display for this webcam: mplayer -nosound -vf rotate=2 -vo fbdev rtsp://webcam-ipaddr:554/mpeg4 nice! R -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
Dnia 2010-09-03, pią o godzinie 13:52 +0200, Alexander Lehner pisze: Hi, I've got a TrentNET wireless webcam and just found out how to access its mpeg4 video stream and am using now my GPS-broken freerunner as permanent display for this webcam: mplayer -nosound -vf rotate=2 -vo fbdev rtsp://webcam-ipaddr:554/mpeg4 Nice one :). I had to turn down the cam's fps to 2 for a real-time video without delay. Did you discovered what is the bottleneck? -- Patryk LeadMan Benderz Linux Registered User #377521 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Email secured by Check Point ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
On Fri, 3 Sep 2010, Patryk Benderz wrote: Dnia 2010-09-03, pi? o godzinie 13:52 +0200, Alexander Lehner pisze: Hi, I've got a TrentNET wireless webcam and just found out how to access its mpeg4 video stream and am using now my GPS-broken freerunner as permanent display for this webcam: mplayer -nosound -vf rotate=2 -vo fbdev rtsp://webcam-ipaddr:554/mpeg4 Nice one :). I had to turn down the cam's fps to 2 for a real-time video without delay. Did you discovered what is the bottleneck? I think it's the CPU which is around 90% already at 2fps. Another problem is, that the mpeg stream sometimes seems to be corrupt which crashess mplayer after some time. So I did a 'while true; do mplayer...; done' around and set codecs and other parameters by hand to avoid the autodetection. BR, Alex. -- Patryk LeadMan Benderz Linux Registered User #377521 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Email secured by Check Point ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
Consider, if you can switch recording to MPEG-2. You can play MPEG-2 video at much more fps with Glamo 2-4-2 timings. Or you can try this: http://unadventure.wordpress.com/2008/06/08/accelerating-in-my-pocket/ and accelerate MPEG-4 on Glamo, but it's not yet ported to new kernels with DRI architecture. Regards, Martix 2010/9/3 Alexander Lehner leh...@edv-buero-lehner.de: On Fri, 3 Sep 2010, Patryk Benderz wrote: Dnia 2010-09-03, pi? o godzinie 13:52 +0200, Alexander Lehner pisze: Hi, I've got a TrentNET wireless webcam and just found out how to access its mpeg4 video stream and am using now my GPS-broken freerunner as permanent display for this webcam: mplayer -nosound -vf rotate=2 -vo fbdev rtsp://webcam-ipaddr:554/mpeg4 Nice one :). I had to turn down the cam's fps to 2 for a real-time video without delay. Did you discovered what is the bottleneck? I think it's the CPU which is around 90% already at 2fps. Another problem is, that the mpeg stream sometimes seems to be corrupt which crashess mplayer after some time. So I did a 'while true; do mplayer...; done' around and set codecs and other parameters by hand to avoid the autodetection. BR, Alex. -- Patryk LeadMan Benderz Linux Registered User #377521 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Email secured by Check Point ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
Alexander Lehner leh...@edv-buero-lehner.de writes: I think it's the CPU which is around 90% already at 2fps. You can play 320x240 25fps theora/vorbis video with theorarm and tremor (and om screen glamo-bus-timings 2-4-2). ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
В Птн, 03/09/2010 в 19:03 +0200, Alexander Lehner пишет: I think it's the CPU which is around 90% already at 2fps. Another problem is, that the mpeg stream sometimes seems to be corrupt which crashess mplayer after some time. So I did a 'while true; do mplayer...; done' around and set codecs and other parameters by hand to avoid the autodetection. Hey, do not scarify this man with timings, theora, omhacks and etc. I can play 640*480 mpeg2 at 12fps, glamo can update 640x480 fullscreen at much higher fps ;) 2 fps is way too low, you should find what is missing. What is resolution? what is codec, can you rstp service send in different format (may be mpeg4 will be faster)? Do you sending sound with your image? Which part of system eats 90% of CPU? Caclulate your rate and find out why it is so slow, find out why it is so slow! Gennady. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Using freerunner as webcam display
On Fri, 3 Sep 2010, Gennady Kupava wrote: ? ???, 03/09/2010 ? 19:03 +0200, Alexander Lehner ?: I think it's the CPU which is around 90% already at 2fps. Another problem is, that the mpeg stream sometimes seems to be corrupt which crashess mplayer after some time. So I did a 'while true; do mplayer...; done' around and set codecs and other parameters by hand to avoid the autodetection. Hey, do not scarify this man with timings, theora, omhacks and etc. I can play 640*480 mpeg2 at 12fps, glamo can update 640x480 fullscreen at much higher fps ;) 2 fps is way too low, you should find what is missing. What is resolution? what is codec, can you rstp service send in different format (may be mpeg4 will be faster)? Do you sending sound with your image? Which part of system eats 90% of CPU? Caclulate your rate and find out why it is so slow, find out why it is so slow! I turned back the fps of the cam to 10fps and it still works, i.e. I don't have framedrops and CPU load is the same (ok, there is not much room left...) BUT: the reaction is too slow. If i move the cam, it takes up to 15 seconds, until the actual image appears. It seems that there is some data stuck somewhere, but I don't know where. If I watch the cam from a PC, I don't see that delay. The webcam sends a sound, but i've turned sound off in mplayer. The resolution is 640x480. It's mplayer itself which eats all CPU. The only alternative is MJPEG which does not work, so I'm using MPEG4 (did I say MPEG2 before?). My FR is connected via WiFi (someone said it's faster than USB) and next to the accesspoint. My mplayer line looks like: mplayer -vc ffodivx -vf scale -fps 2 -fs -nosound -vf rotate=2 -vo fbdev rtsp://doorspy:554/mpeg4 And that's what mplayer says: -- Playing rtsp://doorspy:554/mpeg4. Resolving doorspy for AF_INET... Connecting to server doorspy[192.168.13.40]: 554... rtsp_session: unsupported RTSP server. Server type is 'unknown'. STREAM_LIVE555, URL: rtsp://doorspy:554/mpeg4 Stream not seekable! file format detected. Initiated video/MP4V-ES RTP subsession on port 53728 Initiated audio/PCMU RTP subsession on port 58282 VIDEO: [mp4v] 0x0 0bpp 0.000 fps0.0 kbps ( 0.0 kbyte/s) Opening video filter: [rotate=2] == Forced video codec: ffodivx Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) == Audio: no sound FPS forced to be 2.000 (ftime: 0.500). Starting playback... Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. [swscaler @ 0x40e90890]No accelerated colorspace conversion found from yuv420p to rgb565le. -- Alex. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community