Literally just used it today to re-sync the audio and video in some movies I recorded where I needed to add a 210ms delay to the audio. There's no better tool that I know of for doing this, even on macOS: ffmpeg \ -i "$input" -itsoffset "$offset" \ -i "$input" \ -map 0:0 \ -map 1:1 \ -acodec copy \ -vcodec copy \ "$output"
FFmpeg is 20 years old today
41–50 of 99 posts
Re: FFmpeg is 20 years old today
#42Literally just used it today to re-sync the audio and video in some movies I recorded where I needed to add a 210ms delay to the audio. There's no better tool that I know of for doing this, even on macOS: ffmpeg \ -i "$input" -itsoffset "$offset" \ -i "$input" \ -map 0:0 \ -map 1:1 \ -acodec copy \ -vcodec copy \ "$output"
I'm curious as to how you figured out the audio was 210ms ahead of the video.
Re: FFmpeg is 20 years old today
#43Earlier quoted context omitted.
Yeah I just make bunch of bash files (which also contains comment) for specific scenarios.
What's the difference with selecting different config files then?
It could probably be nicer with a way to specify a file to read options from, but it's not as if there aren't plenty of ways to represent an argv as a text file already, so it doesn't seem like a high priority.
Re: FFmpeg is 20 years old today
#44The creator of ffmpeg Fabrice Bellard(1) is truly a genius and has created so many amazing software that have been an amazing benefit to the world. (1) https://bellard.org/
Or maybe it requires genius to be this productive?
I'm just amazed at what some people are able to build. Especially open source. Does he make money from ffmpeg? Or just do it as a side gig?
Reminds me of the photopea guy. He has basically built a browser based clone of photoshop. Something that took Adobe thousands of engineers and decades to build up over time.
Re: FFmpeg is 20 years old today
#45Some might have commented that FFmpeg is a very complex software but in its defence codecs are complex - especially in the encoding side where you basically have the whole control on the parameters. If you somehow work at a media company (on the engineering side, not the creative side which usually does not know (and care) what is the difference between P and B frames) the switches are important especially in one-way…
Re: FFmpeg is 20 years old today
#46Ffmpeg is an unusual piece of software. It’s CLI arguments (to me) are baffling. But it’s been around so long that there’s so many answered questions online for virtually anything you want it to do. Don’t bother reading the man page, go to google first.
There are also tools with a GUI that make use of ffmpeg (calling them a GUI-wrapper is probably not fair). And ofc, they likely can't do everything ffmpeg CLI can. One I know is https://handbrake.fr Are there more?
Re: FFmpeg is 20 years old today
#47Ffmpeg is an unusual piece of software. It’s CLI arguments (to me) are baffling. But it’s been around so long that there’s so many answered questions online for virtually anything you want it to do. Don’t bother reading the man page, go to google first.
There are also tools with a GUI that make use of ffmpeg (calling them a GUI-wrapper is probably not fair). And ofc, they likely can't do everything ffmpeg CLI can. One I know is https://handbrake.fr Are there more?
Re: FFmpeg is 20 years old today
#48Literally just used it today to re-sync the audio and video in some movies I recorded where I needed to add a 210ms delay to the audio. There's no better tool that I know of for doing this, even on macOS: ffmpeg \ -i "$input" -itsoffset "$offset" \ -i "$input" \ -map 0:0 \ -map 1:1 \ -acodec copy \ -vcodec copy \ "$output"
I'm curious as to how you figured out the audio was 210ms ahead of the video.
The video had a slight delay which I didn’t quite notice till after I’d recorded it.
I basically wrote a quick script to generate variations of the recorded movies with delays from 50ms to 500ms in 50ms increments and then just watched each of them to see which appeared most correct for his hands playing the keys and the sound of the notes. It was slightly over 200ms and less than 250ms. 210ms seemed the best.
I have now learned the importance of a clapperboard.
(Originally I was going to record the audio in GarageBand and the video on my phone and join them later, but I was learning as I went and I wanted to see if I could record the two streams together.)
Re: FFmpeg is 20 years old today
#49Re: FFmpeg is 20 years old today
#50Literally just used it today to re-sync the audio and video in some movies I recorded where I needed to add a 210ms delay to the audio. There's no better tool that I know of for doing this, even on macOS: ffmpeg \ -i "$input" -itsoffset "$offset" \ -i "$input" \ -map 0:0 \ -map 1:1 \ -acodec copy \ -vcodec copy \ "$output"
find . -name "*.mkv" -exec ffmpeg -i "{}" -i "{}.srt" -map 0 -map 1 -c copy "{}_merged.mkv" \;