gpt4 book ai didi

java - ffmpeg 准确地填充和延迟音频文件

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

最近我一直在做一个个人项目,这确实需要一点点
音频处理,但我注意到我用来修改的命令
在结果文件中没有 1:1 的相关性,导致它是公平的
另类(请注意,此程序对错误敏感)。
我需要做的就是准确地将 Padding 添加到音频文件的开头,或者
使用偏移/延迟值跳转到歌曲中的某个点。值(value)
是严格准确的,例如 0.13149s 但是准确度通过了第三个基数
是相当多余的,因为“没有人”应该能够注意到它。

Here is an example of one issue:

[Input File Info] // This is a test case/correct values
Supposed to start at : 0.875
Originally started at: 1.190
Offset Value : -0.315
Difference : 1.190 - 0.875 = 0.315
    // Audio file offset attempt (FAIL)
FFMPEG Command:
ffmpeg -y -i "..." -ss 0.315 -c copy -map 0 "..."

[Output File Info]
Start Time Beat : 0.766
Start Time Beat Audacity: 0.766
Resulting Error : 0.106
我想知道的是,如果有人知道一种更好的方法来获得 1:1 的准确度
命令或至少尽可能接近它。我不经常使用ffmpeg所以
我可能错过了重要信息(我尽我所能谷歌搜索了 :) 但是
这我也不会放弃使用专用的音频库
我正在用(Java)编写程序。
I probably should mention that I have been using:
ffmpeg -y -i "..." -af "adelay=DELAY" "..."

to add the padding but I haven't really gotten around to testing audio files
that require this yet so I don't know if its broken/inaccurate.

最佳答案

我相信atrim过滤器为您提供准确的结果:

ffmpeg -i INPUT -af atrim=start=0.315 OUTPUT
这可能等同于使用 -ss输出选项。

关于java - ffmpeg 准确地填充和延迟音频文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71864014/

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