-
How to reduce audio frequency in mp3 format through FFMPEG
I want to reduce audio bitrate of my movie in FFMPEG when I use libmp3lame -b:a 16k -ac 1 -ar 44100 it works correctly but when I reduce those to libmp3lame -b:a -16k -ac 1 -ar 8000 I get the error:
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
please advise me how to reduce audio frequency from 44100 to 8000 mp3lame.
The following code is working
ffmpeg -re -ss 00:30:00 -i j:\movie\need4speed.mp4 -preset ultrafast -threads 1 -vcodec libx264 -b:v 20000k -r 24 -g 24 -keyint_min 4 -x264opts "keyint=4:min-keyint=48:no-scenecut" -s 10265*4320 -acodec libmp3lame -b:a 16k -ac 1 -ar 44100 -f flv rtmp://12.11.1.2/livepkgr/need4speed4320p?adbe-live-event=liveevent
The following code **IS NOT** working
ffmpeg -re -ss 00:30:00 -i j:\movie\need4speed.mp4 -preset ultrafast -threads 1 -vcodec libx264 -b:v 20000k -r 24 -g 24 -keyint_min 4 -x264opts "keyint=4:min-keyint=48:no-scenecut" -s 10265*4320 -acodec libmp3lame -b:a 16k -ac 1 -ar 8000 -f flv rtmp://12.11.1.2/livepkgr/need4speed4320p?adbe-live-event=liveevent
Thanks