Thread: Audio Sampling Rate

  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446

    Audio Sampling Rate

    Exiftool reports on a video file the following two tags for one of the audio tracks:
    Code:
    Audio Sample Rate            : 24000
    Output Audio Sample Rate     : 48000
    What is the difference between 'output sample rate' and 'sample rate'?
    Last edited by Mario F.; 06-16-2016 at 06:45 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I'm thinking the audio track is going to be upsampled. If that happens then the tool recorded what it is and what the output sample rate will be.

  3. #3
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    That makes sense, indeed. All other audio tracks are 48 KHz.
    So this means that video or audio players can convert audio samples on the fly? I had this notion that audio sampling always had to be pre-recorded.
    Last edited by Mario F.; 06-16-2016 at 07:37 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Sure you can. The audio samples represents a sine curve, having sampled different points along the curve at different points in time. We reconstruct this curve from the sample data, but we could also try to "guess" how the curve looks like by using interpolation between samples. By inventing more samples and adding them to the list of samples, we change the samplerate.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Ok, thanks both
    This is an area where I have virtually zero knowledge about. Video and audio still mystifies me.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. stratified sampling size calculation
    By joakwa in forum C Programming
    Replies: 5
    Last Post: 04-22-2016, 07:44 AM
  2. Adaptive Rejection Sampling
    By swarup in forum C Programming
    Replies: 7
    Last Post: 08-03-2011, 02:17 PM
  3. Bayesian Newwork : Logic Sampling
    By TenJou00 in forum C Programming
    Replies: 1
    Last Post: 07-29-2011, 07:13 AM
  4. Uniform sampling
    By Dedalus in forum C Programming
    Replies: 6
    Last Post: 06-29-2009, 04:30 PM
  5. Sampling rate help
    By cbraddoss in forum C++ Programming
    Replies: 0
    Last Post: 09-16-2005, 09:31 AM

Tags for this Thread