Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques How to reduce audio frequency in mp3 format through FFMPEG

  • How to reduce audio frequency in mp3 format through FFMPEG

    Posted by Moahammad Yazdian on October 25, 2014 at 6:37 am

    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

    Lou Logan replied 11 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Lou Logan

    October 28, 2014 at 7:13 pm

    You should always include the complete console output from each command.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy