ffmpeg: webcam, vídeos ou câmera RTSP em mosaico
Publicado por Fabio em 06/10/2022
[ Hits: 4.518 ]
############################################################### ffmpeg -i 01.mkv -i 02.mkv -i 03.mkv -i 04.mkv -filter_complex " [0:v] setpts=PTS-STARTPTS, scale=qvga [a0]; [1:v] setpts=PTS-STARTPTS, scale=qvga [a1]; [2:v] setpts=PTS-STARTPTS, scale=qvga [a2]; [3:v] setpts=PTS-STARTPTS, scale=qvga [a3]; [a0][a1][a2][a3]xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0[out] " -map "[out]" -c:v libx264 -t '30' -f matroska output_col_2x2.mkv ###############################################################
############################################################### ffmpeg -i /dev/video0 -i /dev/video1 -filter_complex " [0:v] setpts=PTS-STARTPTS, scale=qvga [a0]; [1:v] setpts=PTS-STARTPTS, scale=qvga [a1]; [a0][a1]xstack=inputs=2:layout=0_0|0_h0|w0_0|w0_h0[out] " -map "[out]" -c:v libx264 -preset superfast -crf 18 -f matroska - | ffplay - ###############################################################
############################################################### ffmpeg -rtsp_transport tcp -i "rtsp://192.168.1.116:554/user=admin&password=&channel=1&stream=0.sdp" -i "rtsp://192.168.1.116:554/user=admin&password=&channel=2&stream=0.sdp" -i "rtsp://192.168.1.116:554/user=admin&password=&channel=3&stream=0.sdp" -i "rtsp://192.168.1.116:554/user=admin&password=&channel=4&stream=0.sdp" -filter_complex " nullsrc=size=1920x1080 [base]; [0:v] setpts=PTS-STARTPTS, scale=960x540 [upperleft]; [1:v] setpts=PTS-STARTPTS, scale=960x540 [upperright]; [2:v] setpts=PTS-STARTPTS, scale=960x540 [lowerleft]; [3:v] setpts=PTS-STARTPTS, scale=960x540 [lowerright]; [base][upperleft] overlay=shortest=1 [tmp1]; [tmp1][upperright] overlay=shortest=1:x=960 [tmp2]; [tmp2][lowerleft] overlay=shortest=1:y=540 [tmp3]; [tmp3][lowerright] overlay=shortest=1:x=960:y=540 " -c:v libx264 -preset superfast -crf 18 -f matroska - | ffplay - ###############################################################
Acessando o início e fim de um histórico extenso no terminal
Atualizando Fedora 31 para 32 usando linha de comando
Contagem de Pastas e Arquivos Semelhante ao Windows
Armazenando a senha de sua carteira Bitcoin de forma segura no Linux
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Mouse Logitech MX Ergo Advanced Wireless Trackball no Linux
Compartilhamento de Rede com samba em modo Público/Anônimo de forma simples, rápido e fácil
Cups: Mapear/listar todas as impressoras de outro Servidor CUPS de forma rápida e fácil
Criação e gerenciamento de logs (2)
A coisa universal é muito mais ampla do que cê imagina (1)
Dúvida - RAID 1 - Cópia de disco - Grub - Debian (1)