General Audio procedures FAQ

Source: Internet
Author: User

There is a good audio FAQ. If you have time, go up and check it out.

Link: http://forum.doom9.org/showthread.php? T = 68300

The following part is reproduced:

General Audio procedures FAQ
Cross-format techniques for encoding, decoding, and playback.

1. What is the difference between lossy, lossless, and uncompressed audio formats?

Uncompressed audio is simply audio without any compression applied to it. uncompressed audio is commonly used in AV conversions in PCM or WAV form.

Lossless audio applies a compression to uncompressed audio without losing any information or degrading the quality at all. lossless audio is not common in the AV world, but it is possible with formats like WMA lossless or FLAC in matroska.

Lossy audio attempts to apply to discard as much 'irrelevant' data as possible from the original, with the goal being to produce a file much smaller than the original That sounds almost identical. this results in a much lower bitrate and filesize then lossless or uncompressed audio. lossy audio formats are extremely prevalent in AV, and include Ac3, DTS, AAC, MPEG-1/2/3, Vorbis, and real audio.

We also talk about lossy and lossless processes. whenever you transcode to a Lossy format (for example WAV> MP3), a loss in quality follows, therefore it is a Lossy process. transcoding from a Lossy format to a Lossy format (for example MP3> AAC) is even worse, since there is loss introduced both from the first lossy file and the encoding of the second.

2. What's CBR/ABR/VBR?

CBR means that the stream's bitrate is constant and never changes.
VBR means that the stream's bitrate is variable, and changes in according to the amount of information that needed to be encoded.
ABR has a variable bitrate for each frame, but its average bitrate is a constant.

Conclusion:
CBR is a private-case of ABR which is a private-case of VBR.

3. What's the difference between stereo, joint stereo, and dual channel?

Dual Channel has 2 mono-channels, meaning each channel is encoded with half the bitrate of the overall bitrate.
Stereo has 2 seperate channels, but the bitrate allocation between those two channels changes accordingly to the amount of information there is in each channel.
Joint stereo has 2 channels, but takes advantage of what is common between the channels, so the compression gain is higher.

4. What are the different kinds of joint stereo?

Two of the most used joint stereo modes are (intensity stereo) and M/S (MID/side ). m/S matrixing computes the sum and the difference of the two audio channels and stores these as two channels. this method is very efficient and is a lossless process, which means the two original channels can be extracted exactly as they were.

Intensity stereo replaces the left and right channels with a single signal plus directional information. This method is lossy and destroys DPL information. This method is only recommended at low bitrates.

Many encoders can use a combination of full stereo and either or both of these methods, deciding which to use on a per-frame basis.

5. How can I transcode AC3 5.1 to Pro Logic/Pro Logic II?

There are two steps to having a 2.0 channel stereo file that contains Dolby Pro Logic (II ). first, a Dolby Pro Logic Source is needed, in this case we apply a DPL downmix on the 5.1 source. this can be done easily with besweet, In the '-azid ()' section add a '-s surround' for Pro logic or '-s surround2' for Pro Logic II.

Secondly, when the audio is encoded, the joint stereo information must be preserved. in order for this to happen, either full stereo or m/s joint stereo must be used-intensity stereo will destroy DPL information. more information on Dolby prologic & Dolby Surround can be found here. this can be done with all the common audio formats:

    • MP3: Use the lame encoder, and use joint stereo. See the MP3 FAQ #9.
    • Vorbis: Use lossless or light lossy channel coupling.
    • AAC: Use m/s joint stereo, which pretty much all the AAC encoders use afaik.
    • MP2: MP2 specs do not support m/s, so you'll have to use full stereo.

6. Where can I find more information about audio coding formats and techniques?

Http://www.audiocoding.com/modules/wiki/
Http://www.oreilly.de/catalog/mp3/chapter/ch02.html
Http://www.hydrogenaudio.org

7. What is the best lossy audio format for me to use?

As you shoshould know, Forum rules prohibit asking what's best. in general your own ears are the best answer to this question. there are several excellent Listening Tests here that will help you to choose your audio format.

8. When converting, is it better to downsample my DVD audio to 44.1 kHz or keep it at 48 khz?

Unless you have to meet a standard's specifications, such as 44.1 kHz for SVCD, there is usually no reason to downsample audio to 44.1 kHz. it is possible that downsampling will introduce rounding errors when finding new sample points, which will degrade the quality, but when using a high quality resampler such as SSRC, this quality loss will be extremely limit. it can also be argued that certain audio encoders, such as lame, are better tuned for 44.1 kHz, but these differences are also very miniscule.

9. How can I change the samplerate of A wave file?

Download SSRC from doom9's download page, and use the following command: code:

SSRC -- rate 44100 input.wav output.wav

In this case, the destination sample rate is 44.1 kHz (44100Hz ).

10. What is spdif and when is it used?

Spdif (Sony Phillips digital interface) is a physical digital interface (_ not _ analog ). the connection can be either coax or optical (fiber) meaning in general it shoshould provide less noise interference from my experience (varies depending on hardware and source ). the spdif interface can pass PCM, DTS or Dolby Digital streams to your receiver/Amplifier for decoding. in theory, your spdif capable sound card passes the audio packets without modification (it's theory because much discussion has taken place as to if creative's sound cards alter packets ).

11. Is it possible to backup music from a concert DVD into an audio CD?

Yes, the AC3/DTS needs to be demuxed and then converted to a PCM-WAV, Dolby Digital-WAV, or DTS-WAV.

Checkout besure from doom9's download page. It can create DTS-CD, AC3-CD & plain cdda.

12. When transcoding 5.1 AC3 to 2-channel audio, which AC3 stream shoshould I decode? 5.1 or 2.0?

The 2.0 stream has a better mix for 2 channels than the 5.1 to 2.0 downmix features offered by AC3 decoding tools. therefore, it shocould be best to work with the 2.0 stream. transcoding the 5.1 stream and downmixing it manually will only be useful for users who have a surround system that has a Dolby prologic (ii) decoder. some 2.0 tracks aren't downmixed for Pro logic, so you must take the Origianl 5.1 track and downmix it with a Transcoder that is capable of doing it. more info on Dolby prologic & Dolby Surround can be found here.

13. How can I extract an audio stream (Ac3/MP3/Ogg/WAV) from an AVI file?

Download virtualdubmod and open your AVI file. click streams-> stream list. click on the audio stream you want to extract; then click Demux to remove the stream losslessly, or click decode to decompress the audio to. wav file. this will work for any audio stream in. AVI file (first/second etc .)

14. How can I split my AC3/DTS/AAc/MP3/MP2/MPa/WAV track into several seperate, shorter, tracks?

Use besplit, it was written especially for that. Note that chapter-X-tractor can generate besplit's CommandLine for. Ifo files.

An alternative for DTS is DTS trimmer/concatenator.

15. My Avi plays with no audio. What can I do?

First of all, reread the Forum rules, you will get no help with downloaded or illegally obtained files here.

If the file was created by yourself, you'll simply need to install a DirectShow filter capable of rendering the audio format. check doom9's download page for some common audio filters. gspot, also available on the download page, can be of ance in identifying what audio is contained within an Avi.

16. Please post a list of the most recommended Winamp plugins.

AC3 http://sourceforge.net/projects/winampac3/
AAC/MP4: http://www.audiocoding.com/download.php
MPA/MP2/MP3: http://www.mars.org/home/rob/proj/mpeg/mad-plugin/
DTS: http://sourceforge.net/projects/in-dtsc/ (under development)
(For DTS playback, you cocould also use the Winamp's DirectShow plugin together with windvd's DTs DirectShow filter ).

17. Can I decrypt/rip/create a DVD-A (DVD-audio) disk? What format does DVD-A?

DVD-A uses either lpcm or a lossless encoding called MLP (meridian lossless packing), and supports up to 24 BIT and 192 Khz audio. due to the strong encryption and watermarking of DVD-audio, decrypting of DVD-audio discs is difficult at best. however, there are now some primitive tools for working with DVD-audio discs if you are lucky enough to own certain versions of windvd. see this thread or this post for DVD-audio ripping techniques. finding the required software will be difficult as anyone hosting the files is threatened with a lawsuit.

Another possibility for extracting the audio wocould be to attach the S/pdif out of your DVD-A player to the S/pdif in of your Soundcard. due to the strong encryption of the DVD-A format and the extremely high cost of MLP decoder licenses, there may never be an ideal solution for ripping DVD-A.

As far as creation goes, the DVD-audio project aims to provide audio enthusiasts with a set of free software tools to enable the authoring of DVD-audio disks compliant with hardware DVD-audio players, plus a software player for such disks. note that this project is still in an early stage of development.

If you have deep pockets, Minnetonka's discwelder Chrome is a commercial DVD-audio authoring application.

18. Is it possible to use musepack (MPC) Audio with video?

At this time it is not yet possible in any container format. the developers of matroska have plans to include musepack audio in matroska, but due to the opinion of the lead developer of musepack and the bitstream format of musepack this will not happen until the sv8 bitstream (the next version of musepack) is finalized. however there may be a musepack sv7> 'sv7. 5 'bitstream converter, so your current nmfiles might be possible in matroska in the future.

19. How can I convert the Frame Rate of my audio with freeware?

First of all, for the nth time, audio does not have a framerate. when someone talks about changing the framerate of audio, they are talking about time stretching the audio to match a video framerate that has been converted. FRC conversions can be done with several commercial tools, but that is not the focus of this FAQ, use Google to find these.

A 'framerate conversion', which we will refer to as a speed changing operation, can be done either with or without Pitch correction. when done without Pitch correction, if the speed change is large, you will notice that the audio sounds too high or low pitched, much like changing the speed of a tape or record player. such an operation can be done with besweet, simply add acode:

 
-OTA (-r 23976 25000)

To your OTA section of your besweet CommandLine, where in this case the original video framerate was 23.976 and the final framerate is 25.000.

A speed change with Pitch correction is also known as a Tempo Change; the speed at which the audio played back changes without chanigng the pitch from the original. to do this, you can use the freeware tool audacity, or use besweet v1.5b28 or newer with the CommandLine: code:

 
-Soundtouch (-r 23976 25000)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.