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

FFmpeg trac at avcodec.org
Mon Aug 27 16:55:45 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 pross):

 @cehoyos
 samples/ffmpeg-bugs/trac/ticket1065/Test1.wtv contains
 mediatype_mstvcaption packets


 Currently FFmpeg interprets both 'mediatype_mstvcaption' and
 'mediasubtype_dtvccdata' as AVCODEC_ID_DVB_TELETEXT (see extract from
 wtvdec.c below). That now looks to be wrong.

 mediasubtype_dtvccdata is a variant of CEA-708.

 mediatype_mstvcaption is something different again. Another proprietary
 format, perhaps.

 ---wtvdec.c
     } else if (!ff_guidcmp(mediatype, mediatype_mstvcaption) &&
 !ff_guidcmp(subtype, mediasubtype_dtvccdata)) {
         st = new_stream(s, st, sid, AVMEDIA_TYPE_SUBTITLE);
         if (!st)
             return NULL;
         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;
         return st;
 ---wtvdec.c

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


More information about the FFmpeg-trac mailing list