[FFmpeg-trac] #862(FFmpeg:closed): Corrupted subtitles exported from matroska file.
FFmpeg
trac at avcodec.org
Wed Jan 2 08:15:01 CET 2013
#862: Corrupted subtitles exported from matroska file.
----------------------------------------+----------------------------------
Reporter: vlada.matena | Owner:
Type: defect | Status: closed
Priority: normal | Component: FFmpeg
Version: git-master | Resolution: fixed
Keywords: text subtitles | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
----------------------------------------+----------------------------------
Changes (by ubitux):
* status: open => closed
* resolution: => fixed
Comment:
This bug has likely been fixed with all the work we did on subtitles.
Re-encode:
{{{
% ./ffmpeg -i ~/source.mkv -y out.srt
ffmpeg version N-48391-g1e28fa2 Copyright (c) 2000-2013 the FFmpeg
developers
built on Jan 2 2013 08:03:04 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-libx264 --enable-libmp3lame
--enable-x11grab --enable-libvorbis
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 85.100 / 54. 85.100
libavformat 54. 59.100 / 54. 59.100
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.102 / 3. 30.102
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from '/home/ubitux/source.mkv':
Metadata:
ENCODER : Lavf53.29.100
Duration: 00:00:05.02, start: 0.000000, bitrate: 434 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 624x352 [SAR 1:1 DAR 39:22],
23.98 fps, 23.98 tbr, 1k tbn, 47.96 tbc (default)
Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)
Stream #0:2(cze): Subtitle: subrip (default)
Output #0, srt, to 'out.srt':
Metadata:
encoder : Lavf54.59.100
Stream #0:0(cze): Subtitle: subrip (default)
Stream mapping:
Stream #0:2 -> #0:0 (subrip -> subrip)
Press [q] to stop, [?] for help
size= 0kB time=00:00:03.48 bitrate= 0.4kbits/s
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead
58.620690%
}}}
{{{
% cat out.srt
1
00:00:00,601 --> 00:00:00,601
Takže když foton narazí
na desku se dvěma štěrbinami
2
00:00:03,485 --> 00:00:03,485
a obě ty štěrbiny pozoruješ,
neprojde oběma naráz.
}}}
Stream copy:
{{{
[~/src/ffmpeg]☭ ./ffmpeg -i ~/source.mkv -c copy -y out.srt
ffmpeg version N-48391-g1e28fa2 Copyright (c) 2000-2013 the FFmpeg
developers
built on Jan 2 2013 08:03:04 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-libx264 --enable-libmp3lame
--enable-x11grab --enable-libvorbis
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 85.100 / 54. 85.100
libavformat 54. 59.100 / 54. 59.100
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.102 / 3. 30.102
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from '/home/ubitux/source.mkv':
Metadata:
ENCODER : Lavf53.29.100
Duration: 00:00:05.02, start: 0.000000, bitrate: 434 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 624x352 [SAR 1:1 DAR 39:22],
23.98 fps, 23.98 tbr, 1k tbn, 47.96 tbc (default)
Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)
Stream #0:2(cze): Subtitle: subrip (default)
Output #0, srt, to 'out.srt':
Metadata:
encoder : Lavf54.59.100
Stream #0:0(cze): Subtitle: subrip (default)
Stream mapping:
Stream #0:2 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 0kB time=00:00:03.48 bitrate= 0.4kbits/s
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead
58.620690%
}}}
{{{
% cat out.srt
1
00:00:00,601 --> 00:00:00,601
Takže když foton narazí
na desku se dvěma štěrbinami
2
00:00:03,485 --> 00:00:03,485
a obě ty štěrbiny pozoruješ,
neprojde oběma naráz.
}}}
Feel free to re-open if something is still wrong.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/862#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list