[FFmpeg-trac] #1482(undetermined:new): FFMPEG fails to create a SRT file when extracting Subtitles
FFmpeg
trac at avcodec.org
Sun Jun 24 00:12:30 CEST 2012
#1482: FFMPEG fails to create a SRT file when extracting Subtitles
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by ramitbhalla):
Okay thanks.
How did you know it's a image and not text?
Reason I'm asking, I tried a different file - a WTV file which has Closed
Captions (I'm able to extract them using CCExtractor after converting it
to a TS file).
When I try to use FFMPEG wtih teh WTV file, here's the error I get:
ffmpeg -i "..\NCIS HD.wtv" -an -vn -scodec copy -copyinkf -f srt sub.srt
{{{
ffmpeg version N-41843-gc17808c Copyright (c) 2000-2012 the FFmpeg
developers
built on Jun 22 2012 17:40:07 with gcc 4.7.1
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-
libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
libavutil 51. 61.100 / 51. 61.100
libavcodec 54. 29.100 / 54. 29.100
libavformat 54. 11.100 / 54. 11.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 82.100 / 2. 82.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg2video @ 01d77800] mpeg_decode_postinit() failure
Last message repeated 10 times
Input #0, wtv, from '..\NCIS HD.wtv':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : NCIS: Los Angeles
WM/SubTitle : Sacrifice
WM/SubTitleDescription: The LAPD asks NCIS for help when a case
exposes a link between a Mexican drug cartel and a t
errorist.
genre : Drama;General;Series;Action/Adventure
WM/OriginalReleaseTime: 0
WM/MediaCredits : Chris O'Donnell/LL Cool J/Linda Hunt/Daniela
Ruah/Eric Christian Olsen/Barrett Foa/Renée Felice S
mith;John P. Kousakis;;America Olivo/Brant Cotton/Doug Rao/Danny
Nucci/Gino Montesinos/Farshad Farahat/Carlos Arellano/C
heryl Texiera/Brian Michael Jones/Jen
service_provider: KPHODT
service_name : KPHODT (KPHO-DT)
WM/MediaNetworkAffiliation: CBS Affiliate
WM/MediaOriginalChannel: 5
WM/MediaOriginalChannelSubNumber: 1
WM/MediaOriginalBroadcastDateTime: 2011-10-18T07:00:00Z
WM/MediaOriginalRunTime: 38375940244
WM/MediaIsStereo: true
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/ParentalRating: TV-14
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2011-10-19 03:00:02
WM/WMRVSeriesUID: !MCSeries!01158361
WM/WMRVServiceID: !MCService!28455624
WM/WMRVProgramID: !MCProgram!264522248
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 420
WM/WMRVOriginalSoftPostPadding: 180
WM/WMRVHardPrePadding: -300
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: true
WM/WMRVDTVContent: true
WM/WMRVHDContent: true
Duration : 36582312388
WM/WMRVEndTime : 2011-10-19 04:01:00
WM/WMRVBitrate : 12.738619
WM/WMRVKeepUntil: 0
WM/WMRVActualSoftPrePadding: 297
WM/WMRVActualSoftPostPadding: 0
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
WM/MediaThumbWidth: 352
WM/MediaThumbHeight: 198
WM/MediaThumbStride: 1056
WM/MediaThumbRet: 0
WM/MediaThumbRatingSystem: 255
WM/MediaThumbRatingLevel: 255
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 16
WM/MediaThumbAspectRatioY: 9
WM/MediaThumbTimeStamp: 4634350287386204132
WM/MediaThumbType: 3
Duration: 01:00:57.28, start: 1.797444, bitrate: 12741 kb/s
Stream #0:0[0xe](eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:1[0xf](eng): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:2[0x10]: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR
1:1 DAR 16:9], 38810 kb/s, 57.22 fps, 29.97 tbr
, 10000k tbn, 59.94 tbc
Stream #0:3[0x11]: Subtitle: dvb_teletext
Stream #0:4[0x0]: Attachment: mjpeg
Metadata:
title : TV Thumbnail
[srt @ 033150e0] Unsupported subtitles codec: dvb_teletext
Output #0, srt, to 'sub.srt':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : NCIS: Los Angeles
WM/SubTitle : Sacrifice
WM/SubTitleDescription: The LAPD asks NCIS for help when a case
exposes a link between a Mexican drug cartel and a t
errorist.
genre : Drama;General;Series;Action/Adventure
WM/OriginalReleaseTime: 0
WM/MediaCredits : Chris O'Donnell/LL Cool J/Linda Hunt/Daniela
Ruah/Eric Christian Olsen/Barrett Foa/Renée Felice S
mith;John P. Kousakis;;America Olivo/Brant Cotton/Doug Rao/Danny
Nucci/Gino Montesinos/Farshad Farahat/Carlos Arellano/C
heryl Texiera/Brian Michael Jones/Jen
service_provider: KPHODT
service_name : KPHODT (KPHO-DT)
WM/MediaNetworkAffiliation: CBS Affiliate
WM/MediaOriginalChannel: 5
WM/MediaOriginalChannelSubNumber: 1
WM/MediaOriginalBroadcastDateTime: 2011-10-18T07:00:00Z
WM/MediaOriginalRunTime: 38375940244
WM/MediaIsStereo: true
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/ParentalRating: TV-14
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2011-10-19 03:00:02
WM/WMRVSeriesUID: !MCSeries!01158361
WM/WMRVServiceID: !MCService!28455624
WM/WMRVProgramID: !MCProgram!264522248
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 420
WM/WMRVOriginalSoftPostPadding: 180
WM/WMRVHardPrePadding: -300
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: true
WM/WMRVDTVContent: true
WM/WMRVHDContent: true
Duration : 36582312388
WM/WMRVEndTime : 2011-10-19 04:01:00
WM/WMRVBitrate : 12.738619
WM/WMRVKeepUntil: 0
WM/WMRVActualSoftPrePadding: 297
WM/WMRVActualSoftPostPadding: 0
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
WM/MediaThumbWidth: 352
WM/MediaThumbHeight: 198
WM/MediaThumbStride: 1056
WM/MediaThumbRet: 0
WM/MediaThumbRatingSystem: 255
WM/MediaThumbRatingLevel: 255
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 16
WM/MediaThumbAspectRatioY: 9
WM/MediaThumbTimeStamp: 4634350287386204132
WM/MediaThumbType: 3
encoder : Lavf54.11.100
Stream #0:0: Subtitle: dvb_teletext
Stream mapping:
Stream #0:3 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1482#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list