Use FFmpeg to audio format and sample rateImportOSImportstringImportsubprocess as SP#Full path of FFmpegFfmpeg_bin ="/users/karl/documents/python/audio/tool/ffmpeg"#Full path of SourceDirSourceDir ="/users/karl/documents/python/audio/"#Full path of TargetDirTargetDir ="/users/karl/documents/python/newdir/"#
MP3 is only a type of audio format.
However, audio has several important parameters, such as kHz, bit, audio channel, and kbps. the formats are different, and the algorithms are different. Therefore, when the above parameters are the same, the quality of different formats varies greatly. VBR is a kind of dynamic sampling. For more information, see the following d
frames required for one Processing This is the unit for audio device data profiling and storage of audio data.
[Staggered mode]
Digital Audio Signal storage method. Data
Sequential frame storage First, record the left and right channels of frame 1, and then start the record of Frame 2...
[Non-staggered mode]
The first record is the left-channel
data records the amplitude, and the sampling accuracy depends on the size of the number of sampling digits:
1 byte (that is, 8 bit) can only record 256 numbers, that is, it can only divide the amplitude into 256 levels;
2 bytes (that is, 16 bit) can be subdivided into 65536 numbers, which is now the CD standard;
4 bytes (that is, 32 bit) can segment the amplitude to 4294967296 levels, which is unnecessary.
[Number of channels]
That is
Number of sound channels. A single sound channel and a
kHz, and 48 khz. 22.05KHz can only achieve the sound quality of fmbroadcast, 44.1khz is the theoretical CD sound quality limit, 48 khz has reached the DVD sound quality.
Iii. Bit Rate
Audio signals must be encoded. Here, encoding refers to source encoding, that is, data compression. If direct quantization is used for transmission without data compression, it is called PCM (pulse encoding Modulation ). I
The versatile audio Converter supports all current popular audio and video formats. such as: MP3, MP2, OGG, APE, WAV, WMA, AVI, RM, RMVB, ASF, MPEG, DAT, 3GP, MP4, FLV, MKV, MOD, MTS, such as audio and video format, converted to the MP3/WAV/AAC/WMA/AMR, etc. More powerful, the software can extract
required on the sound card. The values are 12.288mhz and 24.576 MHz (or an integer multiple of them ).
Audio sampling ad
Digital audio systems reproduce the original sound by converting the acoustic waveform into a series of binary data. The device used in this step is A/D) it Samples sound waves at tens of thousands of times per second. Each sampling record the state of the original simulated sound w
not affect the image quality, but will have an impact on image coherence.2. Code Rate Calculation formula:bitrate = Sample rate x-bit depth X-ChannelSo, the bitrate of the above file = 44.1Khz x 16 bit x 2 channel = 1411.2 Kbps2. File size = bitrate x Duration = 1411.2 Kbps x (3 x + +) s = 1411.2Kbps x 227s=38102.4 Kb38102.4 kb/1024 kb/m = 37.2MApproximately equ
The wave file can be converted to sample rate using Ixaduio2submixvoice to meet the device's requirements for waveform audio sample rate. In XAudio2 learn three to get the audio output device information you can see that the
time domain.
In other words, in the same sample rate, control the speed and volume within a specific weight.
is actually a two-dimensional stretch of time domain and space.
Understanding this logic does a bit of a detour.
Use the sampling algorithm to make a simple example.
See the previous article, "An example of a concise interpolation audio resampling al
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.