FFMPEG 9600x1080 5 video stitching outputs black video Hello everyone. I’m trying to merge 5 1920x1080 videos into a one big 9600x1080 clip. I’m using FFMPEG for it with the following script:
ffmpeg -i 1.avi -i 2.avi -i 3.avi -i 4.avi -i 5.avi -filter_complex "[1:v][0:v]scale2ref=oh*mdar:ih[1v][0v];[2:v][0v]scale2ref=oh*mdar:ih[2v][0v];[3:v][0v]scale2ref=oh*mdar:ih[3v][0v];[4:v][0v]scale2ref=oh*mdar:ih[4v][0v];[0v][1v][2v][3v][4v]hstack=5,scale='2*trunc(iw/2)':'2*trunc(ih/2)'" 5vid_final.mp4
pause
I’ve also tried a simpler method:
ffmpeg -i 1.avi -i 2.avi -i 3.avi -i 4.avi -i 5.avi -filter_complex hstack=inputs=5 s5.mp4
pause
they both seem to work, but the problem is that when I play these files I get a black screen. I’ve tried stitching 4 videos (using the same commands as above) and I get propper playback, but when I add additional input, the output file is black during playback. Video details claim that the resolution is as it should be (9600x1080) which leads me to believe that it may not be FFMPEG’s fault? Or maybe it is?
I don’t even know how to check what’s causing the problem. Maybe someone has a verified 9600x1080 sample video or know where I could get one to try and play it locally? I would be grateful for any assistance you could spare.
Best regards RafałT
p.s. I could try and post my vid and maybe someone could check if it's viewable? If someone would like to help, I could post it somewhere online.