


*.jpg sucks a bit when dealing with numeric values, you may generate a gif with unsorted pics. Or convert -resize 768x576 -delay 20 -loop 0 *.jpg myimage.gif In my case, I have 4608x3456 images and the generated gif was more than 300M for 32 images convert -resize 20% -delay 20 -loop 0 *.jpg myimage.gif Note: I didn't have try it, since I already worked through Openshot.To complete answer: To avoid generating a very large file, you can use -resize option: I know it might sound dumb, but it would probably do the trick. This way I would be sure of the audio & video encoding and wouldn't have any problem merging and it wouldn't need any reencoding. Since all I'm doing is screencasting, I might as well screencast my splitter image. Method 2: insert image framesĭirectly run the concat (demuxer) 90 times (30fps -> 3 seconds) on the image ffmpeg -f concat -i input.txt -codec copy output.mp4 Also I'm not entirely sure the splitter.mp4 respects the exact same encoding as the 2 videos, and I don't know how to verify that. The content of splitter.png is visible in the splitter.mp4, but not in the output.mp4. Where the input.txt looks like: file 'E:\video1.mp4' Turn the image into a 3 seconds mp4 film, then concat (demuxer) it with the others: ffmpeg -loop 1 -f image2 -i splitter.png -r 30 -t 3 splitter.mp4įfmpeg -f concat -i input.txt -codec copy output.mp4 Here is what I tried so far: Method 1: image to video I have tried a few things, but I always end up with the same problem: the video is 23:20 (video1 + 3 seconds + video2), but the 3 seconds gap is just the last video1 frame frozen instead of my image/text.Īny Idea what I did wrong or how I should achieve this? splitter.png (same resolution as video1.mp4).having a fade in / fade out at the intersection of each partįor now, I made the text as an image (but I am open to other suggestions).avoid reencoding the video in the process.Optional ideas that I would be interested in: I have 2 videos (same resolution, same encoding) files that I want to concat and I want to insert some text for 3 seconds between them, as a splitter.
