Log in

View Full Version : Audio-blanking


asarian
9th September 2014, 01:11
I have an old spliced VCD movie, that I needed to 'remove' some frames from (broken GoP). I did so doing:

FreezeFrame(70803, 70812, 70802)

Works great for the video, but I actually like to kill audio for that segment too (as it contains some garbage). Like DelayAudio(), but then inbetween Trim() calls, as it were. That doesn't seem possible, though.

Or could I use remove both video and audio in-between frames 708030-70812 with one command? Preferably, I'd just blank that small segment out, though (so as not having to rencode all over again).

Thanks

Reel.Deel
9th September 2014, 01:20
Will KillAudio (http://avisynth.nl/index.php/KillAudio) suffice?

asarian
9th September 2014, 01:25
Will KillAudio (http://avisynth.nl/index.php/KillAudio) suffice?

Thx. That look promising. :) Didn't realize you could use KillAudio in that fashion.

feisty2
9th September 2014, 01:26
oops, never used audio functions of avisynth before

Gavino
9th September 2014, 08:51
KillAudio is no good here as it removes the audio track completely, rather than replacing it with silence.

Or could I use remove both video and audio in-between frames 708030-70812 with one command? Preferably, I'd just blank that small segment out, though (so as not having to rencode all over again).
blank = BlankClip(last, length=10)
Trim(0, 70802) ++ blank ++ Trim(70813, 0)

wonkey_monkey
9th September 2014, 10:06
KillAudio is no good here as it removes the audio track completely, rather than replacing it with silence.

The answer to which is, for those who wish to know, amplify(0)

tebasuna51
9th September 2014, 11:49
Or maybe only:

Trim(0, 70802) ++ Trim(70813, 0)

For what you need play a blank spot here?

StainlessS
9th September 2014, 12:04
Or could I use remove both video and audio in-between frames 708030-70812 with one command? Preferably, I'd just blank that small segment out, though (so as not having to rencode all over again).

Perhaps I'm misunderstanding, but if you would be happier NOT re-encoding then perhaps Mpeg2Cut (or maybe AviDemux, not sure) would be preferable, no re-encode necessary.

I think you need to demux (for mpeg2cut) to elementry streams and then cut, remux both halfs audio/video together and than append/join both half together again. for remux/append I might use an old copy of TmpGenc v2.5 which was free for Mpeg1, (I think the demux/remux stuff works for Mpeg2 though).

EDIT: Some cutting programs may not like VCD/SVCD mpeg, might need remux.
Perhaps there are alternative suggestions for mpeg2 cutter, some years since I touched Mpg2 (other than for source).

asarian
9th September 2014, 18:53
Or maybe only:

Trim(0, 70802) ++ Trim(70813, 0)

You gave me the answer I went with elsewhere. :) Thx again.

eac3to input.ac3 output.wav -edit=0:47:10.200,-3200ms -no2ndpass
eac3to output.wav output1.wav -edit=0:47:10.200,3200ms -silence

For what you need play a blank spot here?

The glitch had occured because I had spliced 2 parts of a VCD (2 CD's, basically). There was a small glitch in the video, at the transition, which I just solved with a short FreezeFrame. Then, later -- as I could have known -- it turned out the audio at that segment was glitched too, so it also needed blanking out. Your eac3to trick seemed the easiest way to do it; and it was. :)