transcoding video for freerunner 240x320 mode
Ed Kapitein
ed at kapitein.org
Mon Jul 2 20:18:34 CEST 2012
Many thanks!
Very helpful commands in that script.
Kind regards,
Ed
On 07/02/2012 07:39 PM, Timo Juhani Lindfors wrote:
> Ed Kapitein <ed at kapitein.org> 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 at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
>
More information about the community
mailing list