I am trying to convert a .flac audio file into an .mp3 at different bitrates. The simple code is the following:
import ffmpy
ff = ffmpy.FFmpeg(inputs={'in.flac': None},outputs={'out.mp3': None})
ff.run()
Now, since I want my out.mp3, let's say, at 320k, I modify the second line of the code as follows:
ff = ffmpy.FFmpeg(inputs={'in.flac': None},outputs={'out.mp3': '-ab 320k'})
The problem is that I am not sure I am using the right command in the right position, by inserting
'-ab 320k'
or
'-ab 320000'
The script seems to run correctly and Python does the conversion into mp3 but the bitrate is always 128 (I am checking it by using eyed3). How can I modify my code to get 320kbps?