Sample Rate, Bit Depth, Bit Rate, and You(r Ears), Explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ต.ค. 2024

ความคิดเห็น • 33

  • @Hand-in-Shot_Productions
    @Hand-in-Shot_Productions 8 หลายเดือนก่อน +5

    I was assigned to watch this for my college audio-editing class, and I found this quite an informative video! I have learned several new terms today: sample rate, bit depth, and bit rate, as well as some other terms.
    Thanks for the video! I'll subscribe!

    • @DavidMacDonald
      @DavidMacDonald  8 หลายเดือนก่อน +1

      Thanks so much for the comment! Would you mind sharing what college? I'm just curious!

  • @Yusfi5150
    @Yusfi5150 ปีที่แล้ว +5

    The best explanation on youtube. Thanks Bro

  • @Harindu101
    @Harindu101 10 หลายเดือนก่อน +1

    Thanks a ton for explain things to me. Really appreciate it!

  • @stewartmoore5158
    @stewartmoore5158 ปีที่แล้ว

    This deserves a lot more views.

  • @TREND3Y
    @TREND3Y หลายเดือนก่อน +1

    Yay College,... to be honest I learned a lot from this video thank you.

  • @dormin600
    @dormin600 6 หลายเดือนก่อน

    very clear and concise thank you for the wisdom

  • @davidr00
    @davidr00 ปีที่แล้ว +1

    Dude… thanks for the info. 🖤

  • @jmadrid4264
    @jmadrid4264 ปีที่แล้ว +1

    great video, thank you so much!

  • @GodmanchesterGoblin
    @GodmanchesterGoblin 4 หลายเดือนก่อน +1

    I would add that not all WAV files are uncompressed, although most of them are. The exceptions are WAV files using ADPCM compression.

    • @GodmanchesterGoblin
      @GodmanchesterGoblin 4 หลายเดือนก่อน

      @nicksterj Yes, although I had to look that one up. 😊 I have only worked with LPCM and ADPCM in real products.

    • @Jacques.krause
      @Jacques.krause 3 หลายเดือนก่อน +1

      Yes exactly, wav is only a container and its "codec" (if you can call it that) is usually PCM.
      The wav container can hold almost any other codec actually but most devices/ software won't know what to do with it 😂

  • @KevinWeed
    @KevinWeed 3 ปีที่แล้ว +1

    Thanks.

  • @wblayney1992
    @wblayney1992 3 ปีที่แล้ว +2

    This is a good video going over some stuff that's tough to explain, but the analogy of digital images is a little bit misleading. Because it's not possible for us to create a mathematical function that describes the image coming from the sensors in our camera, our only option for making the digital copy closer to the analog equivalent is to reduce the amount of information lost at the sensor (increasing the resolution and bit depth). But audio is not like this - it actually is possible for us to create a mathematically perfect description of the analog signal such that it can be perfectly recreated again (much like lossless compression), and that's what the sampling theorem is all about. As long as you stick to the rules (fourier transform of 0 above Fmax / 2, constantly spaced samples etc), the digital signal is perfectly describing the analog input wave, and the reconstructed wave will sound identical to the input wave (ignoring aliasing filter slope and time domain distortion caused by it). This means that (again, with an ideal aliasing filter), there is literally 0 audible difference in the audible range between 44.1KHz, 48KHz, 96KHz, etc. Obviously this isn't true with photos, because you will always get something positive out of increasing the resolution! In this sense, a better analogy to audio is vector images, like SVG or PDFs. These use mathematical descriptions of the images, such that you can zoom in infinitely without degredation, and they perfectly represent the continous nature of the shapes despite being stored as a long discrete string of numbers.

    • @DavidMacDonald
      @DavidMacDonald  3 ปีที่แล้ว

      I disagree with your statement that vector graphics are a useful analogy. The ability to create a function to “perfectly” is very similar to vector graphics, but that’s not what’s happening when audio is recorded. Using FFTs and related techniques to model a sound is like vectorizing a bitmap, it’s a separate thing from the bitmap itself. Most audio is _never_ represented by a mathematical model. What you described is like a vector, but that’s not what I described in the video.

    • @DavidMacDonald
      @DavidMacDonald  4 หลายเดือนก่อน

      @@lyntedrockley7295it is very much not like vector graphics in the way the data is stored digitally. Vector graphics would be more analogous to basic synthesis from unit generators.

  • @Taurus_007
    @Taurus_007 หลายเดือนก่อน

    Which bitrate is the best for 1080p video in handbrake

  • @WoWu-d5x
    @WoWu-d5x 17 วันที่ผ่านมา

    The classic misinterpretation of Nyquist because Nyquist does not say anything about quality but merely mathematically calculated a minimum requirement in the 1930s to enable correct reproduction in a channel. At that time, it was all about possible image transmission.
    There was neither digital technology nor the resulting filter problems.
    The article also does not take into account the possibilities of hearing, because the human brain receives partial information from an analog event every 7 microseconds.
    If this is shortened to 44.1, it is only a third of an analog sample. The information therefore sounds relatively rough. In addition, steep-edged filters used at 44.1 work very poorly. These problems are improved by increasing the sampling rate. The resulting harmonics partially replace what was cut off during recording and do not have the annoying aliasing effect as with video.

  • @ben94_
    @ben94_ 3 ปีที่แล้ว +1

    thank you

  • @elijahjflowers
    @elijahjflowers 10 หลายเดือนก่อน +1

    thanks, do you have any tips for understanding audio interpolation?

    • @DavidMacDonald
      @DavidMacDonald  10 หลายเดือนก่อน +1

      Interpolation happens any time the software has to make an educated guess about what is happening between the samples. This might happen if you are stretching or re-pitching audio, or just resampling a 44.1k clip into a 48k project.

    • @elijahjflowers
      @elijahjflowers 10 หลายเดือนก่อน

      @@DavidMacDonald thanks, but it’s hard to find which sinc formula is better to make that “guess” with and i’ve seen some linear interpolations that add samples to the file.

    • @DavidMacDonald
      @DavidMacDonald  10 หลายเดือนก่อน +1

      @@elijahjflowers interpolation always adds samples to the file. That’s its job. It isn’t ever going to be perfect and different algorithms will give different results in different circumstances. You just have to experiment.

  • @WAVSAudioStudio
    @WAVSAudioStudio หลายเดือนก่อน

    Is bitrate only applicable for lossy compressed formats like MP3 and aac

    • @DavidMacDonald
      @DavidMacDonald  หลายเดือนก่อน +1

      Correct! Bitrate describes the amount of data used to store each second of audio. I suppose you could identify a data per second of uncompressed audio but it wouldn’t really mean anything comparable to bitrate in a lossy-compressed file.

    • @WAVSAudioStudio
      @WAVSAudioStudio หลายเดือนก่อน

      @@DavidMacDonald So wav formats don't follow bitrate? And also MP3 formats don't have bit depth?

    • @DavidMacDonald
      @DavidMacDonald  หลายเดือนก่อน +1

      @@WAVSAudioStudio all digital audio has bit depth. Anything that is an MP3 started life as uncompressed audio with a bit depth. That got encoded/compressed to MP3 and lost some data, but to play it, it gets decoded again and turned back into a table of amplitude values, which are stored with some bit depth. I would wager the overwhelming number of MP3s are compressed 16-bit audio, though many might have been 24-bit audio during the creation process.

    • @WAVSAudioStudio
      @WAVSAudioStudio หลายเดือนก่อน

      @@DavidMacDonald Well said! But I could see from DAW that are bouncing 32 bit float MP3 files. I have only acces to set bitrate and sample rate but not bitdepth options. Whether we can convert the 32 bit float audio to 16 bit and so? Is it possible to do!! 💯

  • @andrewsheehy2441
    @andrewsheehy2441 3 หลายเดือนก่อน +1

    It is a common misconception that the Nyquist Limit allows accurate reconstruction of analog signal. It does not. The source of the Nyquist Limit comes from two papers pubished in 1928 and 1948 (Nyquist and Shannon, respectrively) and those papers are focused on digital communication. These papers do not deal with continuiously varying signals at all. In fact, for a high fidelity reconstuction you need to sample at at least 5x and preferably 10x the highest frequency present in the signal.

    • @andrewsheehy2441
      @andrewsheehy2441 3 หลายเดือนก่อน

      ​@nicksterj Thanks for your reply.
      If we look at that quote in more detail (p34 of Shannon's classic paper) we firstly see that we are assuming an infinite number of samples:
      Xn = [ ... , s_-2, s_-1, s_0, s_1 s_2, ...]
      We also see that the reconstruction is based on summing together an infinite set of sinc functions, with each one centred on a sample point and scaled using the value of f(t) at that point.
      This is the classic sinc reconstruction.
      We further see that f(t) is itself implicitly assumed to be equal to the sum of a set of sinusoids (which, by definition, means that f(t) is periodic with a period, T, defined by the LCM of the periods of the constituent sinusoids).
      As for the condition that the separation between adjacent samples must be less than half the period of the highest frequency component present in f(t) then this arises from the basis functions chosen for the reconstruction which are all zero at the sample points and have peak values halfway between the sample points: if f(t) contained sinusoids that had a half-wave duration that was less then the sample separation then the sinc functions - which do not have zeros between sample points - would not be usable.
      It’s worth pointing out that the sinc functions chosen are not special and could be replaced by piecewise parabolic functions or even triangle functions: because the reconstruction is based on an infinite set then all that is required of that set is that all unique pairs of functions are orthogonal and each basis function is equal to zero at all sample points, other than the one upon which it is centered.
      But in a practical case - where we have N samples, N reconstruction functions and are dealing with non-periodic signals - then the Nyquist limit is a crude guide at best.
      If one conducts some precise simulations with a test function that is composed of a finite set of sinusoids of different amplitudes, frequencies and phases (where we know for sure what the highest frequency component is) then sampling at the Nyquist limit, Sr == f_max. will definitely result in substantial reconstruction errors between samples.

    • @andrewsheehy2441
      @andrewsheehy2441 3 หลายเดือนก่อน

      ​@nicksterj In the field electrical engineering probably the most feared topic is digital signal processing (DSP). This is because deeply understanding what’s really going on requires a pretty decent level of competence with linear algebra, basis functions, trigonometry, calculus, matrices, complex numbers, Fourier analysis, probability and statistics, differential equations - as well as, these days, competence with coding and computational methods. It gets harder if you’re trying to do fancy things on an embedded system.
      It’s probably not surprising that the field is replete with misconceptions and misunderstandings - for instance we are told that in order to perform a DFT you need to use complex numbers and matrices. This is wrong: you can manage perfectly well without using any complex numbers at all.
      Most practising engineers simply don’t have the time or energy to really go deep. But if you do then one will find many nuances and insights which serve to keep the subject endlessly fascinating.
      Returning to the point I recall when the CD first came out the analog crows maintained that the digitisation at 44.1k samples per sec was somehow not a faithful way to represent music which (very optimistically) contains frequency components up to 20kHz. They were mostly unable to articulate why but they were right all along. I find that pretty amusing!