Need to convert mp4 to mp3 and then split audio into smaller chunks

Literally have less than 10 minutes this morning to do a quick job for my father. Task is as follows:

  • Download video with information he wants
  • Convert to mp3 so he can play it in his car
  • Split the mp3 into smaller chunks because the mp3 player he has does not keep its place when he turns the car off (has to start at the beginning of hour long audio file every time he gets back in the car to drive)

Thank god for Ubuntu… here is what I did

apt-get install ffmpeg libavcodec-extra-52

Converts file from mp4 to mp3

ffmpeg -i a_file.mp4 -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 b_file.mp3
apt-get install mp3splt

Splits audio into 5 minute blocks

mp3splt -f -t 5.0 -a -d split b_file.mp3


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s