pcutmp3 tool, properly/perfect cut mp3 |
pcutmp3 tool, properly/perfect cut mp3 |
Jul 18 2005, 12:05
Post
#1
|
|
![]() Group: Developer Posts: 1317 Joined: 20-March 04 From: Göttingen (DE) Member No.: 12875 |
Hi !
I got quite a few PMs about the mp3 splitter (read more here). Because of that and the fact that it seems to be doing what it's supposed to I decided to make the current beta version public. A Java Runtime Environement 1.4 or higher.is needed. You can call the application in the commandline via: java -jar pcutmp3.jar <parameters> (Leave parameters blank to see a help screen) Splitting with a cue sheet is pretty simple. Here's an example: java -jar pcutmp3.jar --cue something.cue something.mp3 WARNING: Your player needs to properly support the LAME tag. If it doesn't you'll hear gaps. I tested it with Foobar 0.8.3 and Foobar 0.9 beta 5. Unfortunately the older one ignores encoder delay values above 1152 in the LAME tag (edit: see post #5 for Foobar 0.8.3). Since pcutmp3 usually creates mp3 files with encoder delays of around 2000 samples it won't work in Foobar 0.8.3. In combination with Foobar 0.9 beta 5 it works like charm. WinAMP + otachan's in_mpg123 + some good output-plug probably also works fine. So, use this app only if it makes sense to use it. The number of players which properly interpret the LAME tag is pretty low !! If your player does you can use pcutmp3 to do sample granular cuts. How it works: This app analyzes the source mp3 file and its Xing/Info/LAME tag and allows cutting it at *any* positions through the use of the LAME tag's encoder_delay/padding fields. It generates for each track you crop out of the large source file a new Xing/Info/LAME tag frame filled appropriately and resolves the problem of missing bitreservoir data via a "silence frame" (holding the missing data) that directly follows the Xing/Info/LAME tag frame. This additional delay (due to this "silence frame") is also compensated via the encoder_delay setting which explains the high values it produces (576...2879). It should be possible to rejoin files losslessly (not yet implemented). Sebi Feedback is appreciated. This post has been edited by SebastianG: May 31 2008, 10:29 |
|
|
|
![]() |
Dec 18 2005, 21:23
Post
#2
|
|
![]() Group: Members Posts: 247 Joined: 4-August 05 From: Birmingham, UK Member No.: 23690 |
There's only one thing that annoys me with this tool....
The fact it makes CBR files VBR. For instance when cutting a 192kbits CBR mp3, the first frame is 128kbits and the rest is 192kbits. This messes up my Rio Karma as for some reason it can't read the MP3 length properly... Other than that, great tool Seb //EDIT... Spelling This post has been edited by senab: Dec 18 2005, 21:33 -------------------- ::.. www.senab.co.uk
|
|
|
|
Dec 19 2005, 18:34
Post
#3
|
|
![]() Group: Developer Posts: 1317 Joined: 20-March 04 From: Göttingen (DE) Member No.: 12875 |
QUOTE (senab @ Dec 18 2005, 09:23 PM) There's only one thing that annoys me with this tool.... The fact it makes CBR files VBR. For instance when cutting a 192kbits CBR mp3, the first frame is 128kbits and the rest is 192kbits. This messes up my Rio Karma as for some reason it can't read the MP3 length properly... I can't test pcutmp3 at the moment, but I think I know what's going on. It's most likely the consequence of both (pcutmp3 and your Karma-mp3-decoder) behaving a bit incompatible. Yes, pcutmp3 currently produces a first audio frame which is usually very small followed by a subset of the original frames. This first frame solely contains some main data filling the bitreservoir for the next frame. But pcutmp3 fills the header frame (imho) appropriately (frame count, size of all audio frames in bytes, "INFO" tag indicating a CBR file. The Karma firmware seems to get the bitrate informations from the first audio frame (when a header frame with a "INFO" tag is present). They could have also just evaluated the frame-count field of the header which won't lead to the problem you are experiencing. A quick hack of pcutmp3 is possible to make most of the cases work with your Karma (making this reservoir filler frame as large as the other ones if possible). My time is currently very limited. This change may take a while. However, the Karma firmware developer team should (imho) think about a better way of determining the bitrate / length (ie using the frame count from the header frame) Sebi This post has been edited by SebastianG: Dec 19 2005, 18:35 |
|
|
|
SebastianG pcutmp3 tool Jul 18 2005, 12:05
Peter Try zipping it, allowed upload file extensions are... Jul 18 2005, 12:11
SebastianG QUOTE (zZzZzZz @ Jul 18 2005, 12:11 PM)Try zi... Jul 18 2005, 12:26
SebastianG 0.91b -> 0.92b:
- fixed seek table generation (... Jul 18 2005, 14:38
SebastianG For those who use Foobar 0.8.3 and want it to be t... Jul 20 2005, 14:06
jaybeee Excellent work SebastianG. I look forward to havi... Jul 20 2005, 14:25

SebastianG QUOTE (jaybeee @ Jul 20 2005, 02:25 PM)(1) Do... Jul 20 2005, 14:39
kode54 QUOTE (SebastianG @ Jul 20 2005, 06:06 AM)Thi... Jul 20 2005, 14:53
SebastianG QUOTE (kode54 @ Jul 20 2005, 02:53 PM)QUOTE (... Jul 20 2005, 16:03
kode54 QUOTE (SebastianG @ Jul 20 2005, 08:03 AM)My ... Jul 23 2005, 16:35
SebastianG QUOTE (kode54 @ Jul 23 2005, 04:35 PM)QUOTE (... Jul 24 2005, 14:16
phwip Thanks for this little program, could prove to be ... Aug 20 2005, 00:07
SebastianG QUOTE (phwip @ Aug 20 2005, 12:07 AM)I've... Aug 20 2005, 11:36
phwip I used LameTag.exe. On the file I tested the foll... Aug 20 2005, 12:05
SebastianG OK. I found the bug. (I'm also trying to set t... Aug 20 2005, 13:07
SebastianG changes (0.92b -> 0.93b)
- fixed lame tag bug ... Aug 21 2005, 13:04
Mr_Rabid_Teddybear Commandline still says v0.92b. Aug 21 2005, 13:38
SebastianG Damn ...
(I havn't correctly updated the symb... Aug 21 2005, 13:53
dignick Are you still working on this sebi?
I've got q... Sep 24 2005, 17:16
The Link QUOTE (dignick @ Sep 24 2005, 05:16 PM)Are yo... Sep 24 2005, 17:24

dignick QUOTE (The Link @ Sep 24 2005, 05:24 PM)QUOTE... Sep 24 2005, 17:50
SebastianG QUOTE (dignick @ Sep 24 2005, 05:16 PM)Are yo... Sep 25 2005, 16:15
jaybeee Available options in v.93b are:
--cue cue-filena... Sep 25 2005, 18:40
SebastianG changed 0.93b -> 0.94b (not heavily tested)
- ... Sep 30 2005, 15:01
Synthetic Soul Very minor point:
CODE--out <sheme> ... Sep 30 2005, 15:33
dignick Thanks sebi. Any plans to add ID3V2? Oct 2 2005, 09:53
SebastianG QUOTE (dignick @ Oct 2 2005, 09:53 AM)Thanks ... Oct 2 2005, 13:33
dignick Quickly looking around, the most stable project wr... Oct 4 2005, 17:50
SebastianG QUOTE (dignick @ Oct 4 2005, 05:50 PM)EDIT2:... Oct 4 2005, 20:44
dignick Forgotten to mention this before, if you burn trac... Oct 17 2005, 15:56
jaybeee Sebi - been using the tool for a while now and it... Dec 6 2005, 11:41

Shade[ST] The karma dev team will not be developing a discon... Dec 19 2005, 19:32
senab QUOTE (senab @ Dec 18 2005, 09:23 PM)There... Dec 20 2005, 17:41
SebastianG QUOTE (senab @ Dec 20 2005, 05:41 PM)It works... Dec 21 2005, 09:16
jaybeee he he, I asked Sebi a similar question the other d... Dec 21 2005, 13:15
senab OK, let me have a look and I'll post what I... Dec 21 2005, 15:19
SebastianG QUOTE (senab @ Dec 21 2005, 03:19 PM)OK, let ... Dec 21 2005, 17:25
Jojo does it also work when cutting CBR non Lame files?... Jan 6 2006, 02:51
jaybeee QUOTE (Jojo @ Jan 6 2006, 01:51 AM)does it al... Jan 6 2006, 10:08
PzyMazter I cannot seem to get files I split using this tool... Jan 6 2006, 06:44
markanini Also if someone could make a GUI that would be nic... Jan 6 2006, 13:46
Jojo QUOTE (dignick @ Oct 2 2005, 01:53 AM)Thanks ... Jan 7 2006, 00:44
jaybeee QUOTE (Jojo @ Jan 6 2006, 11:44 PM)QUOTE (dig... Jan 8 2006, 00:21
Jojo here is another little bug: pcutmp3 assumes that e... Jan 17 2006, 01:36
SebastianG Hello y'all !
QUOTE (Jojo @ Jan 6 20... Jan 17 2006, 10:05
Jojo thanks for your answer.
QUOTE (SebastianG @ J... Jan 18 2006, 06:59
dignick Nice to see this is staying alive. It's great... Feb 7 2006, 15:57
markanini Could accuracy of the cut itself, that is, letting... Feb 8 2006, 01:47
pokecapn why does it do this:
PCutMP3 -- Properly Cut MP3 ... Feb 19 2006, 03:59
SebastianG Hmmm... looks like pcutmp3 is choking on your mp3 ... Feb 19 2006, 06:56
pokecapn first 10 seconds of the mp3: http://rapidshare.de/... Feb 19 2006, 09:51
SebastianG A quick fix that might work: Fix the bit reservoir... Feb 20 2006, 08:59
SebastianG Unfortunately i wasn't able to download the fi... Feb 20 2006, 15:23
Jojo is there any disadvantage of cutting a mp3 twice u... Apr 17 2006, 01:36
SebastianG No. There shouldn't be a problem.
Sebi Apr 17 2006, 02:38
dignick I use XBMC quite frequently and I noticed that it ... May 17 2006, 13:55
jaybeee I don't think Sebi is actively developing this... May 17 2006, 15:06
SebastianG dignick: Did you try the latest version? I thought... May 17 2006, 18:12
Jojo QUOTE (SebastianG @ May 17 2006, 10:12) I... May 20 2006, 05:53
SebastianG QUOTE (Jojo @ May 20 2006, 06:53) QUOTE (... May 22 2006, 08:02
dignick I have been using 0.94b, now I see the new jar is ... May 21 2006, 17:37
vlada SebastianG> Would it be too difficult for you t... May 31 2006, 16:19
Raiden Just tried to cut a 48000hz mp3. It cut at the wro... Jun 5 2006, 14:51
SebastianG QUOTE (Raiden @ Jun 5 2006, 15:51) Just t... Jun 8 2006, 09:16
Matyas Will pCutMP3 ever have a GUI? Command line is powe... Jun 7 2006, 20:44
Jojo QUOTE (Raiden @ Jun 5 2006, 06:51) Just t... Jun 7 2006, 23:11
mixminus1 QUOTE (Jojo @ Jun 7 2006, 15:11) QUOTE (R... Jun 8 2006, 14:25
Raiden I used this cuesheet on a 48000hz mp3 file:
CODEFI... Jun 8 2006, 15:04
SebastianG QUOTE (Raiden @ Jun 8 2006, 16:04) seems ... Jun 8 2006, 16:32
M Hi Sebi. First of all, thank you for this tool... Jun 20 2006, 23:01
SebastianG QUOTE (M @ Jun 21 2006, 00:01) Have you c... Jun 21 2006, 08:24
M QUOTE (SebastianG @ Jun 21 2006, 03:24) ... Jun 21 2006, 11:50
jaybeee Sebi: if you think you can rejoin only pcutmp3 fil... Jun 21 2006, 18:02
SebastianG QUOTE (jaybeee @ Jun 21 2006, 19:02) Sebi... Jun 26 2006, 08:37
odyssey How do I correctly compile pcutmp3 to an executabl... Jun 23 2006, 07:42
SebastianG QUOTE (odyssey @ Jun 23 2006, 08:42) How ... Jun 23 2006, 09:11
odyssey QUOTE (SebastianG @ Jun 23 2006, 00:11) Q... Jun 23 2006, 10:16
jaybeee Thanks for the reply Sebi. It was just a thought ... Jun 26 2006, 17:37
Hancoque I found out that pcutmp3 throws an exception if it... Jul 4 2006, 03:10
dignick QUOTE (Hancoque @ Jul 4 2006, 03:10) I fo... Aug 16 2006, 18:53
krazy Thankyou very much for this tool, Sebastian. Does ... Aug 30 2006, 11:23
Skates The program has worked great, but the non-ID3v2 su... Sep 26 2006, 02:30
Rochey Hello guys,
I am just wondering if anyone has use... Sep 27 2006, 10:25
enigmahi Sorry, but todays is not my day...
Could anyone b... Dec 15 2006, 12:46
enigmahi Hmm, Codepage Problem on the morning...
Here c... Dec 15 2006, 18:48
dekaliber This might be a dead topic, but I thought I'd ... Jan 25 2007, 16:33
mixminus1 QUOTE (dekaliber @ Jan 25 2007, 08:33) Th... Jan 25 2007, 17:47
KungFuJesus I'm no expert on the details of how this progr... Apr 1 2007, 11:23
Jojo QUOTE (KungFuJesus @ Apr 1 2007, 03:23) I... Apr 1 2007, 22:29
Hancoque QUOTE (Jojo @ Apr 1 2007, 22:29) thanks. ... Apr 1 2007, 22:45
KungFuJesus If you have Java installed it should associate its... Apr 2 2007, 03:02
senab Nice and simply GUI. I actually wrote one just li... Apr 1 2007, 11:39
j7n Very useful info about patching Foobar 0.8.3. This... Apr 1 2007, 16:30
senab I find Jar's load quicker when launched with b... Apr 2 2007, 08:43
cheatz So i have a .bat file with the code "@java -j... Jul 30 2007, 11:45
Hancoque Using a batch file doesn't change that it... Jul 30 2007, 22:42
cheatz QUOTE (Hancoque @ Jul 30 2007, 15:42) Usi... Aug 1 2007, 13:52
Synthetic Soul QUOTE (Hancoque @ Jul 30 2007, 22:42) Usi... Aug 1 2007, 15:38![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 21:57 |