[FFmpeg-trac] #11253(avformat:new): Generate .lrc from .sbv or .srt have end time error on some lines

FFmpeg trac at avcodec.org
Sun Oct 20 13:58:35 EEST 2024


#11253: Generate .lrc from .sbv or .srt have end time error on some lines
----------------------------------+--------------------------------------
             Reporter:  gusong    |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  git-master
             Keywords:  lrc       |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the bug:
 FFmpeg generate .lrc file will show line time too long than defined.
 How to reproduce:
 {{{
 input.sbv
 ==FILE BEGIN==
 0:00:00.000,0:00:03.000
 Title

 0:00:10.000,0:00:15.000
 Line 1
 ==FILE END==

 % ffmpeg -i input.sbv output.lrc

 % cat output.lrc
 [re:Lavf61.7.100]
 [ve:61.7.100]

 [00:00.00]Title
 [00:10.00]Line 1

 'Title' should show only 3 seconds, not 10 seconds,
 Expected output.lrc:
 ==FILE BEGIN==
 [re:Lavf61.9.100]
 [ve:61.9.100]

 [00:00.00]Title
 [00:03.00]
 [00:10.00]Line 1
 ==FILE END==

 ffmpeg version 7.1
 built on x86_64 MSYS2
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11253>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list