Results 1 to 4 of 4

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

  1. #1

    Default 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
    Pentium D 820, 2.80GHz, Intel D945PSN ATX, PowerColor Radeon HD7870, Geil DDR2, (1GB x 2) Dual Channel 667MHz Suse 13.2, KDE
    Haswell i4771, 3.5GHz, Asus Z87-WS ATX, Club3d R9 280X RoyalQueen, Corsair 8GBx2, Corsair AX860 PS, openSuse 13.1, KDE

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,355
    Blog Entries
    15

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

    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-m4...mpeg-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!


  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,355
    Blog Entries
    15

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

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

    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-m4...mpeg-on-linux/

    Here is another that uses faad, flac and lame;
    https://github.com/jpwenzel/audio2mp3

    --
    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!


  4. #4

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

    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


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







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




    hth
    qu1nn
    Pentium D 820, 2.80GHz, Intel D945PSN ATX, PowerColor Radeon HD7870, Geil DDR2, (1GB x 2) Dual Channel 667MHz Suse 13.2, KDE
    Haswell i4771, 3.5GHz, Asus Z87-WS ATX, Club3d R9 280X RoyalQueen, Corsair 8GBx2, Corsair AX860 PS, openSuse 13.1, KDE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •