Opened 4 years ago
Last modified 4 years ago
#8798 reopened defect
SubViewer sbv to srt misses last caption
Reported by: | alexharrington | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | subviewer |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
ffmpeg 4.2, with patch applied from http://fftrac-bg.ffmpeg.org/ticket/8575
When converting from sbv to srt, the last caption in the source sbv file is not present in the output srt file.
For example, the input:
0:01:48.079,0:01:54.880 and click to Log Out safely from your 0:01:51.880,0:01:54.880 session.
gives output
1 00:01:48,079 --> 00:01:51,880 and click to Log Out safely from your
How to reproduce:
% ffmpeg -fix_sub_duration -i caption.sbv caption.srt ffmpeg 4.2 with patch as described above built on alpine-3.11
Attachments (1)
Change History (3)
by , 4 years ago
Attachment: | lesson1.sbv added |
---|
comment:1 by , 4 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Don't use random extra options that are not meant for these cases, like -fix_sub_duration
.
comment:2 by , 4 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Thanks for your reply.
I'm using the option as documented here:
https://trac.ffmpeg.org/wiki/HowToConvertYouTubeSBVtoSRT
Youtube interlaces the timestamps, and for my use I need the output timestamps not to be overlapping - hence my use of the option. It's not "random".
Complete source sbv that demonstrates this issue