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 > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th June 2023, 20:21   #1  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,666
Invert audio filter?

Hi there people,

Does anyone know of a way to invert the audio in AviSynth? I have searched but came up empty handed. I'm sure it's not a common thing people do but audio editors do have a way to invert (flip) the audio.
Reel.Deel is offline   Reply With Quote
Old 8th June 2023, 20:40   #2  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Maybe Reverse().Killvideo()?
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 8th June 2023, 20:55   #3  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Clarification, You mean, +ve peaks become -ve, and -ve peaks become +ve ?
Yes.
(cant help, just dont think Doggy understood)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 8th June 2023, 21:01   #4  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,666
Quote:
Originally Posted by Dogway View Post
Maybe Reverse().Killvideo()?
That would reverse the audio. Audio invert (also known as polarity invert, phase invert and others) is more like the filter Invert() for video. It basically flips the waveform 180 degrees.



Edit
Quote:
Originally Posted by StainlessS View Post
Clarification, You mean, +ve peaks become -ve, and -ve peaks become +ve ?
Yep.

Last edited by Reel.Deel; 8th June 2023 at 21:04.
Reel.Deel is offline   Reply With Quote
Old 8th June 2023, 21:49   #5  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Ah yes, flip the waveform, basically you multiply the audio by -1.0. In this regard it's like amplifying negatively, Amplify() already has that built in I think. Amplify(-1) by the examples.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 8th June 2023, 21:59   #6  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Code:
A=Colorbars
B=A.Amplify(-1.0)

A=A.Waveform_Filmstrip(window=1,under=true,SubSize=0.25)
B=B.Waveform_Filmstrip(window=1,under=true,SubSize=0.25)

StackVertical(A,B)

Only showing 1 (upper) channel [the other channel was silent for that colorbars frame].

Good Dog.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 9th June 2023 at 04:12.
StainlessS is offline   Reply With Quote
Old 8th June 2023, 22:07   #7  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,666
Quote:
Originally Posted by Dogway View Post
Ah yes, flip the waveform, basically you multiply the audio by -1.0. In this regard it's like amplifying negatively, Amplify() already has that built in I think. Amplify(-1) by the examples.
Dang, now I feel like a dummy. I even updated the documentation for the avs+ page . I vaguely recall reading something but I kept looking for "invert audio avisynth" and the Amplify page does not come up on Google. Thanks Dogway!
Reel.Deel 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 03:39.


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