[FFmpeg-trac] #862(avformat:new): Corrupted subtitles exported from matroska file.
FFmpeg
trac at avcodec.org
Sun Jan 1 14:45:24 CET 2012
#862: Corrupted subtitles exported from matroska file.
-------------------------------------+-------------------------------------
Reporter: | Type: defect
vlada.matena | Priority: normal
Status: new | Version: git-
Component: avformat | master
Keywords: srt | Blocked By:
matroska mkv | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
I am trying to extract subtitles from matroska file to the SubRip file. I
think the following command should extract subtitles from source.mkv, but
target.srt is created empty.
{{{
ffmpeg -scodec srt -i source.mkv target.srt
}}}
I also tried using -scodec copy, but it only stores subtitle text in
target.srt and the timecodes are missing. It looks like matroska decoder
is not adding timecodes stored in matroska blocks back to subtitles.
I implemented a function matroska_fix_srt_packet similar to
matroska_fix_ass_packet and added it to libavformat/matroskadec.c . The
changes are in attached patch.
With the patch the command produces the desired output.
I am sorry if I just didn't understand ffmpeg params and the changes are
actually not needed.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/862>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list