-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird subtitle offset when the start time of input video is not 0 #205
Comments
Thank you for pointing out and debugging the issue! As you have mentioned, I also think the line below is wrong.
In that case, prm->videoTimebase is 1001/96000, but actually we need to use 1/1000 for that calculation as
This is causing the offset which should be "42ms" to be the wrong value "438ms". I'll think for a way to fix this issue.
It's difficult to choose which behavior is better when you add subtitles from a separate file, as I had a case in the past that the offset was required. |
Thanks for reply. |
Did you add subtitle directly to the encoder? or use avisynth to burn it on the video? |
I added subtitle to vpp subburn of nvenc. |
Sorry, but I have no experience is this, I use avisynth to burn ass subtitle (since it uses vsfilter). |
Sure, I'll add it in the next release. |
I have updated to NVEnc 4.66, which has fixed the wrong timestamp offset calculation. It also has new parameter for vpp-subburn, you should be able to disable timestamp offset by |
Thanks for your efforts! |
Hello Rigaya.
part of log:
original subtitle:
offset of all subtitles: 438ms
But I can get correct time stamp info with a video whose start time is 0.
vidInputOffsetMs
in
is 0 when start time of video is 0, but when start time is not 0,
vidInputOffsetMs
may be an incorrect value.in NVEnc/NVEncFilterSubburn.cpp#L441
sets the timebase 1/1000.
part of log of subburn:
Maybe there are something wrong in
Making subtitle with Aegisub needs a whole video file (with audio), but it seems like aegisub will treat the start time of video as start time of subtitle, the time stamp info of subtitle is consistent with the time stamp of video stream. Maybe there is no need to minus vidInputOffsetMs in time stamp of subburn when format of subtitle is ass.
The text was updated successfully, but these errors were encountered: