Re: transcoding video for freerunner 240x320 mode
Many thanks! Very helpful commands in that script. Kind regards, Ed On 07/02/2012 07:39 PM, Timo Juhani Lindfors wrote: > Ed Kapitein writes: >> Thanks, i did read that mail, but looking at the command line, the >> stream is dumped on stdout right? > Yes. I typically do > > mplayer-wrapper <(ssh server encode-to-theora http://example.org/foo.mp4) > > where mplayer-wrapper is > > #!/bin/bash > KILLER_PID="" > function cleanup() { > if [ "$KILLER_PID" != "" ]; then > kill -SIGKILL $KILLER_PID > fi > sudo om screen glamo-bus-timings 4-4-4 > sudo fbset 480x640 > sudo om screen resolution normal > sudo chvt 7 > exit 0 > } > trap cleanup 1 2 3 15 > sudo chvt 2 > # disable blanking > sudo sh -c "printf '\033[9;0]' > /dev/tty2" > # disable cursor blinking > sudo sh -c "printf '\033[?17;0;127c' > /dev/tty2" > # hide cursor > sudo sh -c "printf '\033[?25l' > /dev/tty2" > sudo om screen resolution qvga-normal > sudo fbset 240x320 > sudo om screen glamo-bus-timings 2-4-2 > sudo renice -2 -p $$ 2> /dev/null > (dd if=/dev/input/power_button of=/dev/null bs=16 count=1 2> /dev/null; > killall mplayer) & > KILLER_PID=$! > mplayer -framedrop -ac -ffvorbis, -ao alsa -vc -fftheora, -vo fbdev > -nocorrect-pts "$@" > cleanup > > > You need theora 1.2.0 alpha release for decent performance. > > > ___ > 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: transcoding video for freerunner 240x320 mode
On 07/02/2012 10:24 AM, Christ van Willegen wrote: On Mon, Jul 2, 2012 at 7:17 AM, robin wrote: but still why can it run a 240x320 scaled to 480x640 but not a native 48x640? Because the graphic chip does support stretching 240x320 to 480x640 natively, but does not have enough horsepower to drive all pixels individually. If I remember correctly, the main issue is the bus bandwidth - the bus is simply too slow to shuffle bits from main memory to the chip fast enough to do 480x640 video with a decent frame rate, and this is a hardware limitation, so not really fixable in software. 240x320 on the other hand, is only a quarter as many pixels, meaning a quarter of the bits, so only a quarter of the bus bandwidth is required - and this is within the hardware limitations. (As for why this limitation exists, well, I seem to recall hearing that the makers of the graphics chip were impressed we had gotten as much out of it as we had, as it was not really intended to do much at all in 480x640 in the first place.) -Frode ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
Ed Kapitein writes: > Thanks, i did read that mail, but looking at the command line, the > stream is dumped on stdout right? Yes. I typically do mplayer-wrapper <(ssh server encode-to-theora http://example.org/foo.mp4) where mplayer-wrapper is #!/bin/bash KILLER_PID="" function cleanup() { if [ "$KILLER_PID" != "" ]; then kill -SIGKILL $KILLER_PID fi sudo om screen glamo-bus-timings 4-4-4 sudo fbset 480x640 sudo om screen resolution normal sudo chvt 7 exit 0 } trap cleanup 1 2 3 15 sudo chvt 2 # disable blanking sudo sh -c "printf '\033[9;0]' > /dev/tty2" # disable cursor blinking sudo sh -c "printf '\033[?17;0;127c' > /dev/tty2" # hide cursor sudo sh -c "printf '\033[?25l' > /dev/tty2" sudo om screen resolution qvga-normal sudo fbset 240x320 sudo om screen glamo-bus-timings 2-4-2 sudo renice -2 -p $$ 2> /dev/null (dd if=/dev/input/power_button of=/dev/null bs=16 count=1 2> /dev/null; killall mplayer) & KILLER_PID=$! mplayer -framedrop -ac -ffvorbis, -ao alsa -vc -fftheora, -vo fbdev -nocorrect-pts "$@" cleanup You need theora 1.2.0 alpha release for decent performance. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
On 07/02/2012 07:20 PM, Timo Juhani Lindfors wrote: > Ed Kapitein writes: >> Hi, could you post the command you used to scale and play the movie? > http://lists.openmoko.org/pipermail/community/2012-June/067176.html > Thanks, i did read that mail, but looking at the command line, the stream is dumped on stdout right? i was wondering what you did use to play the movie on the screen. Kind regards, Ed ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
Ed Kapitein writes: > Hi, could you post the command you used to scale and play the movie? http://lists.openmoko.org/pipermail/community/2012-June/067176.html ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
Hi, could you post the command you used to scale and play the movie? Kind regards, Ed On 07/01/2012 08:59 PM, Timo Juhani Lindfors wrote: > Radek Polak writes: >> Freerunne has hardware switch for changing resolution to 240x320. But after >> switching you will get the strange colors. > Indeed but after the gamma correction values that I posted the output > looks much more reasonable. > > > ___ > 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: transcoding video for freerunner 240x320 mode
On Mon, Jul 2, 2012 at 7:17 AM, robin wrote: > but still why can it run a 240x320 scaled to 480x640 but not a native 48x640? Because the graphic chip does support stretching 240x320 to 480x640 natively, but does not have enough horsepower to drive all pixels individually. Christ van Willegen -- 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
but still why can it run a 240x320 scaled to 480x640 but not a native 48x640? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
Radek Polak writes: > Freerunne has hardware switch for changing resolution to 240x320. But after > switching you will get the strange colors. Indeed but after the gamma correction values that I posted the output looks much more reasonable. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
On Sunday, July 01, 2012 09:14:00 AM robin wrote: > I don't quite understand this. You show in your youtube video that the > freerunner can show elephants dreams which is 240x320 scaled to 480x640. > how is this different for the graphics card than showing a "native" > 480x640 movie? Freerunne has hardware switch for changing resolution to 240x320. But after switching you will get the strange colors. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
I don't quite understand this. You show in your youtube video that the freerunner can show elephants dreams which is 240x320 scaled to 480x640. how is this different for the graphics card than showing a "native" 480x640 movie? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
On Sunday, July 01, 2012 06:53:09 AM robin wrote: > hi timo, > > is this just for 240x320? or was 480x640 too slow anyhow on the GTA02? GTA02 can't play 480x640 video - processor is good enough for decoding it, but the graphics card is too slow to display it. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: transcoding video for freerunner 240x320 mode
hi timo, is this just for 240x320? or was 480x640 too slow anyhow on the GTA02? br robin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
transcoding video for freerunner 240x320 mode
Hi, it is widely known that 240x320 mode on freerunner has "odd" colors. Today I finally had some time to test if I could help this using gamma correction when transcoding video for freerunner. Empirically I came up with mencoder -really-quiet -oac pcm -ovc lavc -lavcopts vcodec=ffvhuff -vf eq2=1:1:0:1:1.19:1.19:1.44 -vf scale=320:240,rotate=1 -o - "$@" | ffmpeg2theora -V 256 -A 32 -H 22050 -c 1 -o - - 2> /dev/null | dd bs=8192 iflag=fullblock 2> /dev/null where 1.19, 1.19 and 1.44 are the gamma values for red, green and blue. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community