உங்கள் உபுண்டு டச் கருவியை உங்கள் கணினியில் ச்கிரீன்காச்ட் செய்தல்¶
தொகுக்கப்பட்ட mirScreencast கட்டளை-வரி பயன்பாடு திரை-பிரேம்களை ஒரு கோப்பில் செலுத்துகிறது. உங்கள் உபுண்டு டச் காட்சியை நெட்வொர்க்கில் (அல்லது நேரடியாக ADB மூலம்) கணினியில் ச்ட்ரீம் செய்ய இதைப் பயன்படுத்தவும், அதை நேரலையில் பார்க்க அல்லது ஒரு கோப்பில் பதிவு செய்யுங்கள்.
ADB ஐப் பயன்படுத்துதல்¶
You can catch output directly from the adb exec-out command and forward it to MPlayer:
adb exec-out timeout 120 mirscreencast -m /run/mir_socket --stdout --cap-interval 2 -s 384 640 | mplayer -demuxer rawvideo -rawvideo w=384:h=640:format=rgba -
timeout above is used to kill the process in a proper manner on the Ubuntu Touch device (120 seconds here).
(Otherwise the process continues even if killed on the computer.)
Reduce or increase the number of frames per second with``--cap-interval`` (1 = 60fps, 2=30fps, …)
and the size of frames 384 640 means a width of 384 px and a height of 640 px. If red and blue
colors look reversed you can use format=bgra instead of format=rbga
பிணையம் வழியாக¶
ரிசீவரில்¶
நிகழ்நேர வார்ப்புக்கு:
Prepare your computer to listen to a TCP port (1234 here) and forward the raw stream to a video player (MPlayer here) with a framesize of 384x640:
nc -l -p 1234 | gzip -dc | mplayer -demuxer rawvideo -rawvideo w=384:h=640:format=rgba -
ச்ட்ரீம் பதிவுக்கு:
Prepare your computer to listen to a TCP port (1234 here), unpack and forward the raw stream to a video encoder (MEncoder here):
nc -l -p 1234 | gzip -dc | mencoder -demuxer rawvideo -rawvideo fps=60:w=384:h=640:format=rgba -ovc x264 -o out.avi -
உபுண்டு டச் கருவியில்¶
Forward and gzip the stream with 60 FPS (--cap-interval 1) and a framesize of 384x640 to the computer at 10.42.0.209 on port 1234:
mirscreencast -m /run/mir_socket --stdout --cap-interval 1 -s 384 640 | gzip -c | nc 10.42.0.209 1234
எடுத்துக்காட்டு ச்கிரிப்ட்¶
Run this on a computer (with MPlayer installed and SSH access to the Ubuntu Touch device) to screencast a remote Ubuntu Touch device to it.:
#!/bin/bash
SCREEN_WIDTH=384
SCREEN_HEIGHT=640
PORT=1234
FORMAT=rgba
if [[ $# -eq 0 ]] ; then
echo 'usage: ./mircast.sh UT_IP_ADDRESS , e.g: ./mircast.sh 192.168.1.68'
exit 1
fi
IP=$1
LOCAL_COMMAND='nc -l -p $PORT | gzip -dc | mplayer -demuxer rawvideo -rawvideo w=$SCREEN_WIDTH:h=$SCREEN_HEIGHT:format=$FORMAT -'
REMOTE_COMMAND="mirscreencast -m /run/mir_socket --stdout --cap-interval 1 -s $SCREEN_WIDTH $SCREEN_HEIGHT | gzip -c | nc \$SSH_CLIENT $PORT"
ssh -f phablet@$IP "$REMOTE_COMMAND"
eval $LOCAL_COMMAND
நீங்கள் அதை இங்கே பதிவிறக்கம் செய்யலாம்: files/mircast.sh