Difference between revisions of "Como gravar cursos em vídeo"
| (2 intermediate revisions by the same user not shown) | |||
| Line 43: | Line 43: | ||
Usar o [https://github.com/Genymobile/scrcpy scrcpy] para controlar a câmara. | Usar o [https://github.com/Genymobile/scrcpy scrcpy] para controlar a câmara. | ||
| + | |||
| + | Instalar a partir das sources ou com snap | ||
| + | |||
| + | <syntaxhighlight lang="bash"> | ||
| + | cd ~/dev/scrcpy | ||
| + | git pull origin master | ||
| + | rm -rf x | ||
| + | export ANDROID_HOME=~/Android/Sdk | ||
| + | meson x --buildtype release --strip -Db_lto=true | ||
| + | cd x | ||
| + | ninja | ||
| + | sudo ninja install | ||
| + | </syntaxhighlight> | ||
[[File:Captura de ecrã de 2018-11-18 16-50-59.png]] | [[File:Captura de ecrã de 2018-11-18 16-50-59.png]] | ||
| Line 49: | Line 62: | ||
Começar com a ligação por USB, para configurar o <syntaxhighlight lang="bash" inline>adb</syntaxhighlight>. | Começar com a ligação por USB, para configurar o <syntaxhighlight lang="bash" inline>adb</syntaxhighlight>. | ||
| + | |||
| + | Ligar USB. (Tem que se permitir "Depuração por USB", nas "Opções do programador") | ||
| + | |||
| + | <syntaxhighlight lang="bash"> | ||
| + | jgr@zoe:~$ adb devices | ||
| + | List of devices attached | ||
| + | ce071717210b872104 device | ||
| + | |||
| + | adb disconnect | ||
| + | |||
| + | # then choose one of these depending on how you are connecting to your device | ||
| + | # adb usb // for usb | ||
| + | # adb tcpip 5555 // for adb over wifi | ||
| + | </syntaxhighlight> | ||
Descobrir o IP do telefone | Descobrir o IP do telefone | ||
| Line 60: | Line 87: | ||
adb tcpip 5555 | adb tcpip 5555 | ||
adb connect 192.168.1.66:5555 | adb connect 192.168.1.66:5555 | ||
| + | |||
| + | # desligar o cabo USB (para não ter dois devices, um por USB e outro por rede) | ||
| + | |||
scrcpy | scrcpy | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 23:51, 26 March 2020
Aplicações
Screen capture
RecordMyDesktop - Só a área da janela da aplicação (QGIS, Firefox, etc). Nas opções retirar as decorações (da janela).
Por o fundo do desktop amarelo
Preparar a janela
Usar a resolução 1280x720
Usar a resolução 1366x768 (Standardized HDTV 720p/1080i displays or “HD ready”, used in most cheaper notebooks)
sudo apt install wmctrl
jgr@zoe:~/dev/scrcpy/x$ wmctrl -lG
0x02200002 -1 7054 54 313 763 zoe conky (zoe)
0x05a00010 0 1930 64 1808 1052 zoe command line - How do I find the window dimensions and position accurately including decorations? - Unix & Linux Stack Exchange - Mozilla Firefox
0x06c00006 0 10 91 960 1025 zoe jgr@zoe: ~/dev/scrcpy/x
0x07a00003 0 87 171 567 692 zoe Controlo de Volume
0x06009d29 0 3964 96 1299 939 zoe Formulários
0x06e00010 0 440 208 1280 720 N/A *exercicio - QGIS 6a2c31d897
0x0605e92f 0 -72 -10 1583 1097 zoe Pasta pessoal
0x07800017 0 0 83 1920 1025 N/A Untitled* / HD 1080p 25 fps — Kdenlive
0x06c0672a 0 34 566 654 434 zoe jgr@zoe: ~
wmctrl -r "Untitled Project - QGIS 6a2c31d897" -e 0,633,265,1280,720
Anotações no ecrã
http://manpages.ubuntu.com/manpages/cosmic/man1/gromit-mpx.1.html
sudo apt install gromit-mpx
Começa: F9 Shift F9 draw/Shift draw
Telemóvel como WebCam
Usar o scrcpy para controlar a câmara.
Instalar a partir das sources ou com snap
cd ~/dev/scrcpy
git pull origin master
rm -rf x
export ANDROID_HOME=~/Android/Sdk
meson x --buildtype release --strip -Db_lto=true
cd x
ninja
sudo ninja install
Ligar por Wifi (na mesma rede)
Começar com a ligação por USB, para configurar o adb.
Ligar USB. (Tem que se permitir "Depuração por USB", nas "Opções do programador")
jgr@zoe:~$ adb devices
List of devices attached
ce071717210b872104 device
adb disconnect
# then choose one of these depending on how you are connecting to your device
# adb usb // for usb
# adb tcpip 5555 // for adb over wifi
Descobrir o IP do telefone
jgr@zoe:~$ arp -a
unknown80b234059058.lan (192.168.1.65) em 80:b2:34:05:90:58 [ether] em wlp2s0
vodafonegw (192.168.1.1) em 50:1d:93:b8:f6:21 [ether] em wlp2s0
Sternschanze.lan (192.168.1.66) em 24:18:1d:0e:c3:66 [ether] em wlp2s0
adb tcpip 5555
adb connect 192.168.1.66:5555
# desligar o cabo USB (para não ter dois devices, um por USB e outro por rede)
scrcpy
Kdenlive
Audacity
Hardware
Microfone - KIMU PRO: ligar ao telemóvel
Webcam: usar a câmara do telemóvel
Computador
