how do I use ffmpeg to batch convert *.mp4 to *.mp3

Hello,

I have been using audacity to convert mp4 to mp3, it is slow and painful.
I have seen people talk about ffmpeg;
is there a way I can batch convert an entire folder of *.mp4 to *.mp3?

thank you for your time
qu1nn

On Sat 07 Dec 2013 03:46:01 AM CST, qu1nn wrote:

Hello,

I have been using audacity to convert mp4 to mp3, it is slow and
painful.
I have seen people talk about ffmpeg;
is there a way I can batch convert an entire folder of *.mp4 to *.mp3?

thank you for your time
qu1nn

Hi
Here is a script to do that (m4a which are mp4);
http://conjurecode.com/converting-m4a-to-mp3-with-ffmpeg-on-linux/


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLED 11 SP3 (x86_64) GNOME 2.28.0 Kernel 3.0.101-0.8-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

On Sat 07 Dec 2013 04:05:34 AM CST, malcolmlewis wrote:

[QUOTE]
On Sat 07 Dec 2013 03:46:01 AM CST, qu1nn wrote:

Hello,

I have been using audacity to convert mp4 to mp3, it is slow and
painful.
I have seen people talk about ffmpeg;
is there a way I can batch convert an entire folder of *.mp4 to *.mp3?

thank you for your time
qu1nn

Hi
Here is a script to do that (m4a which are mp4);
http://conjurecode.com/converting-m4a-to-mp3-with-ffmpeg-on-linux/

[/QUOTE]
Here is another that uses faad, flac and lame;


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLED 11 SP3 (x86_64) GNOME 2.28.0 Kernel 3.0.101-0.8-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Thanks for the responses.

As a summary the following worked for me:

-------------how do I batch convert mp4 to mp3

have ffmpeg installed with codecs:

1)copy the files to a single directory.
2)make a quick script in kwrite by copying the following:

#!/bin/bash
*for i in .mp4
**do **
**ffmpeg -i “$i” -ab 128k “${i%mp4}mp3” **
done

  1. save as mp42mp3.sh in the same directory that the mp4 files reside.
  2. select file in dolphin > right click it > and select to make executable
  3. select from the dolphin menu to open a terminal window to open a terminal window in that directory.
  4. type:
    ./mp42mp3.sh

note: the 128k could be common bitrates, from 64k all the way up to 128k, 256k, 192k, 320k, etc…

hth
qu1nn

Hey, instead of using ffmpeg you can use a suitable and professional mp4 to mp3 converter that help yo batch converting of Mp4 file format into mp3. Try this, i hope that this would meet your requirement successfully.