World Library  
Flag as Inappropriate
Email this Article

Sample rate conversion

Article Id: WHEBN0003415111
Reproduction Date:

Title: Sample rate conversion  
Author: World Heritage Encyclopedia
Language: English
Subject: Hardware mixing, Resampling, Full scale, Display motion blur, Sound Blaster X-Fi
Collection: Digital Signal Processing
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Sample rate conversion

Sample-rate conversion is the process of changing the sampling rate of a discrete signal to obtain a new discrete representation of the underlying continuous signal.[1] Application areas include image scaling,[2] and audio/visual systems, where different sampling-rates may be used for engineering, economic, or historical reasons.

For example, Compact Disc Digital Audio and Digital Audio Tape systems use different sampling rates, and American television, European television, and movies all use different frame rates. Sample rate conversion prevents changes in speed and pitch that would otherwise occur when transferring recorded material between such systems.

Within specific domains or for specific conversions, the following alternative terms for sample-rate conversion are also used: sampling-frequency conversion, resampling, upsampling, downsampling, interpolation, decimation, upscaling, downscaling. The term multi-rate digital signal processing is sometimes used to refer to systems that incorporate sample-rate conversion.

Contents

  • Techniques 1
  • Examples 2
    • Film and television 2.1
    • Audio 2.2
  • See also 3
  • Notes 4
  • References 5
  • Further reading 6
  • External links 7

Techniques

Conceptual approaches to sample-rate conversion include: converting to an analog continuous signal, then re-sampling at the new rate, or calculating the values of the new samples directly from the old samples. The latter approach is more satisfactory since it introduces less noise and distortion.[3] Two possible implementation methods are as follows:

  1. If the ratio of the two sample-rates is (or can be approximated by)[nb 1][4] a fixed, rational number L/M: generate an intermediate signal by inserting L–1 0s between each of the original samples. Low-pass filter this signal at half of the lower of the two rates. Select every Mth sample from the filtered output, to obtain the result.[5]
  2. Treat the samples as geometric points and create any needed new points by interpolation. Choosing an interpolation method is a trade-off between implementation complexity and conversion quality (according to application requirements). Commonly used are: ZOH (for film/video frames), cubic (for image processing) and windowed sinc function (for audio).

The two methods are mathematically identical: picking an interpolation function in the second scheme is equivalent to picking the impulse response of the filter in the first scheme. Linear interpolation is equivalent to a triangular impulse response; windowed sinc approximates a brick-wall filter (it approaches the desirable "brick wall" filter as the number of points increase). The length of the impulse response of the filter in method 1 corresponds to the number of points used in interpolation in method 2.

In method 1, a slow pre-computation (such as the Remez algorithm) can be used to obtain an optimal (per application requirements) filter design. Method 2 will work in more general cases, e.g. where the ratio of sample-rates is not rational, or two real-time streams must be accommodated, or the sample-rates are time-varying.

See decimation and upsampling for further information on sample-rate conversion filter design/implementation.

Examples

Film and television

The slow-scan TV signals from the Apollo moon missions were converted to the conventional TV rates for the viewers at home.

Movies (shot at 24 frames per second) are converted to television (roughly 50 or 60 fields[nb 2] per second). To convert a 24 frame/sec movie to 60 field/sec television, for example, alternate movie frames are shown 2 and 3 times, respectively. For 50 Hz systems such as PAL each frame is shown twice. Since 50 is not exactly 2×24, the movie will run 50/48 = 4% faster, and the audio pitch will be 4% higher, an effect known as PAL speed-up. This is often accepted for simplicity, but more complex methods are possible that preserve the running time and pitch. Every twelfth frame can be repeated 3 times rather than twice, or digital interpolation (see above) can be used in a video scaler.

Audio

Audio on Compact Disc has a sampling rate of 44.1 kHz; to transfer it to Digital Audio Tape, which uses 48 kHz, method 1 above can be used with L=160, M=147 (since 48000/44100 = 160/147).[5] For the reverse conversion, the values of L and M are swapped. Per above, in both cases, the low-pass filter should be to 22.05 kHz.

See also

Sample rate conversion in multiple dimensions:

Techniques and processing that may involve sample-rate conversion:

Notes

  1. ^ For example, the irrational ratio 21/12, corresponding to one equal-temperament semitone, might be approximated by 196/185 (roughly 0.99994 semitones).
  2. ^ A field is half of an interlaced frame – just the odd or even lines.

References

  1. ^ Oppenheim, Alan V.; Schafer, Ronald W.; Buck., John R. (1989). Discrete-time signal processing, Volume 2. Englewood Cliffs: Prentice-hall. 
  2. ^ Lyons, Richard (2010). "10. Sample Rate Conversion". Understanding Digital Signal Processing. Prentice Hall.  
  3. ^ Antoniou, Andreas (2006). Digital Signal Processing. McGraw-Hill. p. 830.  
  4. ^ Partch, Harry (2009). Genesis of a Music (Second ed.). Da Capo Press. p. 101.  
  5. ^ a b Rajamani, K.; Yhean-Sen Lai; Furrow, C. W. (2000). "An efficient algorithm for sample rate conversion from CD to DAT" (PDF). IEEE Signal Processing Letters 7 (10): 288.  

Further reading

  • Crochiere; Rabiner. Multirate Digital Signal Processing.  

External links

  • Digital Audio Resampling Home Page
  • Multi-Rate Processing and Sample Rate Conversion: A Tutorial
  • The Quest For The Perfect Resampler (PDF)
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.