ffmpeg: webcam, vídeos ou câmera RTSP em mosaico
Publicado por Fabio em 06/10/2022
[ Hits: 4.474 ]
############################################################### 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 - ###############################################################
Listando pacotes instalados com dpkg
Comandos de compactação / descompactação
Exibindo determinada linha de um arquivo no terminal
dd - status através dos comandos kill e pgrep
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
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
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
Criando uma VPC na AWS via CLI
Agora temos uma assistente virtual no fórum!!! (242)
De volta para o futuro - ou melhor, para o presente (0)