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)

lesson1.sbv (3.0 KB ) - added by alexharrington 4 years ago.
Complete source sbv that demonstrates this issue

Download all attachments as: .zip

Change History (3)

by alexharrington, 4 years ago

Attachment: lesson1.sbv added

Complete source sbv that demonstrates this issue

comment:1 by Cigaes, 4 years ago

Resolution: invalid
Status: newclosed

Don't use random extra options that are not meant for these cases, like -fix_sub_duration.

comment:2 by alexharrington, 4 years ago

Resolution: invalid
Status: closedreopened

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

Note: See TracTickets for help on using tickets.