ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #11803
Re: mirscreencast'ing an Ubuntu phone
as a workaround I hacked the following solution together:
on the phone I have a script:
#!/bin/sh
loops=60
start=0
echo PID: $$
while true; do
mirscreencast -m /run/mir_socket --stdout --cap-interval 6 -s 270 480
-n 10 || break
start=`expr $start + 1`
test $start -eq $loops && break
# printf .
done | gzip -c | nc 10.49.30.100 12345
the IP addr is the laptop where the data is read and presented with:
$ nc -l 12345 | gzip -dc | mplayer -demuxer rawvideo -rawvideo fps=10:w=270:h=480:format=rgba -
the bottle-nack is the Wifi network and one must play around a bit with
the --cap-interval / fps values;
HIH
matthias
--
Matthias Apitz, guru@xxxxxxxxxxx, http://www.unixarea.de/ +49-170-4527211
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)
References