[FFmpeg-trac] #8575(undetermined:new): Converting SBV subtitles to SRT is broken

FFmpeg trac at avcodec.org
Wed Mar 18 01:01:19 EET 2020


#8575: Converting SBV subtitles to SRT is broken
-------------------------------------+-------------------------------------
             Reporter:  ilario       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  SBV,         |               Blocked By:
  subtitles                          |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 The conversion of SBV subtitles (downloaded from Youtube) to SRT seems
 broken to me. According to this page
 https://trac.ffmpeg.org/wiki/HowToConvertYouTubeSBVtoSRT it should be
 supported.

 Tested with:
 ffmpeg version N-96995-g9a2d950f96
 built with gcc 9.3.0 (Arch Linux 9.3.0-1)

 How to reproduce:
 create file a.sbv with content:
 {{{
 0:00:17.880,0:00:22.320
 Mira esos delfines lo bien que viven debajo

 0:00:22.320,0:00:36.199
 Bajo el mar Bajo el mar
 }}}

 convert it to SRT with
 {{{
 $ ffmpeg -i a.sbv a.srt
 }}}

 the result is wrong in various ways: the first and second phrases are
 switched, the times are unrelated to the original ones and the second
 phrase ends after 1193 hours.
 {{{
 $ cat a.srt
 1
 00:00:25,200 --> 00:00:37,990
 Bajo el mar Bajo el mar

 2
 00:00:25,800 --> 1193:03:12,496
 Mira esos delfines lo bien que viven debajo
 }}}

 using the -fix_sub_duration option, the result does not improve (times are
 still unrelated to the original ones and there is only one phrase):
 {{{
 $ ffmpeg -fix_sub_duration -i a.sbv a2.srt
 $ cat a2.srt
 1
 00:00:25,200 --> 00:00:25,800
 Bajo el mar Bajo el mar
 }}}

 Thanks!

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


More information about the FFmpeg-trac mailing list