本帖最后由 lexico 于 2019-9-11 17:10 编辑
孙悟空 发表于 2019-9-9 15:46
支持的
ffmpeg -ss 10 -to 40 -i QZmONF09A8RvzNxNZqL.mp4 -ss 60 -to 100 -i xinyang.mp3 -filter_co ...
谢谢大师兄,硬编码字幕时候遇到个问题 ,命令行如下 导致字幕压不进去 中文字幕乱码,是什么原因
./ffmpeg -loglevel info -report -hide_banner -y -ss 5 -t 40 -i QZmONF09A8RvzNxNZqL-zpYs-IO9K33kKbSqiQ___32.mp4 -ss 40 -t 80 -i xinyang.mp3 -filter_complex "[0:v]subtitles=/data/transcode/2019-09-11/1592198/xinyang.lrc[v];[0:a][1:a]amix=inputs=2[a]:weights=1 2[a]" -map "[v]" -map "[a]" -c:v libx264 -profile:v high -crf 23 -c:a libfdk_aac -shortest test.mp4
错误信息 fontconfig 配置文件及环境变量都已配置
Fontconfig error: Cannot load default config file
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x5F20 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x4FE1 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x54F2 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x6F14 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x5531 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x5F20 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x4FE1 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x54F2 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x6F14 not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x3fb28c0] Glyph 0x5531 not found, selecting one more font for (Arial, 400, 0)
|