[FFmpeg-trac] #1482(undetermined:new): FFMPEG fails to create a SRT file when extracting Subtitles

FFmpeg trac at avcodec.org
Sun Aug 26 17:21:21 CEST 2012


#1482: FFMPEG fails to create a SRT file when extracting Subtitles
-------------------------------------+-------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  cc           |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by cehoyos):

 MPlayer shows still no subtitles if I change AV_CODEC_ID_DVB_TELETEXT to
 AV_CODEC_ID_EIA_608 in ffmpeg/libavformat/wtvdec.c.
 {{{
 diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
 index 2999382..f879d21 100644
 --- a/libavformat/wtvdec.c
 +++ b/libavformat/wtvdec.c
 @@ -695,7 +695,7 @@ static AVStream * parse_media_type(AVFormatContext *s,
 AVStream *st, int sid,
          if (ff_guidcmp(formattype, ff_format_none))
              av_log(s, AV_LOG_WARNING, "unknown
 formattype:"FF_PRI_GUID"\n", FF_ARG_GUID(formattype));
          avio_skip(pb, size);
 -        st->codec->codec_id   = AV_CODEC_ID_DVB_TELETEXT;
 +        st->codec->codec_id   = AV_CODEC_ID_EIA_608;
          return st;
      } else if (!ff_guidcmp(mediatype, mediatype_mpeg2_sections) &&
                 !ff_guidcmp(subtype, mediasubtype_mpeg2_sections)) {

 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1482#comment:15>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list