by g_airborne · 6y ago · 0 comments
The reason it often fails is that ffmpeg can do so many things that any time you are using some curious combination of flag A, B and C is likely that no one else has ever done that and there are some side effects ;)
Anyway, some of it can be avoided by learning how containers en codecs work, what I-frames are and all the other nitty gritty details of the world of video where there is so much to learn!
Here’s a great intro to get started for anyone who got curious: https://github.com/leandromoreira/digital_video_introduction
ffmpeg -ss 00:01:00 -i in.mp4 -t 00:00:15 -c copy out.mp4
I'm really no expert so I just keep a few of those commands around... You don't need a deep understanding of video streams, etc. just to use ffmpeg.It oftentimes requires so much understanding of how things actually work, and has too little to offer in the way of abstracting those things away.