Wednesday, 15 August 2012

extract - Error while extracting subtitle from mkv or m2ts to srt with FFmpeg -



extract - Error while extracting subtitle from mkv or m2ts to srt with FFmpeg -

i need extract subtitles different video files .srt format (to utilize in html5 video). tried lot of variant found google. every time error:

error while opening encoder output stream #0:0 - maybe wrong parameters such bit_rate, rate, width or height

i think, error means ffmpeg can decode source subtitle cant encode .srt format. codecs enabled (i compiled later ffmpeg version git few times different configuration).

here output:

# /usr/local/bin/ffmpeg -i /var/video/sources/balbesy1.m2ts -an -vn -copyinkf -scodec srt -f srt -y sub.srt ffmpeg version n-49947-g9f16cb9 copyright (c) 2000-2013 ffmpeg developers built on feb 14 2013 14:26:10 gcc 4.4.5 (debian 4.4.5-8) configuration: --enable-encoder=dvdsub --enable-decoder=dvdsub --enable-decoder=pgssub --enable-encoder=srt --enable-decoder=srt --enable-encoder=srt --enable-decoder=srt libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [mpegts @ 0x2719040] stream #5: not plenty frames estimate rate; consider increasing probesize [mpegts @ 0x2719040] not find codec parameters stream 5 (subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size consider increasing value 'analyzeduration' , 'probesize' options [null @ 0x271fec0] start time not set in estimate_timings_from_pts input #0, mpegts, '/var/video/sources/balbesy1.m2ts': duration: 01:18:11.89, start: 599.958300, bitrate: 37378 kb/s programme 1 stream #0:0[0x1011]: video: h264 (high) ([27][0][0][0] / 0x001b), yuv420p, 1920x1080 [sar 1:1 dar 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc stream #0:1[0x1100]: audio: dts (dts-hd ma) ([134][0][0][0] / 0x0086), 48000 hz, 5.1(side), fltp, 768 kb/s stream #0:2[0x1101]: audio: dts (dts-hd ma) ([134][0][0][0] / 0x0086), 48000 hz, 5.1(side), fltp, 768 kb/s stream #0:3[0x1102]: audio: ac3 (ac-3 / 0x332d4341), 48000 hz, 5.1(side), fltp, 448 kb/s stream #0:4[0x1103]: audio: ac3 (ac-3 / 0x332d4341), 48000 hz, 5.1(side), fltp, 448 kb/s stream #0:5[0x1200]: subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090) output #0, srt, 'sub.srt': stream #0:0: subtitle: srt stream mapping: stream #0:5 -> #0:0 (pgssub -> srt) error while opening encoder output stream #0:0 - maybe wrong parameters such bit_rate, rate, width or height

sorry english

ffmpeg extract srt

No comments:

Post a Comment