我有一个从Windows Media Center录制的.wtv文件,我想从中提取字幕。视频是加密的,但字幕不是(我已经能够使用CCExtractor验证它)。 FFMpeg列出了视频:
Duration: 00:07:01.72, start: 2.214551, bitrate: 9154 kb/s
Stream #0:0[0xcc](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:1[0xcd]: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, max. 25000 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Stream #0:2[0xce]: Subtitle: eia_608
当我尝试运行时
ffmpeg -i myvideofile.wtv -an -vn -map 0:2 -c:s:0 srt test.srt
我发现了很多以下错误:
[wtv @ 0x7fef79806e00] encrypted stream detected (st:1), decoding will likely fail
Last message repeated 8 times
[Closed caption Decoder @ 0x7fef7982cc00] Data Ignored since exceeding screen width
并最终:
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
我不介意它能够解码视频流,但这会导致隐藏字幕错误吗?如果它无法解码视频,它可能不知道屏幕宽度?是否可以将隐藏式字幕解码器设置为忽略此类错误并输出(毕竟它只是文本格式)?