MP3 Splitter

Any ideas about how to improve MediaMonkey for Windows 4? Let us know!

Moderator: Gurus

Robgwilliams

MP3 Splitter

Post by Robgwilliams »

Hi,
Is there any chance we can put an MP3 Splitter into Media Monkey.
I am a DJ and record all my mixes onto my computer.
It would be really helpful if there was Mp3 Splitter.
Thanks
Rob
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

MP3 splitting has been requested before, but is very low on the priority list. The reason is that there are very good specialised programs for that, which can be used along with MediaMonkey.

You can start an external mp3-splitter from within MediaMonkey, for the selected song(s).
If you then let MM's "file monitor" monitor the output folder for your splitted files, they will automaticly be added to the MM library.

Cheers
Steegy
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
mjs93
Posts: 158
Joined: Fri Jun 17, 2005 3:28 am

Post by mjs93 »

I wholeheartedly agree with this request, it would be great to have an internal splitter.
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

What's the mp3 splitter program that you currently use?
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

If you found an MP3 Splitter application that could recieve the appropriate command line arguements, a script could be written to interface between MM and this application.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
rmfinch95616.myrealbox.co

Re: MP3 Splitter

Post by rmfinch95616.myrealbox.co »

Robgwilliams wrote:Hi,
Is there any chance we can put an MP3 Splitter into Media Monkey.
I am a DJ and record all my mixes onto my computer.
It would be really helpful if there was Mp3 Splitter.
Thanks
Rob
I'll second this request, and not at a low priority. Sometimes I get large mp3 which really are multiple tracks in one big file; an obvious chore for MM to split apart. Or at least give a clue as to which specialized splitters will work and how to set them up with MM.
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

As suggested by Steegy and Trixmoto above, I suggest we all look for a suitable external mp3 splitter with command line support.
Once it's found, it can easily be used together with MM.

Cheers
Steegy
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

Perhaps this one could be used?
http://mp3splt.sourceforge.net/mp3splt_page/home.php
Supports mp3 and ogg.

/Bex
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

Ahaaaaaaaaaaa!!!

Finally found (back) what I was looking for: mp3DirectCut ( http://www.mpesch3.de/ )

Small & fast (not in Java :D)
It only supports mp3 (all layers, so also mp2).

Install it to folder "C:\Program Files\mp3DirectCut" and use the following Auto-script from within MediaMonkey
(how to install scripts?: http://faq.mediamonkey.com/index.php?ac ... artlang=en )

Mp3Splitter.vbs (for the Scripts\Auto folder):

Code: Select all

Option Explicit

Sub onStartUp 

   Dim CMIArray
   CMIArray = Array(SDB.UI.Menu_Pop_TrackList, SDB.UI.Menu_Pop_NP, SDB.UI.Menu_Pop_Tree)
   
   Dim i, MI
   For i = 0 To UBound(CMIArray)
	  SDB.UI.AddMenuItemSep CMIArray(i), 0, 0
	
	  Set MI = SDB.UI.AddMenuItem(CMIArray(i), 0, 0) 
	  MI.Caption = "Split this mp3"
	  MI.OnClickFunc = "RunSplitter" 
	  MI.UseScript = Script.ScriptPath 
	  MI.IconIndex = 38
   Next

End Sub 

Function RunSplitter(arg) 

  Dim WShell, Result, Command

  Command = """C:\Program Files\mp3DirectCut\mp3DirectCut.exe"" " & SDB.SelectedSongList.Item(0).Path 

  Set WShell = CreateObject("WScript.Shell") 
  Result = WShell.Run(Command, 1, 0)

End Function 
It adds "Cut this mp3" to the track's context menu.

mp3splt is kind of big and slow, but might be the alternative if mp3DirectCut is not good enough. mp3splt gui doesn't seem to take any command line options.

Other program suggestions are welcome.

Cheers
Steegy
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

Splitting audio files seems not to be so straight forward as one can think.
http://www.hydrogenaudio.org/forums/ind ... opic=35654
There are more threads...

I dont know if the program provided in the link can be used.

/Bex
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

Well, I must say mp3DirectCut is very easy to use, if you take a minute or 2.

I just made a cue file and splitted a mp3 file to test.
I also let the program automaticly split a fullcd using the "auto-detect silence" function. It's great, it's split the fullcd mp3 file in the correct places and I could store the splitted tracks that way.

For people who want to split a fullcd mp3 file (that has silence between the songs):
- Right-click the song and click "Split this mp3"
- menu Edit > Silence Detection...
- push the Start button and wait.
- push the close button. your cue points are indicated
-- menu File > Save split (to save the splitted parts in one folder)
-- menu File > Save cue sheet (to save the cue sheet for the fullcd mp3)

For songs_to_split that don't have silences, you'll have to split manually, which is very easy. You can navigate very fast and play to preview the song piece. If you want to create a cue point, just click on the graph place and push the "Cut" button. You can remove the cue point with the "Edit" button.
Already made cue/split points are acessible from the "List" menu, or from the "graphical trackbar" under the graphical sound display.


Anyone saying this is a difficult program:
- menu ? > Manual
- just test it with a test file, using the buttons on the front form (no menu entries are needed directly)
- read the above explanation to use the program very fast

Cheers
Steegy
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
tj_junk
Posts: 71
Joined: Thu Apr 13, 2006 10:10 am

Generic version of Steegy's script...

Post by tj_junk »

The following is a generic version of Steegy's script. It can be easily modified to open a selected file into any external app using MediaMonkey's right-click context menu.

To use:
1) Create a new textfile in the "...\MediaMonkey\Scripts\Auto" folder.
2) Copy the code below into the new textfile.
3) Modify the "myAppPath" and "myMenuOption" constants as desired.
4) Save the new file with your desired VBS filename.
(I chose "RunAppFromContextMenu.vbs".)
5) (Re)Start MediaMonkey.

Code: Select all

'*******************************************************************************
'  RunAppFromContextMenu - 
'     Add a context menu option to open a selected track in an external application.
'
'  To use:
'     1)  Create a new textfile in the "...\MediaMonkey\Scripts\Auto" folder.
'     2)  Copy the code below into the new textfile.
'     3)  Modify the "myAppPath" and "myMenuOption" constants as desired.
'     4)  Save the new file with your desired VBS filename. 
'         (I chose "RunAppFromContextMenu.vbs".)
'     5)  (Re)Start MediaMonkey. 
'
'  Note:  This generic script was created from Steegy's more specific "Mp3Splitter.vbs"
'         (see "http://www.mediamonkey.com/forum/viewtopic.php?p=46830#46830")
'*******************************************************************************
Option Explicit 

Const myAppPath    = "C:\Apps\Music\Edit\Mp3trim\mp3Trim PRO.exe"
Const myMenuOption = "MP3Trim"
'*******************************************************************************

'*******************************************************************************
Sub onStartUp 

   Dim CMIArray 
   CMIArray = Array(SDB.UI.Menu_Pop_TrackList, SDB.UI.Menu_Pop_NP, SDB.UI.Menu_Pop_Tree) 
    
   Dim i, MI 
   For i = 0 To UBound(CMIArray) 
     SDB.UI.AddMenuItemSep CMIArray(i), 0, 0 
    
     Set MI = SDB.UI.AddMenuItem(CMIArray(i), 0, 0) 
     MI.Caption = myMenuOption 
     MI.OnClickFunc = "RunApp" 
     MI.UseScript = Script.ScriptPath 
     MI.IconIndex = 38 
   Next 

End Sub 
'*******************************************************************************

'*******************************************************************************
Function RunApp(arg) 

  Dim WShell, Result, Command 

  Command = Chr(34) & myAppPath & Chr(34) & " " & Chr(34) & SDB.SelectedSongList.Item(0).Path & Chr(34) 

  Set WShell = CreateObject("WScript.Shell") 
  Result = WShell.Run(Command, 1, 0) 

End Function 
'*******************************************************************************
By the way, I highly recommend MP3Trim. It is a very simple, yet highly effective program for editing mp3 files (e.g., removing silence, fade in/out, etc). Check it out at http://www.mptrim.com/.
steve0
Posts: 5
Joined: Thu Mar 20, 2008 2:48 am
Contact:

Post by steve0 »

"put an MP3 Splitter into Media Monkey. "It is a good idea.When could i hear those songs?
Shrikant

Re: MP3 Splitter

Post by Shrikant »

Great! I used the above code to add a "Send to Bluetooth!"
Eyal
Posts: 3116
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

Re: MP3 Splitter

Post by Eyal »

Don't forget this External Tools script: ExternalTools v1.3 [MM2+3], also by Steegy.
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
Post Reply