Help - Search - Members - Calendar
Full Version: pcutmp3 tool
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
Pages: 1, 2, 3, 4
cheatz
Ah i got it working all i had to do was double click the jar file not the bat file.

When it splits files it only saves ID3v1 tags. ID3v1 doesn't capture the full filename so i'm left with half a filename even though the information on the cue sheet supplies the full filename.

Is there a fix for this?
SebastianG
QUOTE (cheatz @ Aug 3 2007, 14:57) *
When it splits files it only saves ID3v1 tags. ID3v1 doesn't capture the full filename so i'm left with half a filename even though the information on the cue sheet supplies the full filename.


The problem with pcutmp3 development is that even if it supported all kinds of nice features the userbase would still be very small. Honestly, I'm not a pcutmp3 user myself because I simply don't need it. So, my only concern is its main functionality. However, that doesn't mean that I wouldn't welcome patches. So, if any of you feel the urge to hack some Java code feel free to send patches. The source code of pcutmp3 has always been part of the JAR file.

Cheers!
SG
senab
pcutmp3 with ID3v2 Support

After quite a while since I said I was going to add ID3v2 support, i've finally done it. I've used the Jaudiotagger library, which is really good and licensed under the LGPL.

Changes
  • Added ID3v2 writing support.
  • Changed default naming scheme

Download
I've packaged pcutmp3 in two ways:
  • JAR file. Same as how Sebastian packaged his version and can be used as a direct replacement (source is included). Download.
  • EXE file. I've packaged the JAR using JSmooth to create an executable file. Basically use this version if you're using Windows, it means you can call the exe directly without going through java -jar. Source is not included. Download.
There is a small "problem" with the tag library in that it is very verbose. There's no easy way to make it less verbose but i've done what I can for now. It doesn't affect the end result at all. Also the library has made the program much bigger (40k to ~900k) but I think the increase in file size is worth the functionality.

cool.gif
SebastianG
Nice! Good timing, too because my university homepage doesn't exist anymore.

Thanks for the effort. smile.gif

Cheers,
SG
senab
After my exams finish next week, i'm thinking of going through the code to bring it upto date. At the moment it's written for Java 1.4, i'm also going to refactor it a bit aswell to make it a bit more OO.

Sebastian: What license are you releasing this under?

And if anyone has any ideas for features, let me know wink.gif
jetpower
Hi,
I would like to ask for a feature: chop file into same-length parts.
Example: An audiobook mp3 is 120 minutes long -> chop it to 24 parts, each with 5 minutes of length.
I can do it with 'crop' command already but this way it'll be automatic and much less typing.
mezenga
QUOTE (jetpower @ May 31 2008, 23:50) *
Hi,
I would like to ask for a feature: chop file into same-length parts.

I suppose you want to strip mp3s just like some archives do (7z, rar, ...).
Different from the archive, where you need all the strips, the striped audio parts can be evaluated alone. I donīt think itīs a good idea. This kind of feature would fit better in a GUI (IMO). Anyway, a simple spreadsheet can save you the typing.

A more powerful feature is the acceptance of .cue files already implemented.

Edit: wrong information rectified.
jaybeee
QUOTE (SebastianG @ May 31 2008, 10:27) *
Nice! Good timing, too because my university homepage doesn't exist anymore.

Thanks for the effort. smile.gif

Cheers,
SG
If anyone still wants Sebi's last version of pcutmp3, then you can grab it from here: pcutmp3 v0.95b
dubpistol
QUOTE (senab @ May 31 2008, 12:35) *
And if anyone has any ideas for features, let me know wink.gif

Yes, this one:
QUOTE (SebastianG @ Jul 18 2005, 13:05) *
[...] It should be possible to rejoin files losslessly (not yet implemented). [...]
jetpower
QUOTE (mezenga @ Jun 1 2008, 16:48) *
QUOTE (jetpower @ May 31 2008, 23:50) *
Hi,
I would like to ask for a feature: chop file into same-length parts.

I suppose you want to strip mp3s just like some archives do (7z, rar, ...).
Different from the archive, where you need all the strips, the striped audio parts can be evaluated alone. I donīt think itīs a good idea. This kind of feature would fit better in a GUI (IMO). Anyway, a simple spreadsheet can save you the typing.

A more powerful feature is the acceptance of .cue files already implemented.

Edit: wrong information rectified.

Well the idea is certainly good for me. I'll explain.
Its for my phone. My phone plays mp3 but is very slow at seeking in audio files. Also one cannot jump to a certain point in long audio (for example to start where you left it the other day) and you have to fast forward which takes time, is annoying and drains the battery. With, say 5 minute file the seeking is fast and luckily phone jumps to next audio chunk automatically (when they are in order), so I can listen and relax:)

Can you give an example of this spreadsheet you mentioned?
What I want is not a hard feature to implement, I think and I would happy if anyone could code it in.
jaybeee
QUOTE (Bimbo Frogger @ Jun 1 2008, 18:06) *
QUOTE (senab @ May 31 2008, 12:35) *
And if anyone has any ideas for features, let me know wink.gif

Yes, this one:
QUOTE (SebastianG @ Jul 18 2005, 13:05) *
[...] It should be possible to rejoin files losslessly (not yet implemented). [...]

I'm almost certain that this is with files only previously cut using pcutmp3. But still, a potentially useful feature, altho tbh I can't when I'd use it.
senab
QUOTE (SebastianG @ Jul 18 2005, 13:05) *
[...] It should be possible to rejoin files losslessly (not yet implemented). [...]
Sorry but this is one I can't do, I don't know the file format of MP3 so it's a dead start.


Jetpower I quite like you're idea, i've had to do similar in the past because I haven't been able to find a cue. I'm thinking of implementing it with:
CODE
--split-every s

Where s is the size of tracks in seconds (except the last). I've had a look at the code and i'm going to do it over the next few days. I've got quite a bit of refactoring to do to make it a bit easier to do though.
jetpower
QUOTE
I'm thinking of implementing it with:
CODE
--split-every s

Thanks Senab. I like this command, its simple and clear. But you may also consider permitting here the full time format as in 'crop' command.

QUOTE
Where s is the size of tracks in seconds (except the last).

This got me thinking what to do in extreme cases where the last part is going to be very short. it's not very important for me but there could be some tolerance (couple seconds maybe) before writing yet another part.
mezenga
QUOTE (jetpower @ Jun 1 2008, 09:37) *
Well the idea is certainly good for me.
cool.gif
QUOTE (jetpower @ Jun 1 2008, 09:37) *
Can you give an example of this spreadsheet you mentioned?

CODE
;;file;x;.mp3;;;
;;total time (s);150;;splitting factor;=D2/D3;=G2-INT(G2)
;;splitting length (s);60;;;;

;;splitting result;=INT(G2);pieces of;=D3;s;
;;;=SE(H2>0,1,0);pieces of;=D3*H2;s;

Copy the following lines to a batch file:;;Auxiliary math:;;;;;

=CONCATENAR("@java -jar pcutmp3 ",D$1,E$1," --crop t:",C10,"-",D10," --out ",D$1,"-p",E10);;0;=SE(D2<D3,D2,D3*E10);1;;;
=SE(F11=1,"",CONCATENAR("@java -jar pcutmp3 ",D$1,E$1," --crop t:",C11,"-",D11," --out ",D$1,"-p",E11));;=SE(F11=1,"",D10+1);=SE(F11=1,"",SE(E10=D$5,D10+F$6,D$3*E11));2;=SE(E10>=D$5+D$6,1,0);;
=SE(F12=1,"",CONCATENAR("@java -jar pcutmp3 ",D$1,E$1," --crop t:",C12,"-",D12," --out ",D$1,"-p",E12));;=SE(F12=1,"",D11+1);=SE(F12=1,"",SE(E11=D$5,D11+F$6,D$3*E12));3;=SE(E11>=D$5+D$6,1,0);;
=SE(F13=1,"",CONCATENAR("@java -jar pcutmp3 ",D$1,E$1," --crop t:",C13,"-",D13," --out ",D$1,"-p",E13));;=SE(F13=1,"",D12+1);=SE(F13=1,"",SE(E12=D$5,D12+F$6,D$3*E13));4;=SE(E12>=D$5+D$6,1,0);;
1) Paste this text in notepad and save with ".csv" extension.
2) Open in MS Excel and: a) subst "," with ";" b) fix the size of columns A and C
3) Play smile.gif
4) Remember that it is totally untested. So, be kind when complaining that it doesnīt work wink.gif

QUOTE (jetpower @ Jun 1 2008, 09:37) *
What I want is not a hard feature to implement, I think and I would happy if anyone could code it in.
Again, pcutmp3 GUI would be a better place for this feature (IMO).
jetpower
CODE
;;file;x;.mp3;;;
;;total time (s);150;;splitting factor;=D2/D3;=G2-INT(G2)
;;splitting length (s);60;;;;

;;splitting result;=INT(G2);pieces of;=D3;s;
;;;=SE(H2>0,1,0);pieces of;=D3*H2;s;

Copy the following lines to a batch file:;;Auxiliary math:;;;;;

=CONCATENAR("@java -jar pcutmp3 ",D$1,E$1," --crop t:",C10,"-",D10," --out ",D$1,"-p",E10);;0;=SE(D2<D3,D2,D3*E10);1;;;
=SE(F11=1,"",CONCATENAR("@java -jar pcutmp3 ",D$1,E$1," --crop t:",C11,"-",D11," --out ",D$1,"-p",E11));;=SE(F11=1,"",D10+1);=SE(F11=1,"",SE(E10=D$5,D10+F$6,D$3*E11));2;=SE(E10>=D$5+D$6,1,0);;
=SE(F12=1,"",CONCATENAR("@java -jar pcutmp3 ",D$1,E$1," --crop t:",C12,"-",D12," --out ",D$1,"-p",E12));;=SE(F12=1,"",D11+1);=SE(F12=1,"",SE(E11=D$5,D11+F$6,D$3*E12));3;=SE(E11>=D$5+D$6,1,0);;
=SE(F13=1,"",CONCATENAR("@java -jar pcutmp3 ",D$1,E$1," --crop t:",C13,"-",D13," --out ",D$1,"-p",E13));;=SE(F13=1,"",D12+1);=SE(F13=1,"",SE(E12=D$5,D12+F$6,D$3*E13));4;=SE(E12>=D$5+D$6,1,0);;

wow, very nice, thanks. I managed to get it working - yet another surprise thing Excel can do. You might try not to use Portuguese(?) commands next time though, struggled a bit with these:).


QUOTE (jetpower @ Jun 1 2008, 09:37) *
What I want is not a hard feature to implement, I think and I would happy if anyone could code it in.
QUOTE
Again, pcutmp3 GUI would be a better place for this feature (IMO).

This spreadsheet works nicely but I still prefer to have this sort of functionality integrated (whether in GUI or cmdline). Available MP3 splitter programs include also splitting by size (kb) and some even have silence detection (for e.g. audiobook chapters). Combining best possible mp3 cutting with these features (and nice GUI) would make the ultimate splitter:)
senab
QUOTE (mezenga @ Jun 3 2008, 05:18) *
Again, pcutmp3 GUI would be a better place for this feature (IMO).


Why? The GUI should do nothing more than call commands on the program, anything other than simple logic should be in the program. Lookup partioning and layering in Software Engineering.

How is the GUI supposed to know how long the MP3 is? Without that piece of information your solution will not work as it won't know when to stop adding crop commands.
SebastianG
QUOTE (senab @ May 31 2008, 12:35) *
What license are you releasing this under?

Let's say BSD. smile.gif

Regarding the joining of files: This only applies to files which have been previously cut by pcutmp3 where the end of one file is exactly the start of the following and so on. I didn't feel like implementing it because of its very rare usecases.

Cheers,
SG
mezenga
QUOTE (jetpower @ Jun 3 2008, 04:34) *
wow, very nice, thanks. I managed to get it working - yet another surprise thing Excel can do. You might try not to use Portuguese(?) commands next time though, struggled a bit with these:).
Sorry, I forgot this detail... Glad you made it work.
QUOTE (senab @ Jun 3 2008, 05:25) *
Why? The GUI should do nothing more than call commands on the program, anything other than simple logic should be in the program. Lookup partioning and layering in Software Engineering.
I just thought that getting some information about the mp3 file and doing the crop math would fit in the "simple logic" category you mentioned. My point is that pcutmp3 already has the basic commands and that the GUI would use these existent commands to provide more options.
QUOTE (senab @ Jun 3 2008, 05:25) *
How is the GUI supposed to know how long the MP3 is? Without that piece of information your solution will not work as it won't know when to stop adding crop commands.
Well, if such a function (getting some information about the mp3) represents too much code redundancy between the GUI and the application your approach is better. Otherwise mine may worth.
Peddy
QUOTE (senab @ May 30 2008, 14:25) *
pcutmp3 with ID3v2 Support

After quite a while since I said I was going to add ID3v2 support, i've finally done it. I've used the Jaudiotagger library, which is really good and licensed under the LGPL.

Changes
  • Added ID3v2 writing support.
  • Changed default naming scheme
Download
I've packaged pcutmp3 in two ways:
  • JAR file. Same as how Sebastian packaged his version and can be used as a direct replacement (source is included). Download.
  • EXE file. I've packaged the JAR using JSmooth to create an executable file. Basically use this version if you're using Windows, it means you can call the exe directly without going through java -jar. Source is not included. Download.
There is a small "problem" with the tag library in that it is very verbose. There's no easy way to make it less verbose but i've done what I can for now. It doesn't affect the end result at all. Also the library has made the program much bigger (40k to ~900k) but I think the increase in file size is worth the functionality.

cool.gif


Doesn't cut properly in Linux, it creates a 200byte file (depending on the tag size) with the contents at the bottom of this post. I've used multiple Linuxes, same problem. Could you PLEASE fix this? Here's a little snippet of a failed cut:

CODE
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.ID3v24Tag write
INFO: Writing tag to file
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.ID3v24Frame write
INFO: Writing frame to file:TRCK
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody write
INFO: Writing frame body forTRCK:Est Size:0
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody write
INFO: Written frame body forTRCK:Real Size:3
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.ID3v24Frame write
INFO: Writing frame to file:TIT2
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody write
INFO: Writing frame body forTIT2:Est Size:0
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody write
INFO: Written frame body forTIT2:Real Size:28
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.ID3v24Frame write
INFO: Writing frame to file:TPE1
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody write
INFO: Writing frame body forTPE1:Est Size:0
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody write
INFO: Written frame body forTPE1:Real Size:7
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.ID3v24Frame write
INFO: Writing frame to file:TALB
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody write
INFO: Writing frame body forTALB:Est Size:0
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody write
INFO: Written frame body forTALB:Real Size:36
16/11/2008 5:22:43 PM org.jaudiotagger.tag.id3.ID3v1Tag write
INFO: Saving file


And here's what's created.

CODE
$cat 02\ -\ Tomorrow\ Never\ Comes.mp3
ID3MTRCK2TIT2Tomorrow Never ComesTPE1ArnejTALB$A State of Trance 377 [06-11-2008] TAGTomorrow Never ComesArnejA State of Trance 377 [06-11-2�


Thanks smile.gif
senab
@Peddy: I'm going to look at this, this week smile.gif
FigBug
QUOTE (senab @ Nov 22 2008, 15:08) *
@Peddy: I'm going to look at this, this week smile.gif


Is it possible to compile the latest version of pcutmp3 with java 1.5? I tried, but got a bunch of errors. I'm guess ing java 1.6 features are used.

My idea was to write a gui for pcutmp3 for the mac. However, the mac only has java 1.6 on 64-bit intel macs. And that would be very limiting to my user base.

I think 0.95b was java 1.5. How much has changed since then?
senab
PCutMP3 0.97

Right, after the mess that was my last version of PCutMP3, here is a much nicer packaged version with ID3v2 support. It now uses a different ID3 library called JID3. Although the library hasn't been updated in a while, I chose it on the basis that it works, it's quick and fairly simply written unlike the previously used library.

Download
pcutmp3.jar
jid3.jar

By default jid3.jar must be in the same directory as pcutmp3.jar, although you can change that via the classpath. All the source is included in the JARs.

Extra points
I have included an patch in JID3 that fixed the UTF-16 support. I've also made UTF-16 the default.


@Peddy: I've tested this on various Linux machines and works fine, although I didn't have any problems with the previous version. Let me know if this doesn't work.

@FigBug: PCutMP3 is actually written against Java 1.4. The reason you got all the "errors" (they're actually warnings) is because you must be compiling with 1.5+. As the code was written for 1.4 it makes no use of Generics which is why the warning comes up. Doesn't mean there's anything wrong though.

I may update the code to bring it to 1.5 soon, and also do a bit of cleanup of the code. Off the top of my head I'd start making use of Generics, and get rid of using Vector (use ArrayList instead).
FigBug
QUOTE (senab @ Dec 4 2008, 13:57) *
[size=3]@FigBug: PCutMP3 is actually written against Java 1.4. The reason you got all the "errors" (they're actually warnings) is because you must be compiling with 1.5+. As the code was written for 1.4 it makes no use of Generics which is why the warning comes up. Doesn't mean there's anything wrong though.


Bizarre. It works now. The last version I downloaded gave me the following errors when I tried to run it:
CODE
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)


Maybe something in the ID3 stuff didn't like Java 1.5?

Anyway, I'm glad I checked this thread again, because I was just about to write code to check the java version and warn the user to upgrade.

Thanks!
FigBug
I just noticed that when using a cue file to cut the mp3 the track number is no longer set in the ID3 tag. I seem to remember this working in the last version.
FigBug
Ok, my mac gui is done. It requires OS X 10.4
It is simple, all it does is take a mp3 and cut and cuts it up. But it saves time in that you don't have to deal with the console.

Enjoy:
http://rabien.com/software/CueCut.dmg
FunkyBrewster
Hi,
I'm using pcutmp3 v0.97 with IDv2 tag support and I'm having the following issues.
When I use it from the command prompt, the track numbers are not put in the cutted mp3 files' tags (other tag information is OK). There's no parameter option for this listed.
When I use the gui (pcutmp3gui-0.3.jar), the track numbers are included in the tags, but the filenames don't show up as "1. Artist - Trackname" which is the default for the command line. They only come out as "VA - Compilation Name-01", "VA - Compilation Name-02", etc..
It's weird that the track numbers aren't put in the tags when run from the command line but are from the GUI. The GUI is great, but is there a way to tell it name the output files using the default naming scheme ("%n. %p - %t")?

Thanks a lot to everyone working on this tool. I've tried several different programs and this is the only one that actually works properly.
senab
QUOTE (FunkyBrewster @ Dec 15 2008, 07:50) *
I'm using pcutmp3 v0.97 with IDv2 tag support and I'm having the following issues. When I use it from the command prompt, the track numbers are not put in the cutted mp3 files' tags (other tag information is OK). There's no parameter option for this
This is my fault, I forgot to add the track number tag method. This is fixed and will be up soon. I have some free time this week so want to do some other changes aswell smile.gif

QUOTE (FunkyBrewster @ Dec 15 2008, 07:50) *
When I use the gui (pcutmp3gui-0.3.jar), the track numbers are included in the tags, but the filenames don't show up as "1. Artist - Trackname" which is the default for the command line. They only come out as "VA - Compilation Name-01", "VA - Compilation Name-02", etc..
I have no idea about the GUI, but the program is that simple I use shell scripts/batch files.

I'm guessing you're on Windows so a simple batch file containing:
CODE
java -jar "path to jar" --cue %1

Just drag and drop your cue file onto the batch file.
FunkyBrewster
QUOTE (senab @ Dec 15 2008, 05:32) *
This is my fault, I forgot to add the track number tag method. This is fixed and will be up soon. I have some free time this week so want to do some other changes aswell smile.gif

Cool, that's nice that it wasn't something I was doing wrong. cool.gif

QUOTE
I have no idea about the GUI, but the program is that simple I use shell scripts/batch files.

I've been using the GUI and a batch file, depending on whether it's easier to rename the files or edit the tag info. The GUI is nice, just too bad you can't specify command line switches manually (esp. set the output filename format).
alexcavaco
Hi!

Senab, how about adding this to an open-source repository, like for example, SourceForge?
It would as least be easier to know what the latest version is.

Any news on the track number tag method implementation?

Thanks,
Alexandre
Ryo94
Just a couple of issues that I found in pcutmp3:

* Issue at time to deal with cbr files without Xing/Lame tag
- pcutmp3 creates the Xing/Lame tag with default and unreal info. Would be great if pcutmp3 could just avoid the creation of the Xing/Lame tag when deals with input cbr files without these info in the first frame.

* Isue when cut vbr files
- The "music crc" is not recalculated in output files, as result, the 2nd crc in the Lame tag (the tag crc itself) is calculated wrongly.

I'm using pcutmp3 0.95b + GUI 0.3, JRE 1.6 under WinXP SP3
Ryo94
Does the following frame (the second one on each ouput file) have any particular function in the files?



If not and it works just like a "sign", wouldn't be better to leave a comment on the ID3 tag instead add an additional frame? Some programs could find some problems at time to deal with this frame, for example Vbrfix can't work on vbr files created by pcutmp3 for this reason.

I would like to suggest drag&drop support for the GUI.

Thanks for your work, kind regards.
SebastianG
QUOTE (Ryo94 @ Jan 11 2009, 03:10) *
Does the following frame (the second one on each ouput file) have any particular function in the files?


Yes, it does.
  • Most importantly it carries bit reservoir data for the following frame (the stuff that follows the 'x's)
  • It also carries a 10byte "pcut" header. The 6 bytes that follow the pcut marker is an 48bit number stored in big endian byte order that refers to the track's starting time in samples in reference to the original mp3.

The 'x's are just padding that separates the pcut header from the bitreservoir data.

You may also have noticed that the LAME's CRC checksum is the same over all tracks. Together with the 48bit time codes it is theoretically possible to autmoatically identify tracks from the same original MP3 and join them in the correct order.

QUOTE (Ryo94 @ Jan 11 2009, 03:10) *
Some programs could find some problems at time to deal with this frame, for example Vbrfix can't work on vbr files created by pcutmp3 for this reason.

I doubt that this it to blame on pcutmp3. The 2nd frame is -- like the first one -- a 100% valid MP3 frame which is intended to be decoded to silence. Its presence is required because the following frame requires bits from the bit reservoir which would otherwise be missing. It's true that early versions of pcutmp3 produced bogus VBR seek tables. So, if you want to fix this try another tool. If you have the original MP3 you might want to try pcutmp3 again. The VBR seek table bug has been fixed for quite some time.

Cheers!
SG
Ryo94
Thanks a lot for reply SG,

If the addition of the 2nd frame and the keep of the music crc from the original track are there in part for an eventual rejoin of the tracks, would pcutmp3 offer this join function in a near future?
SebastianG
QUOTE (Ryo94 @ Jan 11 2009, 18:28) *
[...] would pcutmp3 offer this join function in a near future?

Probably not unless somebody else implements it. I don't see it as a big use case.

Cheers!
SG
FunkyBrewster
Just wondering if there's been any progress made on the track number tagging issue when using the command line. Without track numbers to keep them in order, splitting the file doesn't really do any good. I tried using Foobar to autonumber the output tracks as a workaround, but iTunes can't deal with the resulting tags for some reason and since I'm trying to get the music onto my iPod that option is out.

The tags come out fine when I use the GUI, which doesn't make sense unless the GUI's jar file has the pcut code built into it. The problem with just using the GUI is that then the file names don't come out right (no artist or track info) and I can't change any other parameters either.

By the way, here's the my new batch file I hope to use when the track number problem is fixed. It'll put the files into a new subdirectory for you.

CODE
@echo off
title pcutmp3
cd /d "%~dp1"
md cutted
cd /d "C:\Unregistered Programs\pcutmp3"
java -jar pcutmp3.jar --cue %1 --dir "%~dp1\cutted\
pause
exit
alexcavaco
QUOTE (FunkyBrewster @ Jan 20 2009, 09:55) *
Just wondering if there's been any progress made on the track number tagging issue when using the command line. Without track numbers to keep them in order, splitting the file doesn't really do any good. I tried using Foobar to autonumber the output tracks as a workaround, but iTunes can't deal with the resulting tags for some reason and since I'm trying to get the music onto my iPod that option is out.

The tags come out fine when I use the GUI, which doesn't make sense unless the GUI's jar file has the pcut code built into it. The problem with just using the GUI is that then the file names don't come out right (no artist or track info) and I can't change any other parameters either.

By the way, here's the my new batch file I hope to use when the track number problem is fixed. It'll put the files into a new subdirectory for you.

CODE
@echo off
title pcutmp3
cd /d "%~dp1"
md cutted
cd /d "C:\Unregistered Programs\pcutmp3"
java -jar pcutmp3.jar --cue %1 --dir "%~dp1\cutted\
pause
exit


Hi!

I've fixed the track number tag issue and also added an option (using --m3u) to generate a simple playlist of the output files.

I changed it to version 0.98 and you can get it here:
http://www.kreativenergy.org/downloads/cod...cutmp3_0.98.zip


I'm also making a GUI, it's already working but I still want to add some features to it before releasing it. Maybe next month, as I currently don't have the time right now.

Cheers,
Alexandre
senab
After messing around with pcutmp3 for a while, I thought it would be best if I got some actual code hosting for it.

It is now uploaded onto Google Code: http://code.google.com/p/pcutmp3/

I have uploaded 0.97.1 for now, which is 0.97 with a code fix to add the track numbers to the files, and also the ability to automatically create directories when using --dir. There's a couple of things I'm going to do with pcutmp3 but time isn't permitting me at the moment.

@alexcavaco: Feel free to add your --m3u support to the SVN. PM me your google account for commit access.
FunkyBrewster
Great! That's working much better now. With 0.98 I get a "file not found" error from java when using the --m3u option. There seems to be an extra \ added to the path of the source mp3 file for some reason. But the tagging is working and that's the main thing.
SebastianG
QUOTE (senab @ Jan 22 2009, 21:33) *
After messing around with pcutmp3 for a while, I thought it would be best if I got some actual code hosting for it.
It is now uploaded onto Google Code: http://code.google.com/p/pcutmp3/

Nice! Good idea! I should have thought of that before. smile.gif

Cheers!
SG
alexcavaco
QUOTE (FunkyBrewster @ Jan 27 2009, 08:42) *
Great! That's working much better now. With 0.98 I get a "file not found" error from java when using the --m3u option. There seems to be an extra \ added to the path of the source mp3 file for some reason. But the tagging is working and that's the main thing.


Hello, I don't have the code here right now, but I'll into it soon.

By the way, instead of having different versions around, I'll ask Senab for access to Google Code and integrate the code into his version.
Raph
Hi everyone, first thanks to everyone here for putting all this time in creating this tool - its awesome

We should up the windows and mac gui on the google code page what do you guys think ? Maybe we could start using their bug tracking tool too so i could start punching some bugs/feature requests in

Keep up the good work
senab
QUOTE (Raph @ Feb 16 2009, 14:49) *
We should up the windows and mac gui on the google code page what do you guys think ? Maybe we could start using their bug tracking tool too so i could start punching some bugs/feature requests in


Unfortunately I can't add the Java GUI to the repository as it's not clear what license it's released under. Regarding the OSX GUI, I don't use OSX so can't develop it, therefore with all this in mind, I will probably create a new Java GUI soon. As it's Java it will be cross platform, etc. First of all I need to get pcutmp3 in the vague shape of a library, which will make it easier to interface with then. This of course takes time, and won't really show any results to the user.

I'm hoping to have this done soon though! cool.gif

When this refactoring is done, and the GUI is up in a usable way. I will release V1 (timescale: 1-2 months).
senab
Just so people know, you can keep track of what is being down on pcutmp3 via the Update Feed on Google Code. I try to keep my commit messages short but you still get the idea. smile.gif

http://code.google.com/p/pcutmp3/updates/list

I've managed to get a lot of the refactoring done tonight, something which I thought would take a lot longer. It's now more Object Oriented, which has also allowed me to optimize the code a bit and remove some unneeded calls. Hopefully pcutmp3 will be a much more maintainable state by this weekend. I will also be creating an API for pcutmp3 which will mean other Java programs can use pcutmp3 directly, this will also help with GUI and CLI development.
Mar2zz
Is it possible to cut radiostreams to a local dir (when they are different tracks like last.fm radio?) I thought I read this somewhere, but can't find it.
Steve Forte Rio
Does this programm needs the input mp3 file only wirh ACCURATE Length tag? Or only Lame MP3?
I can't split mp3 with MP3 CBR (like foobar shows) codec
lvqcl
QUOTE (Steve Forte Rio @ Feb 28 2009, 17:20) *
Does this programm needs the input mp3 file only wirh ACCURATE Length tag? Or only Lame MP3?
I can't split mp3 with MP3 CBR (like foobar shows) codec

What version do you use? I tested 0.95b (don't have newer versions) and it works fine.
Steve Forte Rio
I use GUI v0.3 and tried to use commandline http://pcutmp3.googlecode.com/files/pcutmp3.jar

This is from gui:

Loaded CUE sheet "ASOT.cue"
Loaded MP3 file "ASOT.mp3"
scanning "C:\\ASOT.mp3" ...
first frame header = MPEG1 Layer3 192kbps 44100Hz J-Stereo
no Xing/Info/LAME tag present
bitrate = 192 kbps (CBR)
accurate length = no
321691392 samples (is NOT a multiple of 588)
writing "C:\ASOT-01.mp3" ...

-it writes file with 627 bites size
2E7AH
i tried two files with missing %__mp3_accurate_length%
one which reports error in foobar about it's length and the other which is ok
also one of them wasn't LAME encoded
in both cases pcutmp3 output, resulted in correct mp3 cuts

so your problem is something else
can you use foo_utils to correct the file and see if you can get output?

[edit]
QUOTE (Steve Forte Rio @ Feb 28 2009, 17:26) *
scanning "C:\\ASOT.mp3" ...

you may want context menu command with foo_run:

cmd /k "java.exe -jar "<insert path to pcutmp3.jar>pcutmp3.jar" --cue "$replace(%path%,%filename_ext%,)%filename%.cue" --dir "$replace(%path%,'\'%filename_ext%,)" "$replace(%path%,%filename_ext%,)%filename%.mp3""
Steve Forte Rio
QUOTE (2E7AH @ Feb 28 2009, 15:21) *
i tried two files with missing %__mp3_accurate_length%
one which reports error in foobar about it's length and the other which is ok
also one of them wasn't LAME encoded
in both cases pcutmp3 output, resulted in correct mp3 cuts

so your problem is something else
can you use foo_utils to correct the file and see if you can get output?

[edit]
QUOTE (Steve Forte Rio @ Feb 28 2009, 17:26) *
scanning "C:\\ASOT.mp3" ...

you may want context menu command with foo_run:

cmd /k "java.exe -jar "<insert path to pcutmp3.jar>pcutmp3.jar" --cue "$replace(%path%,%filename_ext%,)%filename%.cue" --dir "$replace(%path%,'\'%filename_ext%,)" "$replace(%path%,%filename_ext%,)%filename%.mp3""


I checked file using foobar... is showed that reported duration is wrong. Then I select Fix VBR Mp3 Header and now foobar reports no problems. But I have same error when trying to split this mp3 using pcutmp3 gui or pcutmp3.jar + bat file
2E7AH
try suggested command for foo_run
is seems to me that the problem is in your command line
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.