I'm using ffmpeg-python. I would like to change the sample rate of the audio file.
In ffmpeg-, it seems that you can change the sample rate as follows.
ffmpeg -i" movie.mp3 "-y" movie.flac "-ar 44100
-ar is sample rate.
How do I change the sample rate by ffmpeg-python?
This is my source code that is currently being written.
stream = ffmpeg.input(input_file_path)
audio = stream.audio
stream = ffmpeg.output(audio, output_file_path)
ffmpeg.run(stream, capture_stdout=True, capture_stderr=True)