how to use ffmpegs's afir in ffmpeg-python

73 views Asked by At

My goal is to slow down a file and add reverberation using python

here's my code:

import ffmpeg

audio = ffmpeg.input(r'test_files\Gorillaz - Rhinestone Eyes.mp3').audio
audio = audio.filter('rubberband', tempo=0.8, pitch=0.8, pitchq='quality')
# audio = audio.filter('afir', )
output = ffmpeg.output(audio, r'final\test.mp3', format='mp3', audio_bitrate=320_000)
ffmpeg.run(output)

the problem is that I don't know how to properly use afir filter in ffmpeg-python syntax, I tried doing it by hand in command prompt and succeed, but in python it gives me errors

I tried to find information about my problem on the internet, but failed. And also I tried asking chatgpt about all this, but it didn't help either.

0

There are 0 answers