Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Finally, after all these years!

Finally, after all these years!

Scheduled Pinned Locked Moved The Lounge
javascriptcloudcsharplinqcom
35 Posts 14 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sander RosselS Sander Rossel

    Ever since high school, something like 2000/2001, I've been an almost religious MP3 tagger. Aside from where I got said MP3's (mostly torrents, back in the day), tagging MP3's can be a lot of work. Especially when files.are.named.like.this.mp3, or_this.mp3, or worse, このような.mp3. So back when I started programming, 10 years ago, I thought to myself I could make something to make it easier. Something that would either read tags and rename the file, or read the file name and tag accordingly. I wrote something half-assed back then, but never what I had in mind. Then came Spotify and Bandcamp and I hardly ever needed MP3's anymore. But last week I started ripping my considerable CD collection into 320kbps MP3's and this project popped into my head. So after 10 years I finally did it! :D I can specify a file name template, like "C:\Music\{artist}\{album}\{disc}\{track} - {title}.mp3" and all MP3 files inside C:\Music get tagged with the appropriate tag (given the file name follows the template). Likewise, I can add an output template and my MP3's will be renamed and/or moved to the new folder. It can even fetch track titles from Discogs. Ten years too late, and that was already ten years too late, but it gives me a satisfied feeling nonetheless :D

    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

    M Offline
    M Offline
    Mircea Neacsu
    wrote on last edited by
    #10

    Quote:

    ripping my considerable CD collection into 320kbps MP3's

    Aren't your CD's recorded at 44.1k? What will you achieve by upsampling?

    Mircea

    Sander RosselS S 2 Replies Last reply
    0
    • D Daniel Pfeffer

      Sander Rossel wrote:

      I wanted to roll out my own because that's what real programmers do

      But real engineers survey the market, and then decide to "make or buy". Your time is valuable; don't waste it reinventing the wheel.

      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

      Sander RosselS Offline
      Sander RosselS Offline
      Sander Rossel
      wrote on last edited by
      #11

      Daniel Pfeffer wrote:

      Your time is valuable; don't waste it reinventing the wheel.

      All work and no pay makes Jack a dull boy! ;)

      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

      1 Reply Last reply
      0
      • M Mircea Neacsu

        Quote:

        ripping my considerable CD collection into 320kbps MP3's

        Aren't your CD's recorded at 44.1k? What will you achieve by upsampling?

        Mircea

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #12

        I have no idea what that means. As far as I understood, 320kbps is near-lossless audio quality, as opposed to 192 or even 128. Of course I could go FLAC, but that's way too much MBs per minute.

        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

        F M 2 Replies Last reply
        0
        • H honey the codewitch

          I think filebot could have done it for you. free download. just sayin' congratulations in any case.

          Real programmers use butterflies

          Sander RosselS Offline
          Sander RosselS Offline
          Sander Rossel
          wrote on last edited by
          #13

          And miss out on this achievement? Nah :D However, now I could take a look at filebot (I just needed to write it, not actually use it) :laugh:

          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

          W 1 Reply Last reply
          0
          • N Nelek

            Sander Rossel wrote:

            In any case, I wanted to roll out my own because that's what real programmers do :cool:

            To quote @CPallini... Real Programmers are Klingon Programmers

            M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

            Sander RosselS Offline
            Sander RosselS Offline
            Sander Rossel
            wrote on last edited by
            #14

            leSSov vIleghbogh suvwI' tIlegh. I don't think it translates back to English :laugh:

            Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

            N 1 Reply Last reply
            0
            • Sander RosselS Sander Rossel

              I have no idea what that means. As far as I understood, 320kbps is near-lossless audio quality, as opposed to 192 or even 128. Of course I could go FLAC, but that's way too much MBs per minute.

              Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

              F Offline
              F Offline
              Forogar
              wrote on last edited by
              #15

              I ripped all mine to 128, I tried 320 but I couldn't tell the difference except for having way bigger files. I also temporarily put them on a USB stick to play in the car - usually at 64kbps because the sound quality is basically the same when you are driving around I can get hundreds of tracks on an 8GB stick. PS. I use Mp3Tag for all the tagging and/or renaming. it works very well and saved me from writing my own.

              - I would love to change the world, but they won’t give me the source code.

              Sander RosselS 1 Reply Last reply
              0
              • F Forogar

                I ripped all mine to 128, I tried 320 but I couldn't tell the difference except for having way bigger files. I also temporarily put them on a USB stick to play in the car - usually at 64kbps because the sound quality is basically the same when you are driving around I can get hundreds of tracks on an 8GB stick. PS. I use Mp3Tag for all the tagging and/or renaming. it works very well and saved me from writing my own.

                - I would love to change the world, but they won’t give me the source code.

                Sander RosselS Offline
                Sander RosselS Offline
                Sander Rossel
                wrote on last edited by
                #16

                Yeah, I did the same, especially because I used to have a 500 GB HD back in the day, which was full (with games and music). For my MP3 player it's nice to have everything in 128 kbps as well. However, I can't quite pinpoint it, but I notice a difference when I listen to a high quality recording or my own 128 kbps, especially on my headphones. So since storage is no longer an issue, I decided to make my own collection high quality as well.

                Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                F J 2 Replies Last reply
                0
                • Sander RosselS Sander Rossel

                  And miss out on this achievement? Nah :D However, now I could take a look at filebot (I just needed to write it, not actually use it) :laugh:

                  Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                  W Offline
                  W Offline
                  W Balboos GHB
                  wrote on last edited by
                  #17

                  You have completed this journey.   No more need be explained.

                  Ravings en masse^

                  "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                  "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                  Sander RosselS 1 Reply Last reply
                  0
                  • Sander RosselS Sander Rossel

                    I have no idea what that means. As far as I understood, 320kbps is near-lossless audio quality, as opposed to 192 or even 128. Of course I could go FLAC, but that's way too much MBs per minute.

                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                    M Offline
                    M Offline
                    Mircea Neacsu
                    wrote on last edited by
                    #18

                    Your music was once an analog signal. When they made the CD they cut it in little pieces 44100 times per second, recorded the value at each point and wrote it on the CD. Now you come and record 320000 values each second. Your ripper program is going faithfully repeat the same value 7 times without any benefit for music quality. This is the executive summary for a tl;dr see Digital Audio Basics: Sample Rate and Bit Depth | PreSonus[^]

                    Mircea

                    J T 2 Replies Last reply
                    0
                    • Sander RosselS Sander Rossel

                      Yeah, I did the same, especially because I used to have a 500 GB HD back in the day, which was full (with games and music). For my MP3 player it's nice to have everything in 128 kbps as well. However, I can't quite pinpoint it, but I notice a difference when I listen to a high quality recording or my own 128 kbps, especially on my headphones. So since storage is no longer an issue, I decided to make my own collection high quality as well.

                      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                      F Offline
                      F Offline
                      Forogar
                      wrote on last edited by
                      #19

                      Quote:

                      especially on my headphones

                      Ah! There's your problem right there! I never use headphones and play everything on my computer speakers (or the aforementioned car) so the quality difference really doesn't show up. ;-)

                      - I would love to change the world, but they won’t give me the source code.

                      Sander RosselS 1 Reply Last reply
                      0
                      • J Jorgen Andersson

                        Almost as if you haven't heard about Mp3tag - the universal Tag Editor (ID3v2, MP4, OGG, FLAC, ...)[^]

                        Wrong is evil and must be defeated. - Jeff Ello Never stop dreaming - Freddie Kruger

                        V Offline
                        V Offline
                        Vikram A Punathambekar
                        wrote on last edited by
                        #20

                        MP3Tag is AWESOME! I wish it could do a certain routine for all subfolders in a folder, like: grab tags from Discogs, rename files to a certain pattern, save the m3u playlist, and move on to the next subfolder. All things it does very well, but only manually.

                        Cheers, विक्रम "We have already been through this, I am not going to repeat myself." - fat_boy, in a global warming thread :doh:

                        1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          leSSov vIleghbogh suvwI' tIlegh. I don't think it translates back to English :laugh:

                          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                          N Offline
                          N Offline
                          Nelek
                          wrote on last edited by
                          #21

                          Sander Rossel wrote:

                          I don't think it translates back to nice English

                          FTFY ;) ;P

                          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                          1 Reply Last reply
                          0
                          • M Mircea Neacsu

                            Quote:

                            ripping my considerable CD collection into 320kbps MP3's

                            Aren't your CD's recorded at 44.1k? What will you achieve by upsampling?

                            Mircea

                            S Offline
                            S Offline
                            Scott Serl
                            wrote on last edited by
                            #22

                            The 320kbps does not refer to the sampling rate, but the data transmission rate. I just calculated the transmission rate for a particular flac file and it is 1961kbps. Encoding a file with the mp3 codec does not change the sampling rate, but instead modifies the data based on how we hear sound in order to reduce the data size without reducing the apparent sound quality much.

                            M 1 Reply Last reply
                            0
                            • S Scott Serl

                              The 320kbps does not refer to the sampling rate, but the data transmission rate. I just calculated the transmission rate for a particular flac file and it is 1961kbps. Encoding a file with the mp3 codec does not change the sampling rate, but instead modifies the data based on how we hear sound in order to reduce the data size without reducing the apparent sound quality much.

                              M Offline
                              M Offline
                              Mircea Neacsu
                              wrote on last edited by
                              #23

                              I stand corrected! 320kps is the bit rate while 44.1k is the sampling rate. What's the difference? Each sample is 16 bits wide and considering that there are 2 channels that makes the bit rate 32 * 44.1k = 1411.2kbps. MP3 compresses it down to 320kbps. That should teach me not to post before researching :(

                              Mircea

                              Sander RosselS N 2 Replies Last reply
                              0
                              • M Mircea Neacsu

                                Your music was once an analog signal. When they made the CD they cut it in little pieces 44100 times per second, recorded the value at each point and wrote it on the CD. Now you come and record 320000 values each second. Your ripper program is going faithfully repeat the same value 7 times without any benefit for music quality. This is the executive summary for a tl;dr see Digital Audio Basics: Sample Rate and Bit Depth | PreSonus[^]

                                Mircea

                                J Offline
                                J Offline
                                jeron1
                                wrote on last edited by
                                #24

                                :confused: 44.1K samples per second is different than a 320kbps bit rate.

                                "the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

                                1 Reply Last reply
                                0
                                • F Forogar

                                  Quote:

                                  especially on my headphones

                                  Ah! There's your problem right there! I never use headphones and play everything on my computer speakers (or the aforementioned car) so the quality difference really doesn't show up. ;-)

                                  - I would love to change the world, but they won’t give me the source code.

                                  Sander RosselS Offline
                                  Sander RosselS Offline
                                  Sander Rossel
                                  wrote on last edited by
                                  #25

                                  The difference also depends on the kind of music you listen to. Lo-fi basement black metal, not so much, but well recorded classical music, yes please! :D

                                  Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                  1 Reply Last reply
                                  0
                                  • M Mircea Neacsu

                                    I stand corrected! 320kps is the bit rate while 44.1k is the sampling rate. What's the difference? Each sample is 16 bits wide and considering that there are 2 channels that makes the bit rate 32 * 44.1k = 1411.2kbps. MP3 compresses it down to 320kbps. That should teach me not to post before researching :(

                                    Mircea

                                    Sander RosselS Offline
                                    Sander RosselS Offline
                                    Sander Rossel
                                    wrote on last edited by
                                    #26

                                    I wasn't going to say that in so much detail, but yes, kbps and sampling rate are different things :laugh: I don't really know what those values mean, but 320 kbps == good quality. I'm not touching any sample rates, although I do have a program that let's me set it, as well as kbps.

                                    Mircea Neacsu wrote:

                                    That should teach me not to post before researching :(

                                    You are hereby forgiven ;p

                                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                    T 1 Reply Last reply
                                    0
                                    • W W Balboos GHB

                                      You have completed this journey.   No more need be explained.

                                      Ravings en masse^

                                      "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                      "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                      Sander RosselS Offline
                                      Sander RosselS Offline
                                      Sander Rossel
                                      wrote on last edited by
                                      #27

                                      I think you might be the only one who got the essence of my message :omg:

                                      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                      1 Reply Last reply
                                      0
                                      • N Nelek

                                        Sander Rossel wrote:

                                        In any case, I wanted to roll out my own because that's what real programmers do :cool:

                                        To quote @CPallini... Real Programmers are Klingon Programmers

                                        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                                        C Offline
                                        C Offline
                                        CPallini
                                        wrote on last edited by
                                        #28

                                        :-D

                                        "In testa che avete, Signor di Ceprano?" -- Rigoletto

                                        1 Reply Last reply
                                        0
                                        • M Mircea Neacsu

                                          I stand corrected! 320kps is the bit rate while 44.1k is the sampling rate. What's the difference? Each sample is 16 bits wide and considering that there are 2 channels that makes the bit rate 32 * 44.1k = 1411.2kbps. MP3 compresses it down to 320kbps. That should teach me not to post before researching :(

                                          Mircea

                                          N Offline
                                          N Offline
                                          Nelek
                                          wrote on last edited by
                                          #29

                                          Mircea Neacsu wrote:

                                          That should teach me not to post before researching

                                          Don't worry... that is true for maaaaaaaaaaany people here and in the internet (me included... I have had my :doh: :doh: :doh: :doh: :doh: moments too :-O :laugh: :laugh: )

                                          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups