[FFmpeg-user] removing audio from section of video

johnd john at jjdev.com
Tue Jan 22 01:33:35 CET 2013

On Mon, Jan 21, 2013 at 01:26:33PM -0900, Lou wrote:
> On Tue, 15 Jan 2013 13:25:51 -0800
> johnd <john at jjdev.com> wrote:
> > I have an input video.  At 10 seconds into the video I want to remove
> > audio for 5 seconds, then have the audio continue.
> You can use the afade filter by Paul B Mahol that was committed today.
> This means that you will have to find a very recent build or compile
> ffmpeg yourself. It will allow you to fade the audio at specific
> interval(s).
> http://ffmpeg.org/ffmpeg-filters.html#afade
> You can copy the video stream with "-c:v copy" to prevent video
> re-encoding.

this looks great but I can't figure out how to set more
than one event

How do I pass more stuff like 'turn back on at a time'

I tried this: 
ffmpeg -y  -i withsound.mp4  -c:v copy -af "afade=t=out:st=2,afade=t=in:st=5"   done.mp4

but my end video was all silent

I'd like to be able to tell it to turn off audio then back, then repeat
that process...

More information about the ffmpeg-user mailing list