gpt4 book ai didi

FFmpeg 改变音频采样率

转载 作者:行者123 更新时间:2023-12-04 23:34:00 26 4
gpt4 key购买 nike

我需要将采样率提高 10%。输入文件的采样率未知。

我找到了这个。 1 个文件的示例:

ffmpeg -i xxx.mp3 -filter:a "asetrate=$(ffprobe -v error -show_entries stream=sample_rate -of default=noprint_wrappers=1:nokey=1 xxx.mp3)*1.1" -y xxx1.mp3

但它不起作用并创建 0kb 文件。

日志:

[asetrate @ 00000000024242e0] [Eval @ 00000000005fde80] Undefined constant or missing '(' in 'ffprobe-verror-show_entriesstream=sample_rate-ofdefault=noprint_wrappers=1' [asetrate @ 00000000024242e0] Unable to parse option value "$(ffprobe -v error -show_entries stream=sample_rate -of default=noprint_wrappers=1" [Parsed_asetrate_0 @ 0000000000e6cb20] Option 'nokey' not found [AVFilterGraph @ 0000000002419ca0] Error initializing filter 'asetrate' with args '$(ffprobe -v error -show_entries stream=sample_rate -of default=noprint_wrappers=1:nokey=1 xxx.mp3)*1.1' Error reinitializing filters! Failed to inject frame into filter network: Option not found Error while processing the decoded data for stream #0:0 Conversion failed!

最佳答案

您需要在 ffprobe 命令中转义每个“:”。

关于FFmpeg 改变音频采样率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44569142/

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