illustrate
Products            Buy            Support Forum            Registrations            Professional            About           
 

Creating Subdirectories for Multiple Disc Sets in File Conversion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • garym
    dBpoweramp Guru

    • Nov 2007
    • 5920

    Creating Subdirectories for Multiple Disc Sets in File Conversion

    I must be missing something, but for the life of me can't figure it out. I've ripped a number of CDs to FLAC with 12.4 Reference Version (XP with all updates) and used the following naming scheme when ripping.

    Naming Scheme in Ripper:

    [IFCOMP]Compilations\[album] [IFMULTI] \Disc [disc][]\[track]-[title]-[album][IFMULTI]-Disc[disc][]-[artist][][IF!COMP][artist]\[album][IFMULTI] \Disc [disc][]\[track]-[title]-[album][IFMULTI]-Disc[disc][]-[artist][]

    With this, I get the following output (which is exactly what I want):
    If compilation:
    Compilations\Album Name\track#-trackname-Albumname-Artist.mp3
    If compilation multidisk:
    Compilations\Album Name\Disc #\track#-trackname-Albumname-Disc#-Artist.mp3

    If NOT compilation:
    Artist\Album Name\track#-trackname-Albumname-Artist.mp3
    If NOT compilation multidisk:
    Artist\Album Name\Disc #\track#-trackname-Albumname-Disc#-Artist.mp3

    I copied the exact same naming scheme formula into the batch converter when creating LAME mp3 files:

    [IFCOMP]Compilations\[album] [IFMULTI] \Disc [disc][]\[track]-[title]-[album][IFMULTI]-Disc[disc][]-[artist][][IF!COMP][artist]\[album][IFMULTI] \Disc [disc][]\[track]-[title]-[album][IFMULTI]-Disc[disc][]-[artist][]

    And in the dynamic naming screen, it even shows the following output example:
    Madonna\Immaculate\Disc 1\05-Holiday-Immaculate-Disc1-Madonna

    However, the output names and subdirectories ignore the DISC #. It doesn't create the separate subfolders under album name (e.g., DISC 1, DISC 2, etc.) and it does not include the disc # in the track file name. However, the DISC tag within the mp3 (ID3v2.3) does contain the correct Disc #. The output puts all mp3 track files in a single "album name" subdirectory under the artist (or under compilations for compilation discs).

    Any thoughts on what I'm doing wrong. Thanks.
  • garym
    dBpoweramp Guru

    • Nov 2007
    • 5920

    #2
    Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

    I've also noted another odd result. Consider the following file name when ripped to FLAC

    01-Symphony No. 4 in A major ('Italian'), Op. 90; 1st movement-Classical Masterpieces of the Millennium; Mendelssohn-Bartholdy-Berlin Radio S.flac

    This file is in a single subdirectory called:
    S:\FLAC\Berlin Radio Symphony Orchestra\Classical Masterpieces of the Millennium; Mendelssohn-Bartholdy

    When converted to MP3 with batch converter, the resulting mp3 is named:
    01-Symphony No. 4 in A major ('Italian'), Op. 90; 1st movement-Classical Masterpieces of the Millennium; Mendelssohn-Bartholdy-Berlin Radio Symphony Orche.mp3

    but shows up in the following subdirectory:

    D:\TempMP3Files\Berlin Radio Symphony Orchestra\Classical Masterpieces of the Millennium; Mendelssoh

    That is, the subdirectory name is truncated. And it turns out that the files within the original FLAC subdirectory end up in about 7 or 8 different name subdirectories (all truncated versions of the original name of the album) depending on how long the ultimate name of the mp3 track file is.

    I could see the length issue being a problem, but it strikes me as odd that the original naming of the FLAC files and subdirectories (from the ripper) didn't suffer from the same problem as the later mp3 conversion names/subdirectories.

    Comment

    • Spoon
      Administrator
      • Apr 2002
      • 44669

      #3
      Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

      Check your files have those ID tags written to them, specifially Disc and Compilation (only on compilation discs), without them batch converter cannot name the tracks.
      Spoon
      www.dbpoweramp.com

      Comment

      • garym
        dBpoweramp Guru

        • Nov 2007
        • 5920

        #4
        Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

        The FLAC files do contain both disc tags and compilation tags (when the CD is a compilation).

        The first code box is the file information from dbpoweramp for the FLAC file. This is from a two disc set. It does contain the disc field (note that it indicates disc is 1). The FLAC file has the Disc number in the file name. And when ripped to FLAC, the files are saved as:

        Edith Piaf\Enregistrements publics vol. 2\Disc 1\filename.flac

        Code:
        Artist Edith Piaf
        Title Comme moi
        Album Enregistrements publics vol. 2
        Track 01/19
        Disc 1
        Genre Vocal
        Year 
        Rating 
        Composer 
        Size 14.58 MB  (46% of original, 1 to 1 compression)
        Original Size 31.36 MB
        Length 3 minutes 6 seconds
        Channels 2  (stereo)
        Sample Rate 44.1 KHz; 
        Sample Size 16 bit
        Bit Rate 1,411 kbps
        Encoder FLAC reference libFLAC 1.2.0 20070715
        Encoder Settings 
        Audio Quality Perfect (Lossless)
        Contains CRC, ReplayGain, ID Tag [Vorbis Comments]
        Channel Mapping 
        File 01-Comme moi-Enregistrements publics vol. 2-Disc1-Edith Piaf
        Type FLAC    [.flac]
        Below is the information on the mp3 created with batch conversion. Note that it also indicates Disc 1. However, the file name doesn't include the Disc #, and the mp3 files are not created with the expected directory structure. Instead, the mp3 files are all in:

        Edith Piaf\Enregistrements publics vol. 2\filename.mp3

        The individual files continue to carry the Disc identifier in the tags, but the naming didn't work and the directory structure didn't work.

        Code:
        Artist Edith Piaf
        Title Comme moi
        Album Enregistrements publics vol. 2
        Track 01/19
        Disc 1
        Genre Vocal
        Year 
        Rating 
        Composer 
        Size 3.7 MB  (11% of original, 1 to 1 compression)
        Original Size 31.36 MB
        Length 3 minutes 6 seconds
        Channels 2  (stereo)
        Sample Rate 44.1 KHz; 
        Sample Size 16 bit
        Bit Rate 166 kbps
        Encoder LAME 3.97 
        Encoder Settings Variable Bit Rate  -V 2  (Standard)
        Audio Quality High  (Lossy)
        Contains ReplayGain, ID Tag [ID3v2.3 (UTF16) & ID3v1.1]
        Channel Mapping Left, Right
        File 01-Comme moi-Enregistrements publics vol. 2-Edith Piaf
        Type MPEG layer 3    [.mp3]
        When I have compilation discs, the batch ripper DOES place the mp3 album directories underneath the COMPILATION subdirectory as it should, but under album name, there is no separate Disc 1, Disc 2, etc. subdirectories as expected (and as does happen with the original FLAC ripping).

        Comment

        • garym
          dBpoweramp Guru

          • Nov 2007
          • 5920

          #5
          Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

          Although still interested in what I'm missing above, I have found a way to create the exact same directory structure with the mp3 files as I have with the FLACs. I use the following in dynamic naming. The original files are in
          FLAC/Artist/Albumname/Disc#/tracktitle.flac

          The mp3 files end up in
          MP3/Artist/Albumname/Disc#/tracktitle.mp3


          Code:
          Folder:   D:\MP3\
          Dynamic naming: [TRIMFIRSTFOLDER][origpath]\[origfilename][]

          Comment

          • Spoon
            Administrator
            • Apr 2002
            • 44669

            #6
            Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

            Install the [Audio Info] Codec from Codec Central, and run it (on default settings) on that FLAC file (one with Compilation set) please, post the results.
            Spoon
            www.dbpoweramp.com

            Comment

            • garym
              dBpoweramp Guru

              • Nov 2007
              • 5920

              #7
              Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

              This file is part of a compilation disc that has four discs (this is from disc 1). You can see that the original FLAC file was placed in a separate disc subdirectory and included the Disc # in the file name. But when using the same dynamic naming for converting to mp3 (noted in first posting above) all four discs are in a single subdirectory for the album and disc # is not in mp3 file name. However, the mp3 files do contain the correct disc field.

              Code:
              ========================================
              Audio Details for: D:\TempFLACfiles\Compilations\100 refrains pour la Libération\Disc 1\01-Le chant des partisans-100 refrains pour la Libération-Disc1-Germaine Sablon.flac
              
              Length: 2 minutes 22 seconds
              Channels: 2  (stereo)
              Sample Rate: 44.1 KHz
              Sample Size: 16 bit
              Bit Rate: 1,411 kbps  (CD)
              
              Audio Properties:
              
                  Audio Quality: Perfect (Lossless)
                  Encoder: FLAC reference libFLAC 1.2.0 20070715
                  Sample Count: 6,269,844
                  ID Tag: Vorbis Comments
                  Contains: CRC, ReplayGain, ID Tag [Vorbis Comments]
                  Gapless: Yes
              
              ID Tags:
              
                  AccurateRipResult: AccurateRip: Not in database   Secure: Yes   [63EC928A]
                  AccurateRipDiscID: 025-004105a2-049f22aa-5a113719-1
                  Title: Le chant des partisans
                  Artist: Germaine Sablon
                  Album: 100 refrains pour la Libération
                  Genre: Vocal
                  Year: 2004
                  Disc: 1
                  Track: 01/25
                  Compilation: 1
                  Source: CD (Lossless)
                  Encoded By: dBpoweramp Release 12.4
                  Encoder: FLAC 1.2.0
                  Encoder Settings: -compression-level-8 -verify
                  Length: 142173
                  CDDB Disc ID: 5A113719
              Below is the audio info on the mp3 file created. It is LAME with Replaygain album mode DSP and an update ID tag command that copies the compilation tag into a tag called ITUNESCOMPILATION.

              Code:
              ========================================
              Audio Details for: D:\Compilations\100 refrains pour la Libération\01-Le chant des partisans-100 refrains pour la Libération-Germaine Sablon.mp3
              
              Length: 2 minutes 22 seconds
              Channels: 2  (stereo)
              Sample Rate: 44.1 KHz
              Sample Size: 16 bit
              Bit Rate: 139 kbps
              
              Audio Properties:
              
                  Audio Quality: Medium  (Lossy)
                  Encoder: LAME 3.97 
                  Encoder Settings: Variable Bit Rate  -V 2  (Standard)
                  Channel Mapping: Left, Right
                  Channel Coupling: Joint-Stereo  (Mid Side)
                  Sample Count: 6,269,844
                  MPEG Version: MPEG 1 Layer III
                  MPEG Technical: Header: Lame [delay: 576 padding: 2220]   Bits: Original
                  ID Tag: ID3v2.3 (UTF16) & ID3v1.1
                  Contains: ReplayGain, ID Tag [ID3v2.3 (UTF16) & ID3v1.1]
                  Gapless: Yes
              
              ID Tags:
              
                  AccurateRipResult: AccurateRip: Not in database   Secure: Yes   [63EC928A]
                  AccurateRipDiscID: 025-004105a2-049f22aa-5a113719-1
                  Title: Le chant des partisans
                  Artist: Germaine Sablon
                  Album: 100 refrains pour la Libération
                  Genre: Vocal
                  Year: 2004
                  Disc: 1
                  Track: 01/25
                  Compilation: 1
                  Source: CD (Lossless)
                  Encoded by: dBpoweramp Release 12.4
                  Encoder: FLAC 1.2.0
                  Encoder Settings: -compression-level-8 -verify
                  Length: 142173
                  CDDB Disc ID: 5A113719
                  ITUNESCOMPILATION: 1
              Last edited by garym; February 15, 2008, 11:20 AM.

              Comment

              • Spoon
                Administrator
                • Apr 2002
                • 44669

                #8
                Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

                Thanks Gary, will mark as a bug to look at.
                Spoon
                www.dbpoweramp.com

                Comment

                • Spoon
                  Administrator
                  • Apr 2002
                  • 44669

                  #9
                  Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

                  Gary,

                  Can you try R13 (the latest alpha version), I am trying your string:

                  [IFCOMP]Compilations\[album] [IFMULTI] \Disc [disc][]\[track]-[title]-[album][IFMULTI]-Disc[disc][]-[artist][][IF!COMP][artist]\[album][IFMULTI] \Disc [disc][]\[track]-[title]-[album][IFMULTI]-Disc[disc][]-[artist][]

                  On a flac file with Compilation '1' and it goes into a compilations folder (if using Music Converter >> dynamic naming).
                  Spoon
                  www.dbpoweramp.com

                  Comment

                  • garym
                    dBpoweramp Guru

                    • Nov 2007
                    • 5920

                    #10
                    Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

                    I'll do this in the next few days and report back.

                    Comment

                    • garym
                      dBpoweramp Guru

                      • Nov 2007
                      • 5920

                      #11
                      Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

                      I've installed R13 and checked the behavior. I still get the same outcome. Note that the problem was not putting files under a compilation subdirectory, but putting files in separate disc folders under the album folder. That is, the FLAC files are originally ripped to separate disc folders under the album name when multidisc, but when converting the FLAC files with the same dynamic naming convention, the tag disc ID is correct, but all the song files are in a single album directory versus album/disc1, disc 2, etc. That is, in ripping song to FLAC with following dynamic naming:

                      Code:
                      [IFCOMP]Compilations\[album] [IFMULTI] \Disc [disc][]\[track]-[title]-[album][IFMULTI]-Disc[disc][]-[artist][][IF!COMP][artist]\[album][IFMULTI] \Disc [disc][]\[track]-[title]-[album][IFMULTI]-Disc[disc][]-[artist][]
                      Folders look like:

                      artist/album/disc1/track - title

                      (with disc 2, disc 3, etc. all falling under the album as separate subdirectories.

                      When using exact same dynamic naming to go from FLAC to mp3(lame) using the batch converter and selecting the directory with album (and lower level subdirectories with disc 1, disc 2) the songs all end up under a single album directory:

                      artist/album/track - title

                      All songs DO have correct Disc ID in tags, etc. See below for file info from FLAC and then from mp3.

                      Code:
                      ========================================
                      Audio Details for: S:\FLAC\Grateful Dead\1969-02-27 - Fillmore West (Box Set Limited Edition)\Disc 2\04-St. Stephen ».flac
                      
                      Length: 8 minutes 22 seconds
                      Channels: 2  (stereo)
                      Sample Rate: 44.1 KHz
                      Sample Size: 16 bit
                      Bit Rate: 1,411 kbps  (CD)
                      
                      Audio Properties:
                      
                          Audio Quality: Perfect (Lossless)
                          Encoder: FLAC reference libFLAC 1.2.0 20070715
                          Sample Count: 22,138,200
                          ID Tag: Vorbis Comments
                          Contains: Album Art, CRC, ReplayGain, ID Tag [Vorbis Comments]
                          Gapless: Yes
                      
                      ID Tags:
                      
                          replaygain_album_gain: -5.25 dB
                          replaygain_track_gain: -4.67 dB
                          replaygain_track_peak: 0.966095
                          AccurateRipResult: AccurateRip: Accurate (confidence 1)   [2A5C6884]
                          AccurateRipDiscID: 007-0013dcc9-007cad6b-58125807-4
                          Title: St. Stephen >
                          Track: 04/07
                          Length: 502000
                          CDDB Disc ID: 58125807
                          Disc: 2
                          DISCNUMBER: 2
                          Album: 1969-02-27 - Fillmore West (Box Set Limited Edition)
                          Comment: Disc 2 Box Set
                          Artist: Grateful Dead
                          Encoded By: dBpoweramp Release 12.4
                          Encoder: FLAC 1.2.0
                          Encoder Settings: -compression-level-8 -verify
                          Genre: Live Jams
                          replaygain_album_peak: 0.966125
                          Source: CD (Lossless)
                          Year: 1969
                          _albumart_1_Front Album Cover: DATA Length: 25241   ......JFIF.....`.`..
                      Code:
                      ========================================
                      Audio Details for: C:\My Music\Grateful Dead\1969-02-27 - Fillmore West (Box Set Limited Edition)\04-St. Stephen »-1969-02-27 - Fillmore West (Box Set Limited Edition)-Grateful Dead.mp3
                      
                      Length: 8 minutes 22 seconds
                      Channels: 2  (stereo)
                      Sample Rate: 44.1 KHz
                      Sample Size: 16 bit
                      Bit Rate: 185 kbps
                      
                      Audio Properties:
                      
                          Audio Quality: High  (Lossy)
                          Encoder: LAME 3.97 
                          Encoder Settings: Variable Bit Rate  -V 2  (Standard)
                          Channel Mapping: Left, Right
                          Channel Coupling: Joint-Stereo
                          Sample Count: 22,138,200
                          MPEG Version: MPEG 1 Layer III
                          MPEG Technical: Header: Lame [delay: 576 padding: 1512]   Bits: Original
                          ID Tag: ID3v2.3 (UTF16)
                          Contains: Album Art, ReplayGain, ID Tag [ID3v2.3 (UTF16)]
                          Gapless: Yes
                      
                      ID Tags:
                      
                          AccurateRipResult: AccurateRip: Accurate (confidence 1)   [2A5C6884]
                          AccurateRipDiscID: 007-0013dcc9-007cad6b-58125807-4
                          Title: St. Stephen >
                          Track: 04/07
                          Length: 502000
                          CDDB Disc ID: 58125807
                          Disc: 2
                          DISCNUMBER: 2
                          Album: 1969-02-27 - Fillmore West (Box Set Limited Edition)
                          Comment: Disc 2 Box Set
                          Artist: Grateful Dead
                          Encoded by: dBpoweramp Release 12.4
                          Encoder: FLAC 1.2.0
                          Encoder Settings: -compression-level-8 -verify
                          Genre: Live Jams
                          Source: CD (Lossless)
                          Year: 1969
                          _albumart_1_Front Album Cover: DATA Length: 25241   ......JFIF.....`.`..
                          CONTENTGROUP: Created From FLAC File
                          replaygain_track_gain: -4.67 dB
                          replaygain_track_peak: 0.966095
                          replaygain_album_gain: -5.25 dB
                          replaygain_album_peak: 0.966125

                      Comment

                      • garym
                        dBpoweramp Guru

                        • Nov 2007
                        • 5920

                        #12
                        Re: Creating Subdirectories for Multiple Disc Sets in File Conversion

                        Duh! The answer turns out to be quite simple. In my tagging options I've set disc to be simply disc number rather than disc number/total (i.e., 1/2). When ripping, the program knows that the CD is 1 of 2, 2 of 2, etc. But when converting, the FLAC tags only contain the disc number without the total discs and obviously there is no way for the program to know that there are multiple discs. Problem solved!

                        Comment

                        Working...