Log in

View Full Version : Mute whole audio but not remove it


wthreex
17th September 2019, 09:18
Hello, newbie here how do i mute whole audio and keep it with video file with avisynth? i found KillAudio but it would remove the audio.

benwaggoner
17th September 2019, 09:38
Hello, newbie here how do i mute whole audio and keep it with video file with avisynth? i found KillAudio but it would remove the audio.
Do you want to mute the track, or replace the audio with a new, silent audio track of the same duration?

wthreex
17th September 2019, 11:55
Do you want to mute the track, or replace the audio with a new, silent audio track of the same duration?

No i just wanna silence the current audio track, i know i can simply remove the audio track but for some reason i wanna keep it with video, About the duration: 0 to last frame

poisondeathray
18th September 2019, 05:52
Hello, newbie here how do i mute whole audio and keep it with video file with avisynth? i found KillAudio but it would remove the audio.

I think this should do it


Amplify(0)

tebasuna51
18th September 2019, 10:12
Thread moved by user sugestion.

Yes, Amplify(0) mute all audio inside AviSynth.

Of course input file remain unchanged. You must save the audio and remux with the video, then is like "replace the audio with a new, silent audio track of the same duration?"

Can you explain for what you need mute the audio, instead KillAudio, inside AviSynth?

StainlessS
18th September 2019, 12:57
Can you explain for what you need mute the audio, instead KillAudio, inside AviSynth?

One reason could be that eg PotPlayer puts up an error message if it cannot find any audio, after you acknowledge the problem, then plays OK (bit of a nuisance only).

EDIT: I suspect that the OP does not want to re-encode the video, so solution with eg ffmpeg to produce silent low bitrate audio is maybe required,
keep the original audio but silenced is a weird requirement, I think he just wants same length as video but silent. I dont know how to do this in ffmpeg.
OP does say "with Avisynth", but I aint sure that he means to re-encode.
Perhaps clarification required.

EDIT: If however I am wrong and OP does indeed want to use Avisynth then perhap below of use, (but PoisonDeathray's Amplify(0) is easier with exact same characteristics as source clip audio)


AviSource(".\big_buck_bunny_720p_h264.mov.AVI") # Some clip

# Choose your poison for Silent Audio at same length as source clip
AUDIO_RATE = 44100 # 32000, 44100, 48000 etc (lower is smaller)
CHANNELS = 1 # or 2 = Silent Stereo (1 channel smaller)
SAMPLE_TYPE = "8bit" # "8bit", "16bit", "24bit", "32bit" or "float" (8 bit, smaller file size)

Audio=Last.BlankCLip(audio_rate=AUDIO_RATE,channels=CHANNELS,sample_type=SAMPLE_TYPE) # same audio length as source clip video
#Audio=Last.BlankCLip() # Or this for exactly same audio characterstics including original length (if audio exists, else no audio).

AudioDubEx(Last,Audio)

#return Info

Above will also add silent audio same length as video clip, where source clip has no audio.

hello_hello
20th September 2019, 05:38
If Audacity knows where to find ffmpeg, it'll import audio from most file types, and it should be easy enough to mute it and export it again. All that'll be left to do is combine the silent audio with the video into some as yet unknown container/file type.

It hadn't occurred to me to try it until now, but if you normalize the peaks to zero percent with Avisynth you get silence. MeGUI will convert just about anything, and it's audio encoder configuration lets you normalise the peaks to any volume, even zero.
There's GUI's dedicated to re-encoding audio and/or video and combining them again in a new package, but I've no idea if they'd have a silent audio option. Something like this: https://www.videohelp.com/software/rebox.NET

Foobar2000 has an Amplify DSP (which for reasons I don't understand is called "Amplify" instead of something like "Volume" or "Gain" or "I Swing Both Ways"). It can only reduce the volume by 20dB, however you can add as many instances of a DSP to the conversion chain as you like. Five at -20dB should give you silence.

wthreex
22nd September 2019, 09:40
Can you explain for what you need mute the audio, instead KillAudio, inside AviSynth?

I'm using a app called "Telegram" if i upload a video without a sound the app shows it as a Gif, But if a video have a sound with it the app shows is as e video.