Author Topic: [SOLVED] MP3 files splitting  (Read 865 times)

Offline mahmoodkamal

  • Jr. Member
  • **
  • Posts: 31
[SOLVED] MP3 files splitting
« on: March 03, 2011, 08:14:31 AM »
I have many mp3 files which i want to split based on file size (for example every 5 MB). i have lxsplit but i think it can do one file at a time. Is there a way or software which can split many files in one go?
« Last Edit: March 05, 2011, 09:27:52 PM by mahmoodkamal »

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: MP3 files splitting
« Reply #1 on: March 03, 2011, 08:29:41 AM »
Maybe a small script if there is no splitter which will operate on the contents of a directory ......  can you select a directory with lxsplit?

Offline mahmoodkamal

  • Jr. Member
  • **
  • Posts: 31
Re: MP3 files splitting
« Reply #2 on: March 03, 2011, 09:26:24 AM »
I think no, it takes one file at one time. Here is the syntax:

[mahmood@localhost ~]$ lxsplit
LXSplit v0.2.4 by Richard Stellingwerff, O. Sezer.
Home page: http://lxsplit.sourceforge.net/

Usage: lxsplit [OPTION] [FILE] [SPLITSIZE]

Available options:
 -j : join the files beginning with the given name
 -s : split the given file.  requires a valid size
Splitsize examples: 15M, 100m, 5000k, 30000000b

Examples:
   lxsplit -s hugefile.bin 15M
   lxsplit -j hugefile.bin.001

[mahmood@localhost ~]$

there is one other software, mp3splt, which can split multiple files, but it splits based on timings not size. hence it takes a lot of time.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: MP3 files splitting
« Reply #3 on: March 03, 2011, 10:01:39 AM »
If you open a terminal in the directory which holds the MP3 files (make sure they are copies while testing) this command might work for you ....

for i in *.mp3; do <enter your command here>; done

Your command would be something like this

 lxsplit -s "$i" 5M

So the full command might be

for i in *.mp3; do lxsplit -s "$i" 5M; done

I don't have that package installed so I have not tested the above ...... try it on one or two files first ...

regards

Offline mahmoodkamal

  • Jr. Member
  • **
  • Posts: 31
Re: MP3 files splitting
« Reply #4 on: March 05, 2011, 11:47:15 AM »
 ;D Just19 it worked like a charm.

Thank you very much  :)

You saved me a lot of time

How can I mark this thread as SOLVED?

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: MP3 files splitting
« Reply #5 on: March 05, 2011, 12:18:41 PM »
;D Just19 it worked like a charm.

Thank you very much  :)

You saved me a lot of time

How can I mark this thread as SOLVED?

Glad to know it worked  ;D

"Modify" your first post and then edit the title of that post to show [SOLVED]

regards.