Is the -stream_loop option actually repeating the input video clip frames to make the loop?
Is there a way to tell ffmpeg to instance the input video frames when creating the loop?
Is this actually a limitation with video formats (e.g. mp4, mkv, etc.)?
For MP4s and MKVs, yes.
If ffmpeg is not sufficient for this, is there some way to create a ...
You should put -i in.mkv for the first place.
ffmpeg -i in.mkv -ss 1:00 -t 5 -ss 2:00 -t 5
I think your code have multiple "-i in.mkv" parts.
Remove all but one "-i
Then I think the easiest way is :
ffmpeg -i in.mkv -ss 1:00 -t 5 -c copy clip1.mkv
ffmpeg -i in.mkv -ss 2:00 -t 5 -c copy clip2.mkv
echo file clip1.mkv >> ...
Frame rate is Frame per second (FPS)
1 sec has 1000ms
Each input frame (image) is 78.7ms such that is 12.7 FPS
The video output is 24 FPS not 23.97 FPS
Then the repetition of each frame will be calculated by ffmpeg if using command
ffmpeg -r 12.7 -i image_%d.jpg -vf fps=24 out_video.mp4
which is 24/12.7 = 1.8897 which is quite irregular
Hope I could help you ...
Ok, here's an answer that has worked well for me (as well as others: see link to helpful post below).
As far as my knowledge goes, there are two main things that need to match up to make the videos reasonably playable after concatenation:
The video timebase
The audio sampling frequency
Before you can match those though, you need to know where your videos ...
For the blur effect command, you needed to swap a few widths with heights then rescale it so the original video fits in properly above the blurred video:
ffmpeg -i input.mp4 -vf 'split[original][copy];[copy]scale=-1:ih*(16/9)*(16/9),crop=w=ih*9/16,gblur=sigma=20[blurred];[blurred][original]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2' output.mp4
If you ...