Re:FFMPEG from Zero to Hero
by chenxiaolong on Saturday March 06, 2021 @10:14PM
(#26372797)
All of the proprietary tools I know of for doing frame-perfect cuts (VideoRedo, TMPGEnc, SolveigMM) work by determining (guessing?) the original encoding parameters and then only reencoding the first and last GOP. The rest of the video is just remuxed.
Re:FFMPEG from Zero to Hero
by alternatetwo on Saturday March 06, 2021 @10:52PM
(#26372984)
x264 encoded streams have the original encoding parameters included by default.
Re:FFMPEG from Zero to Hero
by fireattack on Saturday March 06, 2021 @10:59PM
(#26373018)
Encoding settings metatag can be striped.
Regardless, I don't think these software are "matching" anything. TMPGEnc for example has settings to choose what quality you want for these re-encoded frames.
The parameters being matched would be those that maintain decoder config. Usually, bitrate/quantizer values don't come into that.
Re:FFMPEG from Zero to Hero
by fireattack on Sunday March 07, 2021 @05:30AM
(#26374748)
Oh yeah, the level would (should) definitely be kept.
What I don't understand is, how can professional video editing tools trim accurately (and very quickly)? What are they doing differently to ffmpeg?
If do things the "fast way" with ffmpeg, the exported video has random black frames which I think is related to the keyframe issue you mention. If I do things the "slow way" (e.g. accurately) with ffmpeg, it takes a huge amount of time (at least with large 4k videos). But I don't understand how I can drop that same 4k video into Screenflow, trim 1 second out of it and export it in a matter of seconds.