Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th November 2009, 10:29   #1  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
Avisynth AudioFade?

I'd like to fade audio in and out, but not the video.

I made a script function:
Code:
function AudioFadeOut(clip input, int "num_frames")
{
 FadeOut0(input,num_frames)
 return AudioDub(input,last)
}
Which works, but seems a bit silly to process the video then throw it away.

Is there an audio-only fade that does this?
AlanHK is offline   Reply With Quote
Old 25th November 2009, 14:40   #2  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
The way Avisynth works, the video will not be 'processed'.
Video and audio are processed separately (and only on demand), and since the video part of the FadeOut0 is not used, no video frames will ever be fetched from it.
Gavino is offline   Reply With Quote
Old 25th November 2009, 16:49   #3  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
Quote:
Originally Posted by Gavino View Post
The way Avisynth works, the video will not be 'processed'.
Admirable design.

So I can use my function without guilt.

*But still, it seems something basic enough to be an internal filter.
AlanHK is offline   Reply With Quote
Old 25th November 2009, 17:32   #4  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Yes, no need to feel guilty.
Quote:
Originally Posted by AlanHK View Post
But still, it seems something basic enough to be an internal filter.
Agreed, especially since it works in terms of frames, rather than audio samples (or milliseconds, etc), which makes it awkward to use with an audio-only clip. The same goes for Trim().
Gavino is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 21:07.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.