Hi all! I really liked the idea of this post for adding multiple IPTV/camera streams as a mosaic.
I am able to output 4 avi videos to a file using:
ffmpeg
-i 1.avi -i 2.avi -i 3.avi -i 4.avi
-filter_complex "
nullsrc=size=640x480 [base];
[0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft];
[1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];
[2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];
[3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];
[base][upperleft] overlay=shortest=1 [tmp1];
[tmp1][upperright] overlay=shortest=1:x=320 [tmp2];
[tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];
[tmp3][lowerright] overlay=shortest=1:x=320:y=240
"
-c:v libx264 output.mkv
When I change 1.avi, 2.avi, 3.avi and 4.avi to the URL of my cameras (example rtsp://192.168.100.10:554) it is not working, even for outputing to a file.
I have two questions:
1- How should I change this script to be piped into TVHEADNED?
2- Is there anythin else in the script that I need to change, in order for it to work with my rtsp streams?
Regards,
Cleiton