pinterf / AviSynthPlus

AviSynth with improvements
http://avs-plus.net
211 stars 24 forks source link

AudioTrim() not atually trim first seconds #23

Open PoDBoT opened 5 years ago

PoDBoT commented 5 years ago

If you want to mix video (containing audio track, but probably it doesn`t matter) with a distinct audio track, like this:

video = FFMS2("some.video")
audio = FFAudioSource("some_audio.mp3")

audio = DelayAudio(AudioTrim(audio, 10.0, 0.0), 10.0)

MixAudio(video, audio)

Then audio will not be trimmed from the beginning, it simply shifts "start_time" seconds to the beginning of the clip. Audio in example above will start from very beginning of the video.