romainlavisse
romainlavisse

Reputation: 115

ffmpeg remove a part of audio in mp4 file but not all

i got an mp4 and i want to remove 3 minutes of sound on 4h video (to upload on youtube).

i try : ffmpeg -i video.mp4 -c copy -an video-sansson.mp4

the full audio is deleted.

I personally just want to remove 3 minutes of it ?

Upvotes: 3

Views: 2945

Answers (1)

Offbeatmammal
Offbeatmammal

Reputation: 8238

this should work:

ffmpeg -i video.mp4 -af "volume=enable='between(t,5,10)':volume=0" -c:v copy video-sansson.mp4

this applies a volume filter between 5 and 10 seconds - obviously you'll want to adjust that

Upvotes: 8

Related Questions