DEV Community

loading...

ffmpeg: remove audio from movie

Heddi Nabbisen
An ICT designer/developer and a security monk with "a cool brain and a warm heart". OpenBSD/Rust etc. Interested in social issues and relationships. Founder of Scqr Inc.
Updated on ・1 min read

ffmpeg is an open source command-line tool that enables us to convert audio or video formats.

-an option disables audio recording.
You can remove audio from movie:

$ ffmpeg -i example.mp4 -an example-nosound.mp4
Enter fullscreen mode Exit fullscreen mode

Beside, an instant one-liner program to process multiple files with fish shell is like this:

$ for x in ./*.mp4; ffmpeg -i $x -an $x.no-sound.mp4; end
Enter fullscreen mode Exit fullscreen mode

Discussion (3)

Collapse
nabbisen profile image
Heddi Nabbisen Author

Hi, anabero. Thank you for your information with the link.
That's the first to me. I'll try it 😊
Well, I have often felt impressed to know mobile apps have got much more convenient...