[FFmpeg-trac] #7362(avcodec:new): Newline in subtitles: sub.ass - CRLF and sub.srt - LF
FFmpeg
trac at avcodec.org
Mon Aug 20 21:05:30 EEST 2018
#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 KnightDanila):
Replying to [comment:1 cehoyos]:
> Replying to [ticket:7362 KnightDanila]:
> > Picture 1 - sub.ass has CRLF newline style
> > Picture 2 - sub.srt has LF newline style
>
> Why do you believe that one of them is wrong?
Hm... i do not think it is wrong, but:
1) MKVToolNix - extract .srt subtitles with CRLF (at least in windows
release)
2) Windows OS use CRLF newline style
[https://en.wikipedia.org/wiki/Newline#Representation] (Atari TOS,
Microsoft Windows, DOS (MS-DOS, PC DOS, etc.), DEC TOPS-10, RT-11, CP/M,
MP/M, OS/2, Symbian OS, Palm OS, Amstrad CPC, and most other early non-
Unix and non-IBM operating systems)
3) Aegisub - create.srt subtitles with CRLF (at least in windows release)
> > Can you add option -eol to choose the newline style
>
> Wouldn’t such an option allow to write invalid files?
Maybe, but it can use only two options -eol CRLF - for Win or -eol LF -
for Unix :)
It is difficult question :)
>
> Which programs fail for a subtitle file produced by FFmpeg?
Hm... notepad.exe :D - it read it, but without new lines.
[https://trac.ffmpeg.org/attachment/ticket/7362/FFMPEG_Bug_sub_2.png]
Maybe, same DOS and Symbian DVD players falls :D
Also, .srt have CRLF - but in strange places (Why does it not have CRLF in
all .srt file?):
I marked it green:
.srt [https://trac.ffmpeg.org/attachment/ticket/7362/FFMPEG_Bug_sub_4.png]
.ass [https://trac.ffmpeg.org/attachment/ticket/7362/FFMPEG_Bug_sub_3.png]
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7362#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list