Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove audio from video using Python [closed]

Tags:

python

audio

I need to remove all audio from a video and save the video without the audio. The original can de discarded.

All answers I've found use ffmpeg, but this is not really an option for my use case.

like image 494
Chiel Avatar asked Jun 10 '26 17:06

Chiel


1 Answers

You can use moviepy:

from moviepy.editor import VideoFileClip

videoclip = VideoFileClip("video.mp4")
new_clip = videoclip.without_audio()
new_clip.write_videofile("final_cut.mp4")
like image 197
Tim Avatar answered Jun 13 '26 06:06

Tim