gpt4 book ai didi

audio - avisynth "transparent"覆盖音频

转载 作者:行者123 更新时间:2023-12-03 02:00:52 24 4
gpt4 key购买 nike

如何将音频叠加到其他音频上?
我想为 avisynth 中剪辑的音频 channel 制作 FadeIO(..) 功能。
我有这个脚本

video = DirectShowSource("Z:\video\vvv.mp4", fps=fps_count, audio=true, convertfps=true).AssumeFPS(fps_count, 1).ConvertToYV12()
audio = BlankClip(audio_rate=audio_sample_rate, channels=2, length = logo_timeout).ResampleAudio(audio_sample_rate)

blank = BlankClip(logo_timeout, res_width, res_height, pixel_type = "RGB32", fps = fps_count).ConvertToYV12()
blank = Overlay(blank, blank_logo, mode = "blend", x = 0, y = 0)
blank = AudioDub(blank, blank_logo).AssumeFPS(fps_count, 1)

并且部分视频的平滑叠加是这样的:
blank.Trim(0 * fps_count, transparent_overlay_latency * fps_count).Overlay(video.Trim(0 * fps_count, transparent_overlay_latency * fps_count), mode="blend", mask=logo.showalpha(), x = 0, y = 0) 

但这仅适用于视频。当第二个剪辑 (video.Trim()) 已经淡入时,音频开始。当剪辑出现时,我想要这个视频的声音“长大”。

最佳答案

正如@SeedManc 在有问题的评论中所说:

avisynth.nl/index.php/Dissolve, it allows for gradual transition between two clips, both in terms of video and audio.



这种方法非常简单,是我问题的答案

关于audio - avisynth "transparent"覆盖音频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31679814/

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