gpt4 book ai didi

image - 在静态图像上叠加音频音量直方图

转载 作者:行者123 更新时间:2023-12-04 23:33:47 31 4
gpt4 key购买 nike

我实际上正在研究一个使用 ffmpeg 生成音乐视频的项目。
我想知道是否可以在 Windows 环境下使用 ffmpeg 本身或命令行组件的组合来在静态背景图像上可视化音频频谱(直方图?),就像我在网上找到的那样:

enter image description here

有什么想法或编码技巧吗?

最佳答案

enter image description here

ffmpeg -loop 1 -i background.png -i music.mp3 -filter_complex "[1]ahistogram=s=789x50:rheight=1[fg];[0][fg]overlay=(W-w)/2:H-h-10:shortest=1,scale='iw-mod(iw,2)':'ih-mod(ih,2)',format=yuv420p[v]" -map "[v]" -map 1:a -movflags +faststart output.mp4

不完全是您想要的,没有像您的图像那样创建条形的选项,但也许这已经足够了。见 ahistogram filter documentation更多选择。

关于image - 在静态图像上叠加音频音量直方图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53708562/

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