[FFmpeg-trac] #7362(avcodec:new): Newline in subtitles: sub.ass - CRLF and sub.srt - LF
FFmpeg
trac at avcodec.org
Sun Feb 10 19:32:00 EET 2019
#7362: Newline in subtitles: sub.ass - CRLF and sub.srt - LF
--------------------------------------+-----------------------------------
Reporter: KnightDanila | Owner:
Type: enhancement | Status: new
Priority: wish | Component: avcodec
Version: git-master | Resolution:
Keywords: ass srt | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+-----------------------------------
Comment (by beroal):
Replying to [comment:4 cehoyos]:
> Replying to [comment:3 beroal]:
>
> > I recently extracted text subtitles from "mkv" on Linux, and the
result has a mix of "\r\n" and "\n" line ends which is clearly incorrect.
>
> How can I reproduce this?
Run
{{{
ffmpeg -i "$INPUT_FILE" -map 0:2 -codec:subtitles subrip "$OUTPUT_FILE"
}}}
with `INPUT_FILE` containing the path to
[https://drive.google.com/file/d/0BwxFVkl63-lEbWhqS284RkpNMXc/view?usp=sharing
2D Forced Subtitles Sample #1 (SRT)] (from
[https://kodi.wiki/view/Samples#Codecs.2C_Framerates_and_Subtitles Kodi
Samples]). Here is the start of `OUTPUT_FILE`:
{{{
0000000 1 \n 0 0 : 0 0 : 0 2 , 2 5 3 -
0000010 - > 0 0 : 0 0 : 0 3 , 4 2 0 \n
0000020 T h e y ' r e h e r e ! \n \n 2
0000030 \n 0 0 : 0 0 : 0 4 , 7 9 7 - -
0000040 > 0 0 : 0 0 : 0 6 , 2 1 4 \n H
0000050 u r r y , M u s e ! \n \n 3 \n 0
0000060 0 : 0 0 : 2 5 , 1 5 1 - - >
0000070 0 0 : 0 0 : 2 8 , 3 2 0 \n W h a
0000080 t t h e h e l l a r e y
0000090 o u d o i n g ? \r \n W h y a
00000a0 r e n ' t y o u o u t o n
00000b0 t h e w a t e r ? \n \n 4 \n 0
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7362#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list