[FFmpeg-trac] #3025(avcodec:closed): Adding support for TeleText in ffmpeg

FFmpeg trac at avcodec.org
Mon Dec 16 11:52:06 CET 2013


#3025: Adding support for TeleText in ffmpeg
-------------------------------------+-------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:  fixed
             Keywords:  teletext     |               Blocked By:
  libzvbi                            |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ramitbhalla):

 What's going on here, am I missing something. With the latest build, it
 seems to indicate there is SRT data but when I try to extract it it fails:


 {{{
 ffmpeg -i "World News Australia_SBS HD_2013_12_05_18_54_59_Teletext.wtv"
 -an -vn -scodec s
 rt test.srt
 ffmpeg version N-59138-g4ecac81 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec 16 2013 05:11:19 with gcc 4.8.0 (GCC)
   configuration: --arch=x86 --target-os=mingw32 --cross-
 prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
 /i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264
 --enable-avisynth --enable-libxvid --enable-lib
 mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
 libvorbis --enable-libtheora --enable-libspeex --enabl
 e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
 --enable-libopus --disable-w32threads --enable-frei0r
  --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-
 libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
 -libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc
 --enable-libschroedinger --enable-libvpx --enable-
 libilbc --enable-iconv --enable-libtwolame --extra-
 cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
 --enable-libzvbi --enable-libcaca
 --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32
 --enab
 le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-
 libass --enable-libutvideo --enable-libbluray -
 -extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-
 cpudetect
   libavutil      52. 58.100 / 52. 58.100
   libavcodec     55. 45.101 / 55. 45.101
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 92.100 /  3. 92.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 [wtv @ 0268cc60] truncated file
 [mpeg2video @ 0268d620] Invalid frame dimensions 0x0.
     Last message repeated 3 times
 Input #0, wtv, from 'World News Australia_SBS
 HD_2013_12_05_18_54_59_Teletext.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : World News Australia
     WM/SubTitleDescription: Up-to-date reports and analysis of the major
 national and international news stories of the
 day in Australia's only world news service. #SBSnews
     genre           : News;Other News
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;;
     service_provider: SBS HD
     service_name    : SBS HD
     WM/MediaNetworkAffiliation: SBS HD
     WM/MediaOriginalChannel: 30
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
     WM/MediaOriginalRunTime: 26984467000
     WM/MediaIsStereo: false
     WM/MediaIsRepeat: false
     WM/MediaIsLive  : false
     WM/MediaIsTape  : false
     WM/MediaIsDelay : false
     WM/MediaIsSubtitled: false
     WM/MediaIsMovie : false
     WM/MediaIsPremiere: false
     WM/MediaIsFinale: false
     WM/MediaIsSAP   : false
     WM/MediaIsSport : false
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2013-12-05 08:55:01
     WM/WMRVSeriesUID: !GenericSeries!World News Australia
     WM/WMRVServiceID: !Generated!f16bbe88261548ecaa088c55f9b00f3c
     WM/WMRVProgramID: !Loaders!Glid!Programs!12802:816:821!12019
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 1617
     WM/WMRVOriginalSoftPostPadding: 600
     WM/WMRVHardPrePadding: -1497
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: false
     Duration        : 193959629
     WM/WMRVEndTime  : 2013-12-05 08:55:20
     WM/WMRVBitrate  : 8.073216
     WM/WMRVKeepUntil: -1
     WM/WMRVActualSoftPrePadding: -3
     WM/WMRVActualSoftPostPadding: -2079
     WM/WMRVContentProtected: false
     WM/WMRVContentProtectedPercent: 0
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
     WM/MediaThumbWidth: 0
     WM/MediaThumbHeight: 0
     WM/MediaThumbStride: 0
     WM/MediaThumbRet: 4
     WM/MediaThumbRatingSystem: 0
     WM/MediaThumbRatingLevel: 0
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 0
     WM/MediaThumbAspectRatioY: 0
     WM/MediaThumbTimeStamp: -4616189618054758400
   Duration: 00:00:19.11, start: 1.619076, bitrate: 10206 kb/s
     Stream #0:0[0x2c](eng): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz,
 stereo, s16p, 256 kb/s
     Stream #0:1[0x2d]: Video: mpeg2video (Main), yuv420p(tv), 1440x1080
 [SAR 4:3 DAR 16:9], max. 80000 kb/s, 25 fps, 25
 tbr, 10000k tbn, 50 tbc
     Stream #0:2[0x2f](eng): Subtitle: dvb_teletext, 492x250
 File 'test.srt' already exists. Overwrite ? [y/N] y
 Output #0, srt, to 'test.srt':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : World News Australia
     WM/SubTitleDescription: Up-to-date reports and analysis of the major
 national and international news stories of the
 day in Australia's only world news service. #SBSnews
     genre           : News;Other News
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;;
     service_provider: SBS HD
     service_name    : SBS HD
     WM/MediaNetworkAffiliation: SBS HD
     WM/MediaOriginalChannel: 30
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
     WM/MediaOriginalRunTime: 26984467000
     WM/MediaIsStereo: false
     WM/MediaIsRepeat: false
     WM/MediaIsLive  : false
     WM/MediaIsTape  : false
     WM/MediaIsDelay : false
     WM/MediaIsSubtitled: false
     WM/MediaIsMovie : false
     WM/MediaIsPremiere: false
     WM/MediaIsFinale: false
     WM/MediaIsSAP   : false
     WM/MediaIsSport : false
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2013-12-05 08:55:01
     WM/WMRVSeriesUID: !GenericSeries!World News Australia
     WM/WMRVServiceID: !Generated!f16bbe88261548ecaa088c55f9b00f3c
     WM/WMRVProgramID: !Loaders!Glid!Programs!12802:816:821!12019
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 1617
     WM/WMRVOriginalSoftPostPadding: 600
     WM/WMRVHardPrePadding: -1497
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: false
     Duration        : 193959629
     WM/WMRVEndTime  : 2013-12-05 08:55:20
     WM/WMRVBitrate  : 8.073216
     WM/WMRVKeepUntil: -1
     WM/WMRVActualSoftPrePadding: -3
     WM/WMRVActualSoftPostPadding: -2079
     WM/WMRVContentProtected: false
     WM/WMRVContentProtectedPercent: 0
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
     WM/MediaThumbWidth: 0
     WM/MediaThumbHeight: 0
     WM/MediaThumbStride: 0
     WM/MediaThumbRet: 4
     WM/MediaThumbRatingSystem: 0
     WM/MediaThumbRatingLevel: 0
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 0
     WM/MediaThumbAspectRatioY: 0
     WM/MediaThumbTimeStamp: -4616189618054758400
     Stream #0:0(eng): Subtitle: srt, 492x250
 Stream mapping:
   Stream #0:2 -> #0:0 (libzvbi_teletextdec -> srt)
 Error while opening encoder for output stream #0:0 - maybe incorrect
 parameters such as bit_rate, rate, width or height
 }}}


 {{{
 ffmpeg -i "World News Australia_SBS HD_2013_12_05_18_54_59_Teletext.wtv"
 -an -vn -scodec
 rt -txt_format text test.srt
 ffmpeg version N-59138-g4ecac81 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec 16 2013 05:11:19 with gcc 4.8.0 (GCC)
   configuration: --arch=x86 --target-os=mingw32 --cross-
 prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bi
 /i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264
 --enable-avisynth --enable-libxvid --enable-li
 mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
 libvorbis --enable-libtheora --enable-libspeex --enab
 e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
 --enable-libopus --disable-w32threads --enable-frei0
  --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-
 libxavs --extra-cflags=-DPTW32_STATIC_LIB --enabl
 -libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc
 --enable-libschroedinger --enable-libvpx --enable
 libilbc --enable-iconv --enable-libtwolame --extra-
 cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
 --enable-libzvbi --enable-libcaca
 --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32
 --ena
 le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-
 libass --enable-libutvideo --enable-libbluray
 -extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-
 cpudetect
   libavutil      52. 58.100 / 52. 58.100
   libavcodec     55. 45.101 / 55. 45.101
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 92.100 /  3. 92.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 [wtv @ 04004aa0] truncated file
 [mpeg2video @ 040055e0] Invalid frame dimensions 0x0.
     Last message repeated 3 times
 Input #0, wtv, from 'World News Australia_SBS
 HD_2013_12_05_18_54_59_Teletext.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : World News Australia
     WM/SubTitleDescription: Up-to-date reports and analysis of the major
 national and international news stories of the
 day in Australia's only world news service. #SBSnews
     genre           : News;Other News
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;;
     service_provider: SBS HD
     service_name    : SBS HD
     WM/MediaNetworkAffiliation: SBS HD
     WM/MediaOriginalChannel: 30
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
     WM/MediaOriginalRunTime: 26984467000
     WM/MediaIsStereo: false
     WM/MediaIsRepeat: false
     WM/MediaIsLive  : false
     WM/MediaIsTape  : false
     WM/MediaIsDelay : false
     WM/MediaIsSubtitled: false
     WM/MediaIsMovie : false
     WM/MediaIsPremiere: false
     WM/MediaIsFinale: false
     WM/MediaIsSAP   : false
     WM/MediaIsSport : false
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2013-12-05 08:55:01
     WM/WMRVSeriesUID: !GenericSeries!World News Australia
     WM/WMRVServiceID: !Generated!f16bbe88261548ecaa088c55f9b00f3c
     WM/WMRVProgramID: !Loaders!Glid!Programs!12802:816:821!12019
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 1617
     WM/WMRVOriginalSoftPostPadding: 600
     WM/WMRVHardPrePadding: -1497
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: false
     Duration        : 193959629
     WM/WMRVEndTime  : 2013-12-05 08:55:20
     WM/WMRVBitrate  : 8.073216
     WM/WMRVKeepUntil: -1
     WM/WMRVActualSoftPrePadding: -3
     WM/WMRVActualSoftPostPadding: -2079
     WM/WMRVContentProtected: false
     WM/WMRVContentProtectedPercent: 0
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
     WM/MediaThumbWidth: 0
     WM/MediaThumbHeight: 0
     WM/MediaThumbStride: 0
     WM/MediaThumbRet: 4
     WM/MediaThumbRatingSystem: 0
     WM/MediaThumbRatingLevel: 0
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 0
     WM/MediaThumbAspectRatioY: 0
     WM/MediaThumbTimeStamp: -4616189618054758400
   Duration: 00:00:19.11, start: 1.619076, bitrate: 10206 kb/s
     Stream #0:0[0x2c](eng): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz,
 stereo, s16p, 256 kb/s
     Stream #0:1[0x2d]: Video: mpeg2video (Main), yuv420p(tv), 1440x1080
 [SAR 4:3 DAR 16:9], max. 80000 kb/s, 25 fps, 25
 tbr, 10000k tbn, 50 tbc
     Stream #0:2[0x2f](eng): Subtitle: dvb_teletext, 492x250
 Codec AVOption txt_format (format of the subtitles (bitmap or text))
 specified for output file #0 (test.srt) is not an
 ncoding option.
 }}}

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


More information about the FFmpeg-trac mailing list