[FFmpeg-trac] #8798(avformat:new): SubViewer sbv to srt misses last caption

FFmpeg trac at avcodec.org
Fri Jul 17 13:30:14 EEST 2020


#8798: SubViewer sbv to srt misses last caption
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  alexharrington                     |
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:  git-
                                     |  master
             Keywords:  subviewer    |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8798>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list