A variable-length panoramic sound signal encoding and decoding method
A coding method and sound signal technology, applied in speech analysis, instruments, etc., can solve problems affecting the organization of audio data, wasting time, etc., and achieve the effect of perfect audio coding technology for panoramic sound
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] Example 1: Will figure 1 When encoding the audio data shown, if the length of a certain frame is k samples (k figure 2 shown. Such as image 3 As shown, by encoding according to the method provided by the present invention, only a code stream with a length of k samples is output, and the length information of this audio frame is written in the frame_length field in the code stream (also need to be multiplied by bit depth and AES number of channels).
[0065] When decoding, read the code stream data of 1024 samples each time, and decode at least one frame of audio data accordingly. Within these 1024 samples, if an audio frame of length k (k≤1024) is encountered at the n-th sample point position (for example, corresponding to the m-th audio frame), it will be processed according to the length information frame_length in the code stream decoding. Audio data can only be decoded when any frame of code stream is complete.
[0066] 1. n+k=1024, then output the audio data ...
Embodiment 2
[0071] Embodiment 2: Assume that the video frame rate is 24fps, the audio sampling rate is 48000Hz, and the audio bit depth is 24bit.
[0072] Such as Figure 5 As shown, the encoding method of inserting 200 video frames at the 1000th video frame of the movie is as follows:
[0073] Step 1: Calculate the number of audio samples corresponding to the 1000th video frame
[0074] StartPos=1000*48000 / 24=2,000,000;
[0075] Step 2: Calculate the number of audio frames corresponding to the 1000th video frame
[0076] StartFrame=StartPos / 1024=1953, and then save the data after the 1953rd audio frame as a file Data0.pcm;
[0077] Step 3: Calculate the number of audio samples to be inserted InsertSamples=200*48000 / 24=400,000;
[0078] Step 4: Count all audio samples that need to be reorganized
[0079] DataToReenc=InsertSamples+1024=401,024;
[0080] Step 5: Reorganize Audio Data
[0081] 401,024=391*1024+640, including 391 full audio frames and a short frame with a length of 640...
Embodiment 3
[0088] Embodiment 3: It is assumed that the video frame rate is 24fps, the audio sampling rate is 48000Hz, and the audio bit depth is 24bit.
[0089] Such as Figure 6 As shown, the encoding method of deleting 300 video frames at the 1000th video frame of the movie is as follows:
[0090] Step 1: Calculate the number of audio samples corresponding to the 1000th video frame
[0091] StartPos=1000*48000 / 24=2,000,000;
[0092] Step 2: Calculate the number of audio frames corresponding to the 1000th video frame StartFrame=StartPos / 1024=1953;
[0093] Step 3: Calculate the number of samples corresponding to the deletion end point EndPos=1300*48000 / 24=2,600,000;''Step 4: Calculate the number of audio frames corresponding to the deletion end point EndFrame=EndPos / 1024=2539, the data after the 2539th audio frame Save as a file Data0.pcm;
[0094] Step 5: Count all audio samples that need to be reorganized
[0095] DataToReenc = (EndFrame-StartFrame+1)*1024 - (EndPos-StartPos) =10...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com