[FFmpeg-trac] #7362(ffmpeg:new): Newline in subtitles: sub.ass - CRLF and sub.srt - LF
FFmpeg
trac at avcodec.org
Fri Aug 17 13:49:23 EEST 2018
#7362: Newline in subtitles: sub.ass - CRLF and sub.srt - LF
-------------------------------------+-------------------------------------
Reporter: | Type:
KnightDanila | enhancement
Status: new | Priority: wish
Component: ffmpeg | Version:
Keywords: Newline, | unspecified
character encoding, srt, | Blocked By:
subtitles, CR+LF, LF | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Picture 1 - sub.ass has CRLF newline style
Picture 2 - sub.srt has LF newline style
Can you add option -eol to choose the newline style
% ffmpeg.exe -i TEST_Input.mkv -map 0:m:language:eng -map -0:a -map -0:v
-eol "\r\n" "TEST_output.srt"
For example MKVToolNix - extract .srt subtitles with CRLF (at least in
windows release)
How to reproduce:
{{{
% ffmpeg.exe -i TEST_Input.mkv -map 0:m:language:eng -map -0:a -map -0:v
"TEST_output.srt"
% ffmpeg.exe -i TEST_Input.mkv -map 0:m:language:eng -map -0:a -map -0:v
"TEST_output.ass"
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.1 (GCC) 20180722
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7362>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list