Files
videobeaux/programs/sound.py
Christopher Konopka c14a02492b added v2 set of effects
2024-06-20 15:57:27 -04:00

14 lines
388 B
Python

from utils.ffmpeg_operations import run_ffmpeg_command
def extract_sound(input_file, output_file):
command = [
"ffmpeg",
"-i", input_file,
"-vn",
"-acodec", "pcm_s16le",
"-ar", "44100",
"-ac", "2",
output_file
]
run_ffmpeg_command(command)
print(f"Audio extracted from video using sound and file is {output_file}")