30.08.2021, 20:01
(30.08.2021, 17:35)Selur Wrote: Hybrid does extract the audio and video separately and not in one good.
Which isn't a problem if the source hasn't any defects, but can cause problem on damaged content.
(No Hybrid can't simply add this dehaviour, since it would require to rewrite tons of code.)
I understand.
(30.08.2021, 17:35)Selur Wrote: try with "-fflags +genpts -r 25" before the ' -i ':
this should tell ffmpeg to recalculate the input time stamps.ffmpeg -c:v h264_cuvid -deint 2 -fflags +genpts -r 25 -i "d:\sample.mp4" -c:v libx264 -profile:v high -preset veryfast -crf 18 -x264opts "keyint=500" -c:a copy "d:\sample.mkv"
I think this works fine. I'll update once I have the full file, just to be sure no desync appears.
As for the "-r" option, that only seems to not be ignored if I'm outputting to an mkv file.
EDIT: Actually, the "-r 25" should not be applied to cuvid, since it will output a 25 FPS bobbed video, which is not ok. "-r 50" is the solution there, but I think it's better if I take it step by step: first remux with "-r 25", then deinterlace with "-r 50". I will try doing it from one go, only using "-r 50", as that will be quicker; and I'll let you know if that works as well.