JosepB
JosepB

Reputation: 2315

FFmpeg create muted audio file from video without audio

I have a webm file with only the video track. I would like to know if is it possible to create a new file with an only muted audio track of the same duration as the video file. Let's say that we have a webm vp8 and I want to create another file with the same duration with a muted AAC track.

Upvotes: 0

Views: 530

Answers (1)

Gyan
Gyan

Reputation: 92938

Yes, using pipes, like this.

ffmpeg -an -i in.webm -f lavfi -i anullsrc -c:v copy -c:a aac -shortest -fflags +shortest -max_interleave_delta 200M -f nut - | ffmpeg -f nut -i - -vn -c copy silent.m4a

Upvotes: 1

Related Questions