This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[Not Hybrid related] MPEG-TS files with corrupt timestamps
#6
(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 ':
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"
this should tell ffmpeg to recalculate the input time stamps.

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.
Reply


Messages In This Thread
RE: [Not Hybrid related] MPEG-TS files with corrupt timestamps - by antoniu200 - 30.08.2021, 20:01

Forum Jump:


Users browsing this thread: 1 Guest(s)