gpt4 book ai didi

ffmpeg 和硬编码字幕

转载 作者:行者123 更新时间:2023-12-04 22:46:44 24 4
gpt4 key购买 nike

我有这样的命令

ffmpeg -i "F:\Filebotted\Rail Wars\Season 1\Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv" -map 0:0 -map 0:1 -b:v 750k -b:a 128k -c:v libx264 -c:a mp3 -ac 2 -filter_complex "subtitles=F:\Filebotted\Rail Wars\Season 1\Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv,scale=-1:360" "C:\Users\Adin\Desktop\Testy mc test\Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv"

是的,它很长,但不幸的是,ffmpeg 发出嘶嘶声并吐出以下内容
[subtitles @ 00000000050ce7c0] Unable to parse option value "FilebottedRail Wars
Season 1Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv" as image size
Last message repeated 1 times
[subtitles @ 00000000050ce7c0] Error setting option original_size to value Fileb
ottedRail WarsSeason 1Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv.
[Parsed_subtitles_0 @ 0000000002c714c0] Error applying options to the filter.
[AVFilterGraph @ 0000000002c5c540] Error initializing filter 'subtitles' with ar
gs 'F:FilebottedRail WarsSeason 1Rail Wars.S01E07(7).You Look Good in That. 1080
p.mkv'
Error configuring filters.

当文件与 ffmpeg 位于同一文件夹中时,它工作得很好(我发现它不喜欢 ' 或 - 在文件名中,但我只花了一个小时试图解决这个问题,但无济于事。

任何帮助将不胜感激 :)

最佳答案

' , \:是 FFmpeg 使用的特殊转义字符之一。

如果要将它们包含在值中,则需要引用/转义它们。

你可以试试:

-filter_complex "subtitles='F\:/Filebotted/Rail Wars/Season 1/Rail Wars.S01E07(7).You Look Good in That. 1080p.mkv',scale=-1:360"

关于ffmpeg 和硬编码字幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29515574/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com