I would like to reduce the size of several Mp3 files in a directory with:
ffmpeg -i k.mp3 -acodec libmp3lame -ac 2 -ab 16k -ar 44100 k_.mp3
where K is the name of Mp3 (k from 1 to 8):
Itriedthefollowingcode:
importsubprocessforxinrange(1,9):r=subprocess.call(["ffmpeg", " ffmpeg -i x.mp3 -acodec libmp3lame -ac 2 -ab 16k -ar 44100 x_.mp3"])
Then I would like to rename all files like this:
1_mp3 vira Sri Harinama - Aula 1
2_mp3 vira Sri Harinama - Aula 2
3_mp3 vira Sri Harinama - Aula 3
4_mp3 vira Sri Harinama - Aula 4
5_mp3 vira Sri Harinama - Aula 5
...
9_mp3 vira Sri Harinama - Aula 9
Any suggestions?