i have a small audio file, and I wanted to test out the AudioTrim function on AVIsynth. I can't seem to get the fade option to work. Here is my command:
B2=B2.AudioTrim(0,100).FadeOut(50)
I wanted to test out at the halfway point, but I am not hearing any changes.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
FadeOut only works when there's video preset so you have to go about it in a convoluted manner.
I started with a clip containing video and audio and turned it into an audio only clip for this example. The duration of the audio is 20 seconds. Obviously if you already have an audio-only source you'd just use that.
Code:Audio = FFMS2(SomeVideo.mkv, atrack=-1).KillVideo().AudioTrim(0.0, 20.0)
20 seconds * 1000 / 40 = 500 frames
If you reduced the duration of the blank clip it'd reduce the length of the audio by the same amount, so you can cut the end of the audio that way rather than with AudioTrim() if it's easier.
For a 7 second fade out it's 175 frames (7 seconds * 1000 / 40 = 175 frames)
Code:BlankAudio = AudioDub(BlankClip(fps=25, length=500), Audio).FadeOut(175)
Code:return BlankAudio
Code:return BlankAudio.KillVideo()
Code:AudioDub(BlankClip(fps=100, length=2000), Audio).FadeOut(700).KillVideo()
Last edited by hello_hello; 12th Jun 2024 at 14:18.
Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview)
Similar Threads
-
Unwanted Fade to Black
By Sgtpeprz in forum EditingReplies: 4Last Post: 17th Apr 2023, 15:38 -
Getting a quote to fade in in two parts
By BenO in forum EditingReplies: 1Last Post: 16th Mar 2023, 12:58 -
How to fade in/out
By JackTenSuited in forum Newbie / General discussionsReplies: 3Last Post: 6th May 2021, 09:38 -
Fade in/Fade out, remove beginning or ending, invert
By Shinnen in forum Newbie / General discussionsReplies: 3Last Post: 22nd Mar 2021, 18:38 -
StaxRip AudioTrim
By aradmey in forum EditingReplies: 7Last Post: 23rd Jun 2019, 11:24