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

Thread: Converting Many Files...

  1. #1
    Join Date
    Mar 2008
    Location
    Tampa, Fl
    Beans
    270
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Converting Many Files...

    I have a very large library of archived radio podcasts that I'd like to convert to one file for each day. Currently I have four 15-20MB files for each show. Is there a way to convert/join them so that I only have 1 file per show?

    Thanks
    Those Who Sacrifice Liberty For Security Deserve Neither.
    "..What kind of government did you give us?
    A republic, if you're strong enough to keep it.."
    Benjamin Franklin, 1787

  2. #2
    Join Date
    Apr 2007
    Location
    Morrisville, NY
    Beans
    2,153

    Re: Converting Many Files...

    Yep you can use many different audio tools but a lot of them are just front ends to ffmpeg. Use ffmpeg per this thread on joining files.

  3. #3
    Join Date
    Feb 2009
    Location
    Land of over 15,000 Lakes
    Beans
    122
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Converting Many Files...

    I would try using Audacity, if it can open the file type. Not sure if it is the most appropriate method, though.
    ~Do Not Be Deceived! This is a signature!~
    ~$sudolife: I don't post junk but then again, I don't update it much, either~
    AXE COP IZ DA BOMB

  4. #4
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Converting Many Files...

    Quote Originally Posted by Tews View Post
    I have a very large library of archived radio podcasts that I'd like to convert to one file for each day. Currently I have four 15-20MB files for each show. Is there a way to convert/join them so that I only have 1 file per show?

    Thanks
    What format are these files in? Depending on the format, you may be able to join these files without re-encoding and therefore no generational loss if using lossy formats.

  5. #5
    Join Date
    Mar 2008
    Location
    Tampa, Fl
    Beans
    270
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Converting Many Files...

    All the files are mp3 speech files, so quality is not of a concern. I have tried lame and CAT with no luck. I know that Im making this harder than need be, but im stumped!
    Those Who Sacrifice Liberty For Security Deserve Neither.
    "..What kind of government did you give us?
    A republic, if you're strong enough to keep it.."
    Benjamin Franklin, 1787

  6. #6
    Join Date
    Oct 2007
    Location
    Oregon, USA
    Beans
    1,537

    Re: Converting Many Files...

    How about mp3wrap?

  7. #7
    Join Date
    Feb 2007
    Location
    /dev/random
    Beans
    671
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Converting Many Files...

    Hi,

    I had this same problem a while back. From my notes:

    This site put me onto these tools:

    mp3split - Breaks apart an mp3 file.
    mp3wrap - Combine multiple mp3 files into one. Just what you need

    which are in the Ubuntu repositores. The page I linked to has lots of useful information but to save some wading and reading you use mp3wrap like this:
    Code:
    mp3wrap outputfile.mp3 infileA.mp3 infileB.mp3 infileC.mp3
    where outputfile.mp3 is the file you to create, infileA,mp3 (and the rest) are the files you wish to add together. There can be N (any number) of input files. If by chance your files are sequentially numbered, it is easier to do this:
    Code:
    mp3wrap outfile.mp3 infile*.mp3
    this will take infile01.mp3, infile02.mp3 etc, and stick them in order into outfile.mp3
    Main system: Dell 1420n - C2D T5250, 4GB RAM, 120GB SATA. Ubuntu 8.04.3.
    Assorted VMs (via VBox). Favorites: Fedora, FreeBSD, Solaris.

  8. #8
    Join Date
    Apr 2009
    Location
    Latvia, Riga
    Beans
    273
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Converting Many Files...

    Joining video ( not sure about audio files ) files can be done with Mencoder :
    Code:
    mencoder -oac copy -ovc copy -idx -o output.avi video1.avi video2.avi video3.avi
    So .. I would try :
    Code:
    mencoder -oac copy -idx -o output.mp3 sound1.mp3 sound2.mp3
    Last edited by ActiveFrost; June 11th, 2009 at 09:26 PM.
    - Programmers don't die, they just GOSUB without RETURN
    - Include this in your CONFIG.SYS File: BUGS=OFF
    - Linux is not just a hobby, it's an obsession !

  9. #9
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Converting Many Files...

    Hi Tews,

    Quote Originally Posted by Tews View Post
    I have a very large library of archived radio podcasts that I'd like to convert to one file for each day. Currently I have four 15-20MB files for each show. Is there a way to convert/join them so that I only have 1 file per show?
    The silent partner of the audio world in Linux: SoX can do this and it can be done multiple ways . Concatenation is the default and I tested this with 3 mp3 files:

    Code:
    andrew@skamandros~/Desktop$ sox --show-progress file_1.mp3 file_2.mp3 file_3.mp3 merged.mp3
    
    Input File     : 'file_1.mp3'
    Channels       : 2
    Sample Rate    : 44100
    Precision      : 16-bit
    Duration       : 00:02:48.65 = 7437289 samples = 12648.5 CDDA sectors
    Sample Encoding: MPEG audio (layer I, II or III)
    Comments       : 
    Title=Is This What Everybody Wants
    Artist=Cliff Martinez
    Album=Solaris
    Tracknumber=1
    Year=2002
    Genre=12
    
    In:99.2% 00:02:47.37 [00:00:01.28] Out:7.38M [      |      ] Hd:5.6 Clip:0    
    Input File     : 'file_2.mp3'
    Channels       : 2
    Sample Rate    : 44100
    Precision      : 16-bit
    Duration       : 00:02:52.64 = 7613556 samples = 12948.2 CDDA sectors
    Sample Encoding: MPEG audio (layer I, II or III)
    Comments       : 
    Title=First Sleep
    Artist=Cliff Martinez
    Album=Solaris
    Tracknumber=2
    Year=2002
    Genre=12
    
    In:99.6% 00:02:51.92 [00:00:00.72] Out:15.0M [      |      ] Hd:4.7 Clip:0    
    Input File     : 'file_3.mp3'
    Channels       : 2
    Sample Rate    : 44100
    Precision      : 16-bit
    Duration       : 00:01:44.75 = 4619519 samples = 7856.32 CDDA sectors
    Sample Encoding: MPEG audio (layer I, II or III)
    Comments       : 
    Title=Can I Sit Next To You
    Artist=Cliff Martinez
    Album=Solaris
    Tracknumber=3
    Year=2002
    Genre=12
    
    In:100%  00:01:44.77 [00:00:00.00] Out:19.7M [      |      ] Hd:0.5 Clip:0    
    Done.
    With perfect results. Mind you the meta tags were all lost but this would be expected. The magic of SoX comes when you investigate the different methods of joining files and then the different effects that can be applied to the join. Plenty of material there for a long, wet weekend .

    All the best,

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

  10. #10
    Join Date
    Apr 2009
    Beans
    1,012

    Re: Converting Many Files...

    Nice tip.
    How about winff?
    Code:
    sudo aptitude install winff

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
  •