ffmpeg: webcam, vídeos ou câmera RTSP em mosaico
Publicado por Fabio em 06/10/2022
[ Hits: 4.450 ]
############################################################### 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 - ###############################################################
Uma maneira fácil de fazer a cópia diretórios
Monitorando tráfego da interface de rede em três comandos
Detecção de Sistema Operacional com NMAP
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
Tem como instalar o gerenciador AMD Adrenalin no Ubuntu 24.04? (7)