Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: how to split mp3 files

  1. #1
    Join Date
    Mar 2009
    Location
    UK
    Beans
    202
    Distro
    Kubuntu

    how to split mp3 files

    Can anyone give me an example?

    I want to split audio files at cirtain point in time.

    Thanks

  2. #2
    Join Date
    Jan 2009
    Location
    Flanders
    Beans
    Hidden!

    Re: how to split mp3 files

    Audacity can do the trick.

    Code:
    sudo aptitude install audacity
    audacity
    You do need the mp3 codecs to edit mp3's. If you can play mp3, you have the codecs.

  3. #3
    Join Date
    Jul 2009
    Beans
    380

    Re: how to split mp3 files

    Quote Originally Posted by bill-lancaster View Post
    I want to split audio files at cirtain point in time.
    split an audio file using ffmpeg

    About Cinelerra

  4. #4
    Join Date
    Mar 2009
    Location
    UK
    Beans
    202
    Distro
    Kubuntu

    Re: how to split mp3 files

    Thanks for the suggestion.

    I'm looking for a command line to do the job

    Bill Lancaster

  5. #5
    Join Date
    Mar 2009
    Location
    UK
    Beans
    202
    Distro
    Kubuntu

    Re:using ffmpeg

    OK, ffmpeg looks interesting, here is what I got


    bill@ubuntu:~$ ffmpeg -f mp3 -i /home/bill/classic.mp3 -t 00:10:00 -ss 00:20:00 - o /home/bill/save.mp3

    FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
    libavutil 49.15. 0 / 49.15. 0
    libavcodec 52.20. 1 / 52.20. 1
    libavformat 52.31. 0 / 52.31. 0
    libavdevice 52. 1. 0 / 52. 1. 0
    libavfilter 0. 4. 0 / 0. 4. 0
    libswscale 0. 7. 1 / 0. 7. 1
    libpostproc 51. 2. 0 / 51. 2. 0
    built on Mar 4 2010 12:35:30, gcc: 4.4.3
    Input #0, mp3, from '/home/bill/classic.mp3':
    Duration: 02:52:16.05, start: 0.000000, bitrate: 127 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
    Unable to find a suitable output format for 'pipe:'

    Any ideas?

    Bill Lancaster

  6. #6
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to split mp3 files

    This command should be OK:-
    Code:
    ffmpeg -i /home/bill/classic.mp3 -t 00:10:00 -ss 00:20:00 -acodec copy /home/bill/save.mp3
    Edit
    The above command should start 20 minutes in with 10 minutes duration.
    Last edited by ron999; October 5th, 2010 at 05:51 PM. Reason: Explanation about times.

  7. #7
    Join Date
    Mar 2009
    Location
    UK
    Beans
    202
    Distro
    Kubuntu

    Re: how to split mp3 files

    Ron999 - it works a treat.
    Many thanks

  8. #8
    Join Date
    Mar 2009
    Location
    UK
    Beans
    202
    Distro
    Kubuntu

    Re: how to split mp3 files

    I spoke too soon!
    The split file has no sound.
    Here is what happened:-

    FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
    libavutil 49.15. 0 / 49.15. 0
    libavcodec 52.20. 1 / 52.20. 1
    libavformat 52.31. 0 / 52.31. 0
    libavdevice 52. 1. 0 / 52. 1. 0
    libavfilter 0. 4. 0 / 0. 4. 0
    libswscale 0. 7. 1 / 0. 7. 1
    libpostproc 51. 2. 0 / 51. 2. 0
    built on Mar 4 2010 12:35:30, gcc: 4.4.3
    Input #0, mp3, from '/home/bill/classic.mp3':
    Duration: 02:52:16.05, start: 0.000000, bitrate: 127 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
    Output #0, mp3, to '/home/bill/save.mp3':
    Stream #0.0: Audio: 0x0000, 44100 Hz, stereo, s16, 128 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop encoding
    size= 0kB time=1200.03 bitrate= 0.0kbits/s
    video:0kB audio:0kB global headers:0kB muxing overhead 7.673861%

    Any ideas?

  9. #9
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: how to split mp3 files

    Hi
    Make sure that the encoders are enabled.
    Use method B or C in the tutorial.
    HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoders in FFmpeg

    Here:- http://ubuntuforums.org/showthread.php?t=1117283

  10. #10
    Join Date
    Dec 2006
    Beans
    7,229

    Re: how to split mp3 files

    Hi Bill,

    Have you had a look at mp3splt?

    Andrew
    You think that's air you're breathing now?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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