Skip to main content

Topic: pcutmp3 tool (Read 230535 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • greynol
  • [*][*][*][*][*]
  • Global Moderator
pcutmp3 tool
Reply #175
CUE sheets are for indexing CDs and CDs are 44.1kHz, not 48kHz.
Your eyes cannot hear.

  • djphatic
  • [*]
pcutmp3 tool
Reply #176
I fixed mp3 using this tool, but I see the same error again:

C:\>java -jar pcutmp3.jar --cue "ASOT.cue" "ASOTfix.mp3"

PCutMP3 -- Properly Cut MP3 v0.97.1

scanning "ASOTfix.mp3" ...
first frame header = MPEG1 Layer3 192kbps 44100Hz J-Stereo
Xing/Info tag present
bitrate = 192 kbps (CBR)
accurate length = no
321691392 samples (is NOT a multiple of 588)
writing "01. A State of Trance - Intro.mp3" ...
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -10
       at de.zebee.mpa.ScannedMP3.getInt16(ScannedMP3.java:85)
       at de.zebee.mpa.ScannedMP3.getInt32(ScannedMP3.java:89)
       at de.zebee.mpa.ScannedMP3.getFrameFileOfs(ScannedMP3.java:103)
       at de.zebee.mpa.ScannedMP3.crop(ScannedMP3.java:329)
       at de.zebee.mpa.MainCLI.main(MainCLI.java:283)


 

I have the same error. I have ran the mp3 through mp3brfix and no errors are found
Code: [Select]
MP3brfix (bit-reservoir-fix) v0.95(beta) © 2003-2005 by ZeBee

scanning 01-above_and_beyond_-_trance_around_the_world_300_(di.fm)_(live_at_foru
m_hall_moscow)-01-01-2010-tt 1.mp3 ...
first frame:
  MPEG1 Layer3 256kbps 44100Hz J-Stereo
  Info-Tag present
  flags: [fc] [bc] [toc] [vs]
  LAME-Tag present  ( LAME  )
mp3 frames: 0, CBR (256 kbps)
Bit-Res errors: 0
no CRC protected frames found.
ready.

Any suggestions?

  • djphatic
  • [*]
pcutmp3 tool
Reply #177
Managed to get things working.

Is there anyway to have a batch file which puts the cut files into a new folder which is has the Album Name?

My current batch looks like this (which I copied from this thread)

Code: [Select]
@echo off
title pcutmp3
cd /d "C:\pcutmp3\"
java -jar pcutmp3.jar --cue %1 --dir "%~dp1\
pause
exit

  • Jojo
  • [*][*][*][*][*]
pcutmp3 tool
Reply #178
I'm on Win 7 64 bit, and get the following error
Quote
C:\>java -jar pcutmp3.jar
'java' is not recognized as an internal or external command,
operable program or batch file.


using
Code: [Select]
pcutmp3.jar --cue 1.cue
cuts the files, but I don't get any output info.

I also tried two versions hosted on the website and they don't work at all, I get the same error as the poster above.

Any idea?


--alt-presets are there for a reason! These other switches DO NOT work better than it, trust me on this.
LAME + Joint Stereo doesn't destroy 'Stereo'

  • alexcavaco
  • [*]
pcutmp3 tool
Reply #179
I'm on Win 7 64 bit, and get the following error
Quote
C:\>java -jar pcutmp3.jar
'java' is not recognized as an internal or external command,
operable program or batch file.


using
Code: [Select]
pcutmp3.jar --cue 1.cue
cuts the files, but I don't get any output info.

I also tried two versions hosted on the website and they don't work at all, I get the same error as the poster above.

Any idea?


Hmmm, are you sure you have Java installed?

The error you get is that the Windows command prompt doesn't find any executable named 'java'.

  • lvqcl
  • [*][*][*][*][*]
  • Developer
pcutmp3 tool
Reply #180
Win+Break -> Advanced system settings -> Environment Variables -> edit PATH variable: add
Code: [Select]
c:\Program Files\Java\jre6\bin
to it

Or "c:\Program Files (x86)\Java\jre6\bin" if you have 32-bit JRE installed.
  • Last Edit: 03 November, 2010, 12:00:42 PM by lvqcl

  • djphatic
  • [*]
pcutmp3 tool
Reply #181
Is there any update to jid3 which will write more than the usual artist, title, album tags?

It would be great to get the discnumber and year/date tags and whatever else is contained in the original mp3 to be written to the split tracks also.

  • J0sHi
  • [*]
pcutmp3 tool
Reply #182
I cant believe this program is dieing, Its the only tool on the web that i could find that cuts LAME encoded mp3s accuratly and gaplessly.
Its a hidden gem really, people would pay for this. I would it if it had a gui and the bugs were worked out.

Simply because its one of a kind. I cant believe its left half complete. 

madness.

Considering by the looks of it, its been around years.
I only found this last month.

  • Last Edit: 03 February, 2011, 12:30:34 PM by J0sHi

  • Canar
  • [*][*][*][*][*]
  • Global Moderator
  • Your mom's favourite moderator
pcutmp3 tool
Reply #183
It's not dying. It works fine. The source code is available if anyone wants to continue it or alter it. The reality is that it works so well that no changes have been needed.
  • Last Edit: 03 February, 2011, 04:22:23 PM by Canar
1. Attack the argument, not the arguer.
2. Assume good faith.

  • djphatic
  • [*]
pcutmp3 tool
Reply #184
Something is wrong with new beta version (notice totally wrong filesize and cuts in Beta version):

Correctly done:
Code: [Select]
PCutMP3 -- Properly Cut MP3 v0.97.1

scanning "C:\Temp\rip\CDImage.mp3" ...
first frame header = MPEG1 Layer3 128kbps 44100Hz J-Stereo
Xing/Info and LAME tag present
bitrate = 173.64375 kbps (VBR)
accurate length = yes
211450092 samples (is a multiple of 588)
writing "C:\Temp\rip\01. Hongrie - Franz Liszt (1811-1886) - La Lugubre Gondole.mp3" ...
writing "C:\Temp\rip\02. Hongrie - Franz Liszt (1811-1886) - Rhapsodie hongroise n░6.mp3" ...
writing "C:\Temp\rip\03. Boheme - Antonin Dvorak (1841-1904) - Quatuor Americain, III. Molto vivace.mp3" ...
writing "C:\Temp\rip\04. Boheme - Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L....mp3" ...
writing "C:\Temp\rip\05. Boheme - Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L....mp3" ...
writing "C:\Temp\rip\06. Pays Nordiques - Edvard Grieg (1843-1907) - Sonate pour violon et piano, III. Allegro animato.mp3" ...
writing "C:\Temp\rip\07. Pays Nordiques - Jean Sibelius (1865-1957) - Quatuor a cordes Voces intimae.mp3" ...
writing "C:\Temp\rip\08. Russie - Modeste Moussorgski (1839-1881) - Tableaux d'une exposition, La Grande Porte ....mp3" ...
writing "C:\Temp\rip\09. Russie - Piotr Ilyich Tchaikivski (1840-1893) - Symphonie n░5 en mi mineur, III. Valse....mp3" ...
writing "C:\Temp\rip\10. Espagne - Issac Albeniz (1860-1909) - Asturias.mp3" ...
writing "C:\Temp\rip\11. Francophonie - Cesar Franck (1822-1890) - Symphonie en re mineur, III. Allegro non troppo.mp3" ...
writing "C:\Temp\rip\12. Francophonie - Georges Bizet (1838-1875) - L'Arlesienne, I. Ouverture.mp3" ...
writing "C:\Temp\rip\13. Francophonie - Georges Bizet (1838-1875) - L'Arlesienne, IV. Carillon.mp3" ...
writing "C:\Temp\rip\14. Francophonie - Camille Saint-Saens (1835-1921) - Trio n░I op.18 en Fa majeur, III. Scherzo.mp3" ...
writing "C:\Temp\rip\15. Francophonie - Camille Saint-Saens (1835-1921) - Symphonie n░3 avec orgue en ut mineur op.78....mp3" ..
.
done.

C:\Program Files\foobar2000>cd\

C:\>cd temp\rip

C:\Temp\rip>dir
 Volume in drive C has no label.
 Volume Serial Number is E88F-2219

 Directory of C:\Temp\rip

13.08.2009  20:10    <DIR>          .
13.08.2009  20:10    <DIR>          ..
13.08.2009  20:10        12.015.104 01. Hongrie - Franz Liszt (1811-1886) - La Lugubre Gondole.mp3
13.08.2009  20:10        7.675.667 02. Hongrie - Franz Liszt (1811-1886) - Rhapsodie hongroise n°6.mp3
13.08.2009  20:10        5.410.620 03. Boheme - Antonin Dvorak (1841-1904) - Quatuor Americain, III. Molto vivace.mp3
13.08.2009  20:10        3.091.070 04. Boheme - Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L....mp3
13.08.2009  20:10        2.329.955 05. Boheme - Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L....mp3
13.08.2009  20:10        6.944.897 06. Pays Nordiques - Edvard Grieg (1843-1907) - Sonate pour violon et piano, III. Allegro animato.mp3
13.08.2009  20:10        3.828.923 07. Pays Nordiques - Jean Sibelius (1865-1957) - Quatuor a cordes Voces intimae.mp3
13.08.2009  20:10        5.975.041 08. Russie - Modeste Moussorgski (1839-1881) - Tableaux d'une exposition, La Grande Porte ....mp3
13.08.2009  20:10        8.190.068 09. Russie - Piotr Ilyich Tchaikivski (1840-1893) - Symphonie n°5 en mi mineur, III. Valse....mp3
13.08.2009  20:10        9.098.676 10. Espagne - Issac Albeniz (1860-1909) - Asturias.mp3
13.08.2009  20:10        14.067.179 11. Francophonie - Cesar Franck (1822-1890) - Symphonie en re mineur, III. Allegro non troppo.mp3
13.08.2009  20:10        8.707.708 12. Francophonie - Georges Bizet (1838-1875) - L'Arlesienne, I. Ouverture.mp3
13.08.2009  20:10        5.716.780 13. Francophonie - Georges Bizet (1838-1875) - L'Arlesienne, IV. Carillon.mp3
13.08.2009  20:10        4.293.268 14. Francophonie - Camille Saint-Saens (1835-1921) - Trio n°I op.18 en Fa majeur, III. Scherzo.mp3
13.08.2009  20:10        6.761.159 15. Francophonie - Camille Saint-Saens (1835-1921) - Symphonie n°3 avec orgue en ut mineur op.78....mp3
13.08.2009  20:01            2.764 CDImage.cue
25.12.2007  21:06      104.075.161 CDImage.mp3
             17 File(s)    208.184.040 bytes
               2 Dir(s)  330.037.747.712 bytes free

C:\Temp\rip>
Badly done:
Code: [Select]
PCutMP3 -- Properly Cut MP3 v0.98 BETA

scanning "C:\Temp\rip\CDImage.mp3" ...
first frame header = MPEG1 Layer3 128kbps 44100Hz J-Stereo
Xing/Info and LAME tag present
bitrate = 173.64375 kbps (VBR)
accurate length = yes
211450092 samples (is a multiple of 588)
writing "C:\Temp\rip\1. Hongrie - Franz Liszt (1811-1886) - La Lugubre Gondole.mp3" ...
writing "C:\Temp\rip\2. Hongrie - Franz Liszt (1811-1886) - Rhapsodie hongroise n░6.mp3" ...
writing "C:\Temp\rip\3. Boheme - Antonin Dvorak (1841-1904) - Quatuor Americain, III. Molto vivace.mp3" ...
writing "C:\Temp\rip\4. Boheme - Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L....mp3" ...
writing "C:\Temp\rip\5. Boheme - Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L....mp3" ...
writing "C:\Temp\rip\6. Pays Nordiques - Edvard Grieg (1843-1907) - Sonate pour violon et piano, III. Allegro animato.mp3" ...
writing "C:\Temp\rip\7. Pays Nordiques - Jean Sibelius (1865-1957) - Quatuor a cordes Voces intimae.mp3" ...
writing "C:\Temp\rip\8. Russie - Modeste Moussorgski (1839-1881) - Tableaux d'une exposition, La Grande Porte ....mp3" ...
writing "C:\Temp\rip\9. Russie - Piotr Ilyich Tchaikivski (1840-1893) - Symphonie n░5 en mi mineur, III. Valse....mp3" ...
writing "C:\Temp\rip\10. Espagne - Issac Albeniz (1860-1909) - Asturias.mp3" ...
writing "C:\Temp\rip\11. Francophonie - Cesar Franck (1822-1890) - Symphonie en re mineur, III. Allegro non troppo.mp3" ...
writing "C:\Temp\rip\12. Francophonie - Georges Bizet (1838-1875) - L'Arlesienne, I. Ouverture.mp3" ...
writing "C:\Temp\rip\13. Francophonie - Georges Bizet (1838-1875) - L'Arlesienne, IV. Carillon.mp3" ...
writing "C:\Temp\rip\14. Francophonie - Camille Saint-Saens (1835-1921) - Trio n░I op.18 en Fa majeur, III. Scherzo.mp3" ...
writing "C:\Temp\rip\15. Francophonie - Camille Saint-Saens (1835-1921) - Symphonie n░3 avec orgue en ut mineur op.78....mp3" ..
.
done.

C:\Program Files\foobar2000>cd\

C:\Temp\rip>dir
 Volume in drive C has no label.
 Volume Serial Number is E88F-2219

 Directory of C:\Temp\rip

13.08.2009  20:01    <DIR>          .
13.08.2009  20:01    <DIR>          ..
13.08.2009  20:01        12.015.147 1. Hongrie - Franz Liszt (1811-1886) - La Lugubre Gondole.mp3
13.08.2009  20:01              827 10. Espagne - Issac Albeniz (1860-1909) - Asturias.mp3
13.08.2009  20:01        78.605.197 11. Francophonie - Cesar Franck (1822-1890) - Symphonie en re mineur, III. Allegro non troppo.mp3
13.08.2009  20:01        8.707.751 12. Francophonie - Georges Bizet (1838-1875) - L'Arlesienne, I. Ouverture.mp3
13.08.2009  20:01        5.716.823 13. Francophonie - Georges Bizet (1838-1875) - L'Arlesienne, IV. Carillon.mp3
13.08.2009  20:01        4.293.311 14. Francophonie - Camille Saint-Saens (1835-1921) - Trio n°I op.18 en Fa majeur, III. Scherzo.mp3
13.08.2009  20:01        6.761.202 15. Francophonie - Camille Saint-Saens (1835-1921) - Symphonie n°3 avec orgue en ut mineur op.78....mp3
13.08.2009  20:01              957 2. Hongrie - Franz Liszt (1811-1886) - Rhapsodie hongroise n°6.mp3
13.08.2009  20:01        25.097.269 3. Boheme - Antonin Dvorak (1841-1904) - Quatuor Americain, III. Molto vivace.mp3
13.08.2009  20:01        3.091.113 4. Boheme - Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L....mp3
13.08.2009  20:01            1.017 5. Boheme - Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L....mp3
13.08.2009  20:01        37.457.144 6. Pays Nordiques - Edvard Grieg (1843-1907) - Sonate pour violon et piano, III. Allegro animato.mp3
13.08.2009  20:01              989 7. Pays Nordiques - Jean Sibelius (1865-1957) - Quatuor a cordes Voces intimae.mp3
13.08.2009  20:01        47.256.154 8. Russie - Modeste Moussorgski (1839-1881) - Tableaux d'une exposition, La Grande Porte ....mp3
13.08.2009  20:01            1.017 9. Russie - Piotr Ilyich Tchaikivski (1840-1893) - Symphonie n°5 en mi mineur, III. Valse....mp3
13.08.2009  20:01            2.764 CDImage.cue
25.12.2007  21:06      104.075.161 CDImage.mp3
             17 File(s)    333.083.843 bytes
               2 Dir(s)  330.179.977.216 bytes free

C:\Temp\rip>
CUE file:
Code: [Select]
REM GENRE Classical
REM DATE 2005
REM DISCID ED12BA0F
PERFORMER "Various Artists"
TITLE "Century 2 - L'eveil musical des Nations (vol 17)"
FILE "CDImage.mp3" WAVE
  TRACK 01 AUDIO
   TITLE "Franz Liszt (1811-1886) - La Lugubre Gondole"
   PERFORMER "Hongrie"
   FLAGS DCP
   INDEX 01 00:00:00
  TRACK 02 AUDIO
   TITLE "Franz Liszt (1811-1886) - Rhapsodie hongroise n°6"
   PERFORMER "Hongrie"
   FLAGS DCP
   INDEX 01 09:31:65
  TRACK 03 AUDIO
   TITLE "Antonin Dvorak (1841-1904) - Quatuor Americain, III. Molto vivace"
   PERFORMER "Boheme"
   FLAGS DCP
   INDEX 00 16:09:32
   INDEX 01 16:10:53
  TRACK 04 AUDIO
   TITLE "Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L..."
   PERFORMER "Boheme"
   FLAGS DCP
   INDEX 01 20:08:28
  TRACK 05 AUDIO
   TITLE "Antonin Dvorak (1841-1904) - Melodies, Chants du Manuscrit de Dvur Kralove, L..."
   PERFORMER "Boheme"
   FLAGS DCP
   INDEX 01 22:45:29
  TRACK 06 AUDIO
   TITLE "Edvard Grieg (1843-1907) - Sonate pour violon et piano, III. Allegro animato"
   PERFORMER "Pays Nordiques"
   FLAGS DCP
   INDEX 00 24:42:29
   INDEX 01 24:45:34
  TRACK 07 AUDIO
   TITLE "Jean Sibelius (1865-1957) - Quatuor a cordes Voces intimae"
   PERFORMER "Pays Nordiques"
   FLAGS DCP
   INDEX 01 29:56:54
  TRACK 08 AUDIO
   TITLE "Modeste Moussorgski (1839-1881) - Tableaux d'une exposition, La Grande Porte ..."
   PERFORMER "Russie"
   FLAGS DCP
   INDEX 00 32:42:50
   INDEX 01 32:46:49
  TRACK 09 AUDIO
   TITLE "Piotr Ilyich Tchaikivski (1840-1893) - Symphonie n°5 en mi mineur, III. Valse..."
   PERFORMER "Russie"
   FLAGS DCP
   INDEX 01 38:02:63
  TRACK 10 AUDIO
   TITLE "Issac Albeniz (1860-1909) - Asturias"
   PERFORMER "Espagne"
   FLAGS DCP
   INDEX 00 43:54:31
   INDEX 01 43:57:58
  TRACK 11 AUDIO
   TITLE "Cesar Franck (1822-1890) - Symphonie en re mineur, III. Allegro non troppo"
   PERFORMER "Francophonie"
   FLAGS DCP
   INDEX 00 50:39:35
   INDEX 01 50:43:10
  TRACK 12 AUDIO
   TITLE "Georges Bizet (1838-1875) - L'Arlesienne, I. Ouverture"
   PERFORMER "Francophonie"
   FLAGS DCP
   INDEX 01 60:46:52
  TRACK 13 AUDIO
   TITLE "Georges Bizet (1838-1875) - L'Arlesienne, IV. Carillon"
   PERFORMER "Francophonie"
   FLAGS DCP
   INDEX 01 67:22:07
  TRACK 14 AUDIO
   TITLE "Camille Saint-Saens (1835-1921) - Trio n°I op.18 en Fa majeur, III. Scherzo"
   PERFORMER "Francophonie"
   FLAGS DCP
   INDEX 01 71:34:30
  TRACK 15 AUDIO
   TITLE "Camille Saint-Saens (1835-1921) - Symphonie n°3 avec orgue en ut mineur op.78..."
   PERFORMER "Francophonie"
   FLAGS DCP
   INDEX 01 75:08:17

Command line:
[!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]cmd /k "java.exe -jar "C:\Program Files\foobar2000\utils\pcutmp3.jar" --cue "$directory_path(%path%)\%filename%.cue" --dir "$directory_path(%path%)" "$directory_path(%path%)\%filename%.mp3""[/size]

Can some developer comment this?


Did you ever figure this one out?

I seem to be having a similar issue though this is with 0.97.1 and 0.98 BETA. The cuesheet loads and plays fine in foobar but when I split all the track lengths are completely different and wrong.

  • djphatic
  • [*]
pcutmp3 tool
Reply #185
It appears the issue is related to 48hz encoded livesets I have been trying to split, which the progam does not support correctly.

  • Ryo94
  • [*][*]
pcutmp3 tool
Reply #186
HI, I'm using the pcutmp3 095b that is embedded in gui 0.3. Is there any version of the gui that comes with pcutmp3 0.98? thanks in advance.

  • neovibe
  • [*]
pcutmp3 tool
Reply #187
Win+Break -> Advanced system settings -> Environment Variables -> edit PATH variable: add
Code: [Select]
c:\Program Files\Java\jre6\bin
to it

Or "c:\Program Files (x86)\Java\jre6\bin" if you have 32-bit JRE installed.


thanks for this one!

  • AdamBast
  • [*]
pcutmp3 tool
Reply #188
ohai

1st: thanks for this tool

2nd:
no matter what i cut, the mp3 tags don't show up correctly in jetaudio.
other plyayers tested (just to view the tags):
tcpmp -> same problem
wmp 11 -> same



left is (white background) what totalcommander shows, the normal file names
right is (gray background) what the players shows

i think it's maybe some unicode problem, specifically jid3.jar-related, but i'm not sure

thanks in advance for any help

---------------------------

+question: does pcutmp3 append gaps by default?
if not, how can i make it so?
  • Last Edit: 07 March, 2012, 11:18:31 AM by AdamBast

  • megar
  • [*]
pcutmp3 tool
Reply #189
Hello.
I recently had to use pcutmp3. This is a wonderful program, seems to be the only one on the web to achieve true gapeless cuting. Unfortunately, the mp3 was 48Khz and I bumped into the same bug some of you entountered.

I made a quick fix to pcutmp3, thanks for putting in on google code.

Anyway, here is my patch: (I also corrected the leading 0 in track number)

Code: [Select]
Index: de/zebee/mpa/Track.java
===================================================================
--- de/zebee/mpa/Track.java     (revision 28)
+++ de/zebee/mpa/Track.java     (working copy)
@@ -6,8 +6,14 @@
     private String title;
     private int    trackNumber;

+    /*
+     * start sector. One sector = 1/75th of a second
+     */
     private long   startSector;

+    /*
+     * end sector. One sector = 1/75th of a second
+     */
     private long   endSector;

     public Track() {
Index: de/zebee/mpa/MainCLI.java
===================================================================
--- de/zebee/mpa/MainCLI.java   (revision 28)
+++ de/zebee/mpa/MainCLI.java   (working copy)
@@ -257,6 +257,9 @@
                 outDir = null;
             }

+            int samplingFrequencyHz = scannedMP3.getSamplingFrequency();
+            int samplesPerSector = samplingFrequencyHz / 75;
+
             for (int i = 0; i < cueFile.getNumberTracks(); i++) {

                 Track t = cueFile.getTrack(i);
@@ -274,8 +277,8 @@
                 FileOutputStream fops = new FileOutputStream(fn);

                 try {
-                    scannedMP3.crop(t.getStartSector(), t.getEndSector(), new FileInputStream(
-                            srcFileFile), fops);
+                    scannedMP3.crop(t.getStartSector() * samplesPerSector, t.getEndSector()
+                            * samplesPerSector, new FileInputStream(srcFileFile), fops);
                 } finally {
                     fops.close();
                 }
@@ -338,6 +341,9 @@
                             break;
                         }
                         case 'n': {
+                            if (Integer.parseInt(trackNo) < 10) {
+                                sb.append("0");
+                            }
                             sb.append(trackNo);
                             break;
                         }
@@ -463,7 +469,7 @@
                         else if (token.equals("index")) {
                             try {
                                 int idx = Integer.parseInt(st.nextToken());
-                                long smp = MSFstring2sector(st.nextToken()) * 588L;
+                                long smp = MSFstring2sector(st.nextToken());
                                 if (idx == 1) {

                                     if (currentTrack != null) {


I did NOT change the version number, only the main maintener should do it, and release another compiled jar.

I would be glad SebastianG or senab can review the patch and commit it to the code.
I only tested it with a 99 track 44.1 Khz mp3 and 99 track 48 Khz mp3. (Did not test other layers).

Hope it can be useful.

pcutmp3 tool
Reply #190
I ran into a 48khz file today and came here to ask about it. Looks like i'm not alone with this problem, and it looks like people are trying to resolve the problem (thanks megar!).

I have no knowledge on how to compile jar files though, so i'll second megar's request that the code be checked and hopefully accepted and released.
Thanks.

  • megar
  • [*]
pcutmp3 tool
Reply #191
I uploaded a precompiled pcutmp3.jar here : https://niki.atomas.com/files/pcutmp3/
It includes the source code changes from the 0.98beta release.

Changelog:
- [fix] support for 48Khz mp3
- [fix] fix the leading 0 in %n scheme
- [fix] don't print exception if no file given
- [new feature] --split-in N : to cut a mp3 in N equal parts
- [new feature] --split-every N : to cut a mp3 every N seconds.
- [change] jid3.jar is now bundled

Please do not spread it, I am waiting for the answer from the original authors.

Please report if it works.........
  • Last Edit: 27 March, 2012, 11:07:11 AM by megar

pcutmp3 tool
Reply #192
Thanks, megar

The split points are all in the right places now, but there seems to be an issue with the original file's Gapless information.
My original had no delay at the beginning of the track, but it looks like a 576 sample delay (LAME's default) is added after a split.

So the file is split perfectly, but the length is changed. I'm going to experiment a bit and see what else i can find.

  • megar
  • [*]
pcutmp3 tool
Reply #193
I think that's the correct behaviour. pcutmp3 add a mp3 frame as the start of the 2nd mp3 with silence information. It is used to fill the bit reservoir. See http://www.hydrogenaudio.org/forums/index....st&p=315678
It is also explained in the first post of the topic.

If foobar can play the song without any gap, it is OK, the first frame pcutmp3 create is compensated by a high encoder_delay, but the shown total frames of the songs will be greater.

The first song should not be altered, though.

I may add a --rejoin option to rebuilt the largemp3 file, but that's another story.
  • Last Edit: 27 March, 2012, 02:07:43 PM by megar

  • x0x
  • [*]
pcutmp3 tool
Reply #194
I am in need of a tool that can split mp3 files using cue sheets on Mac so I came across pcutmp3.

Megar, I tried your version and it worked just fine. However, gapless playback is not 100% accurate. When I import the mp3 files I created with pcutmp3 into iTunes, some of them sound gapless and others have a slight hick-up. Tiny but it's there and noticeable for techno / house mixes.

Is there anything I can do to resolve this problem? I already tried enabling the gapless playback setting for each file in iTunes without success.

  • megar
  • [*]
pcutmp3 tool
Reply #195
Do the generated mp3s play completely gapless on Foobar ?

I don't have iThunes, but I found these two resources:
http://www.sturmnet.org/blog/2008/11/06/ma...ayback-nonsense
http://manishbansal.wordpress.com/2010/10/...lems-in-itunes/

The second one gives a cookbook to fix mp3 stream / vbr header. It seems iThunes doesn't read the lame tags but try to guess values other way (don't know which way).

You may try the cookbook, maybe it will be successful.

  • x0x
  • [*]
pcutmp3 tool
Reply #196
I only have Macs so foobar isn't an option...

Anyway if it's iTunes not following the standards it wouldn't surprise me. I tried several apps including your build of pcutmp3 but with each try, iTunes does not seem to be handling the gapless playback like it should. The results differ and pcutmp3 does seem to be doing the best job but still some tracks have a hick-up.

iTunes works great for me on Mac but I guess I should keep mix cd's a single file like I download them, too bad for Last.fm

  • megar
  • [*]
pcutmp3 tool
Reply #197
Well, I can try to help. If you send me two or three mp3 cutted bu pcutmp3, I can try to rebuild mp3 stream / fix vbr header, then send them back to you. So we will have a clue. In that case, it would means that pcutmp3 does not produce completely good mp3. But I think it's unlikely, because it re-write a (I think) correct mp3 vbr header. You can upload the files on a public upload site and send me the link (by Private Message).

  • megar
  • [*]
pcutmp3 tool
Reply #198
Since I got no answer from the author, I decided to fork the project on my Bitbucket account.
It is here : https://bitbucket.org/gbouthenot/pcutmp3/
I do not claim being the original author. I would remove it if the authors ask me to. It's New BSD Licence, so it should be legal, though.

The webpage provides a download link for the compiled jar (Megar Build 3), So I will remove Build 2 from here.

pcutmp3 tool
Reply #199
I've created a new version of PCutMp3 with a GUI for creating, opening, etc. cuesheets.
It also fixes a bug concerning 48000Hz mp3 files.

See https://github.com/hoesterholt/pcutmp3-gui for the source.
And https://github.com/hoesterholt/pcutmp3-gui/...aster/README.md for a small readme and a download link for an installer.