如何正确提取 pgssub 字幕到 txt 文件?
我有这个目标输入流:
流 #0:2(eng):字幕:hdmv_pgs_subtitle,1920x1080(默认)
我想将像 srt 这样的字幕保存到 txt 文件中:
$ ffmpeg -i inp.mkv -map 0:2 eng.srt
ffmpeg 说:
blah blah blah...
Stream mapping:
Stream #0:2 -> #0:0 (hdmv_pgs_subtitle (pgssub) -> subrip (srt))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
如何正确提取此字幕?