5/30/2023 0 Comments Ffmpeg cut video from time to timeHowever, while -ss (seek start) works fine with input seeking, "-to/-t" (seek ending) is somehow vastly inaccurate in input seeking for FFMPEG. The output seeking is very slow (it needs to decode the whole video until the timestamp of your -ss) so you want to avoid it if unnecessary. ![]() ![]() How to keyframe-cut video properly with FFMPEGįFMPEG supports "input seeking" and "output seeking". Most of them are commercial though, I haven't find one that is free and good.Īlso, seeking in FFMPEG in practice, is actually more complicated than the guide you linked.īelow is a note I keep for own reference for keyframe-copy. There are however, plenty of great software that can but at any frame and only re-encode the frames that are outside the whole GOP. Yeah, it is literally not possible to not seek to keyframe if you are stream copying. If you want to do this with 2160p24,p25 or p30 videos at several minute lengths, be prepared to have 150-160GB of scratch disk per y4m and per PNG-dump-directory. ![]() this is your static image reference baseline for subjective eyeballs.Ģ) take your raw uncompressed y4m file and encode it to x265 or whatever codec you're testing, at various different bitrates and encoder settingsģ) take your various encoded x265 files and also write those out to PNG files in separate directoriesģ) pick exactly the same frame number filename from your 'master' PNGs and your encoder-output PNGs, copy them and put them in the same directory so you can quickly flip back and forth between them in a image slideshow application. ![]() One of the interesting things you can do with ffmpeg, if you have a LOT of scratch disk space, and you're trying to compare subjective encoder quality (not VMAF, but human eyeballs) on a certain video file:ġ) take your raw uncompressed y4m file and write it out to a directory of PNG files, one png file per frame.
0 Comments
Leave a Reply. |