本帖最后由 newswan 于 2021-11-23 22:55 编辑
文件 %file% 包含字幕- Stream #0:12(chi): Subtitle: hdmv_pgs_subtitle
- Metadata:
- title : Chinese
- BPS-eng : 21487
- DURATION-eng : 00:57:41.124000000
- NUMBER_OF_FRAMES-eng: 1326
- NUMBER_OF_BYTES-eng: 9296159
- _STATISTICS_WRITING_APP-eng: mkvmerge v50.0.0 ('Awakenings') 64-bit
- _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
复制代码 用 ffmpeg 剪切片段
1、- ffmpeg -ss 44:26 -to 45:00 -i %file% -vf scale=-1:720 -c:v hevc_amf -c:a copy -c:s copy 1.mkv
复制代码 包含视频和第一个音轨,但是字幕全丢失
2、- ffmpeg -ss 44:26 -to 45:00 -i %file% -vf scale=-1:720 -map 0:v:0 -c:v hevc_amf -map 0:a:1 -map 0:s:9 1.mkv
复制代码 会报错:Error initializing output stream 0:2 -- Subtitle encoding currently only possible from text to text or bitmap to bitmap
请问,pgs字幕该怎么处理?
谢谢! |