CN103200371A - System and method for video volume custom adjustment - Google Patents
System and method for video volume custom adjustment Download PDFInfo
- Publication number
- CN103200371A CN103200371A CN2013101191571A CN201310119157A CN103200371A CN 103200371 A CN103200371 A CN 103200371A CN 2013101191571 A CN2013101191571 A CN 2013101191571A CN 201310119157 A CN201310119157 A CN 201310119157A CN 103200371 A CN103200371 A CN 103200371A
- Authority
- CN
- China
- Prior art keywords
- audio
- format
- video
- frame sequence
- sequence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000004806 packaging method and process Methods 0.000 claims abstract description 64
- 238000005538 encapsulation Methods 0.000 claims abstract description 29
- 230000001105 regulatory effect Effects 0.000 claims 4
- 238000010586 diagram Methods 0.000 description 10
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a system for video volume custom adjustment. The system comprises a de-encapsulation device, a video data decoding device, a volume adjusting device, an encoding device and a packaging device. The de-encapsulation device is used for conducting de-encapsulation on audio and video files, thereby parsing the audio and video files to a corresponding audio frame sequence and a corresponding video frame sequence, the video data decoding device is used for decoding the audio frame sequence, and restoring an audio frame in the audio frame sequence to be audio data with PCM formats, the volume adjusting device is used for conducting volume adjusting on the audio data with the PCM formats according to volume adjustment coefficients input by a user, the encoding device codes the audio data with the PCM formats, wherein the audio data are adjusted by the volume adjusting device, and obtains an audio frame sequence which is recoded, and the packaging device is used for packaging the video frame sequence and the recoded audio frame sequence. The invention further provides a method for the video volume custom adjustment.
Description
The technical field is as follows:
the invention relates to a system and a method for adjusting video volume, in particular to a system and a method for customizing and adjusting video volume according to user requirements.
Background art:
when a video source file is produced, two or more video files need to be combined into one video file, which may cause that when a user watches television or plays a video file, the sound sometimes happens to be suddenly high or low, and even more, sometimes some advertisements are inserted in a television show, and the sound of the advertisements suddenly becomes high.
In order to solve the above problems, chinese patent application No.200910077304.7 discloses a method for automatically controlling channel volume and a digital television terminal using the same. However, although the chinese patent application No.200910077304.7 solves the problem of the sudden high and low sound of the program when the digital tv terminal switches the program, it is only implemented for the digital tv terminal at the single user end, and therefore, the problem of the sudden high and low sound encountered by all users cannot be solved.
The invention content is as follows:
in order to solve the above technical problem, the present invention provides a system for customized adjustment of video volume, comprising: the de-encapsulation device is used for de-encapsulating the audio and video file so as to analyze the audio and video file into a corresponding audio frame sequence and a corresponding video frame sequence; audio data decoding means for decoding the sequence of audio frames and restoring audio frames in the sequence of audio frames to audio data in PCM format; the volume adjusting device is used for adjusting the volume of the audio data in the PCM format according to a volume adjusting coefficient input by a user; the encoding device is used for encoding the audio data in the PCM format adjusted by the volume adjusting device to obtain a recoded audio frame sequence; means for encapsulating the sequence of video frames and the sequence of re-encoded audio frames.
Preferably, the range of the volume adjusting coefficient is 0-10.
Preferably, the system further comprises volume adjustment coefficient setting means for setting the volume adjustment coefficient.
Preferably, the encoding means encodes the audio data in the PCM format adjusted by the volume adjustment means in the same encoding format as that of the sequence of audio frames before decoding; and the packaging device packages the video frame sequence and the recoded audio frame sequence by adopting a packaging format which is the same as the packaging format of the audio/video file before the package.
Preferably, the encoding device encodes the audio data in the PCM format adjusted by the volume adjustment device in an encoding format specified by a user;
the packaging device packages the sequence of video frames and the sequence of re-encoded audio frames in a user-specified packaging format.
Preferably, the system further comprises storage means for storing data.
Preferably, the decapsulation device has an audio/video file format judgment unit, a decapsulation selection unit, and a plurality of decapsulation units of different formats; the audio and video file format judging unit is used for judging the format of the audio and video file to be unpacked; the decapsulation selection unit selects the decapsulation unit of the corresponding format according to the judgment result of the audio/video file format judgment unit on the format of the audio/video file; the decapsulation unit is configured to parse the audio/video file with the corresponding format into the audio frame sequence and the video frame sequence.
Preferably, the audio and video data decoding device is provided with an encoding format judging unit, a decoder selecting unit and a plurality of decoders with different formats; the encoding format judging unit is used for judging the encoding format of the audio frame sequence; the decoder selecting unit is used for selecting the corresponding decoder to decode the audio frame sequence based on the judgment result of the coding format; the decoder is used for restoring the audio frames in the audio frame sequence with the corresponding coding format into audio data in a PCM format.
Preferably, the encoding apparatus has an encoder selection unit and a plurality of encoders of different formats; wherein the encoder selecting unit selects the encoder having the corresponding encoding format according to the data about the encoding format stored in the storage device; and the encoder is used for encoding the audio data in the PCM format with the adjusted volume by using the corresponding encoding format to obtain the recoded audio frame sequence.
Preferably, the packaging device comprises a packaging format selection unit and a plurality of packaging units with different formats; wherein the packaging format selecting unit selects the packaging unit having a corresponding packaging format based on the data on the packaging format stored in the storage device; the encapsulation unit encapsulates the sequence of video frames and the sequence of re-encoded audio frames with the corresponding encapsulation formats.
The invention also provides a method for customizing and adjusting the video volume, which comprises the following steps: a decapsulation step of decapsulating the audio/video file, so as to analyze the audio/video file into a corresponding audio frame sequence and a video frame sequence; an audio data decoding step of decoding the sequence of audio frames and restoring audio frames in the sequence of audio frames to audio data in a PCM format; volume adjustment, namely adjusting the volume of the audio data in the PCM format according to a volume adjustment coefficient input by a user; an encoding step of obtaining a sequence of re-encoded audio frames by encoding the audio data in the volume-adjusted PCM format; and a packaging step of packaging the video frame sequence and the recoded audio frame sequence.
Preferably, the step of setting the volume adjustment coefficient.
Preferably, in the encoding step, the volume-adjusted PCM-formatted audio data is encoded in the same encoding format as that of the sequence of audio frames before decoding; in the step of packaging, the video frame sequence and the recoded audio frame sequence are packaged by adopting a packaging format which is the same as the packaging format of the audio/video file before being unpacked.
Preferably, in the encoding step, the audio data in the PCM format subjected to volume adjustment is encoded in an encoding format specified by a user; in the encapsulating step, the sequence of video frames and the sequence of re-encoded audio frames are encapsulated in an encapsulation format specified by a user.
Preferably, the decapsulating step comprises: judging the format of the audio/video file to be unpacked; selecting a decapsulation unit of a corresponding format according to a judgment result of the format of the audio/video file; and analyzing the audio and video file with the corresponding format into the audio frame sequence and the video frame sequence.
Preferably, the audio-video data decoding step includes: a step of determining a coding format of the audio frame sequence; a step of selecting a corresponding decoder to decode the audio frame sequence based on the judgment result of the encoding format; a step of restoring audio frames of said sequence of audio frames having a corresponding encoding format to audio data in PCM format.
Preferably, the encoding step comprises: a step of selecting an encoder having a corresponding encoding format based on the data on the encoding format stored in the storage device; and a step of encoding the audio data in the PCM format with the adjusted volume by using the corresponding encoding format to obtain the recoded audio frame sequence.
Preferably, the encapsulating step comprises: a step of selecting a packaging unit having a corresponding packaging format based on the data on the packaging format stored in the storage means; a step of encapsulating the sequence of video frames and the sequence of re-encoded audio frames with the respective encapsulation formats.
The technical scheme of the invention can solve the problem that in the prior art, when a user watches television or plays a video file, the sound sometimes rises and falls. Meanwhile, the technical scheme of the invention simplifies the operation of adjusting the video volume and can carry out the video volume adjusting processing in large batch, thereby improving the efficiency of the video volume adjusting processing and reducing the corresponding processing cost.
Description of the drawings:
fig. 1 is a block diagram of a video volume customization adjustment system according to an embodiment of the present invention;
fig. 2 is a block diagram illustrating a decapsulation module of a video volume customization adjusting system according to an embodiment of the present invention;
fig. 3 is a block diagram of an audio data decoding module of a video volume customization adjustment system according to an embodiment of the present invention;
fig. 4 is a block diagram of an encoding module of a video volume customization adjustment system according to an embodiment of the present invention;
fig. 5 is a block diagram of a packaging module of the video volume customization adjustment system according to an embodiment of the present invention;
FIG. 6 is a flow chart of customized adjustment of video volume according to an embodiment of the present invention;
fig. 7 is a flowchart of step S12 according to the embodiment of the present invention;
fig. 8 is a flowchart of step S13 according to the embodiment of the present invention;
fig. 9 is a flowchart of step S14 according to the embodiment of the present invention;
fig. 10 is a flowchart of step S15 according to the embodiment of the present invention;
fig. 11 is a flowchart of step S16 according to the embodiment of the present invention.
The specific implementation mode is as follows:
the invention is elucidated below on the basis of an embodiment shown in the drawing. The video volume customization and adjustment system can adjust the volume of each audio and video file according to the requirements of a user when a plurality of audio and video files with different file formats are combined.
Fig. 1 shows a block diagram of a video volume customization adjustment system according to an embodiment of the present invention. As shown in fig. 1, the video volume adjusting system includes an audio/video data receiving module 1, a decapsulation module 2, an audio data decoding module 3, an encoding module 4, an encapsulation module 5, a storage module 6, an adjusting module 7, a setting module 8, and a data bus 9. The audio and video data receiving module 1, the decapsulation module 2, the audio data decoding module 3, the encoding module 4, the encapsulation module 5, the storage module 6, the adjustment module 7 and the setting module 8 are connected through the data bus 9.
The audio/video data receiving module 1 is configured to receive audio/video data (for example, audio/video files in formats of AVI, WMV, RM, RMVB, MOV, TS/PS, and MKV, respectively) with different file formats that need to be merged, and transmit the received audio/video data to the decapsulating module 2 for corresponding decapsulation. And after receiving the audio and video data from the audio and video data receiving module 1, the decapsulation module 2 decapsulates the audio and video data according to a corresponding file format of the received audio and video data. In the decapsulation process, the decapsulation module 2 parses the audio/video file into a corresponding video frame sequence and an audio frame sequence. Then, the decapsulation module 2 stores the video frame sequence and the related parameters of the audio/video file encapsulation format, which are obtained after decapsulation, in the storage module 6, and transmits the audio frame sequence to the audio data decoding module 3 for corresponding decoding. The audio data decoding module 3 receives the audio frame sequence from the decapsulating module 2, and decodes the received audio frame sequence according to the corresponding encoding format of the received audio frame sequence. In the decoding process, the audio data decoding module 3 decodes the sequence of audio frames, restores the audio frames in the sequence of audio frames to audio data in a PCM format, and stores the audio data in the PCM format and parameters related to the coding format of the sequence of audio frames in the storage module 6 until all the sequences of audio frames are decoded. The setting module 8 receives the setting of the volume adjustment coefficient by the user and stores the received volume adjustment coefficient in the storage module 6. The adjusting module 7 obtains the stored PCM format audio data and the volume adjusting coefficient from the storage module 6, adjusts the volume parameter in the PCM format audio data based on the volume adjusting coefficient, and stores the PCM format audio data with the volume parameter adjusted in the storage module 6. The encoding module 4 obtains the audio data in the PCM format after the volume parameter adjustment and the parameters related to the audio frame sequence encoding format from the storage module 6, and selects a corresponding encoder according to the parameters related to the audio frame sequence encoding format to encode and compress the audio data in the PCM format after the volume parameter adjustment, so as to form a new audio frame sequence and store the new audio frame sequence in the storage module 6. The encapsulation module 5 obtains the relevant parameters of the audio/video file encapsulation format, the video frame sequence and the new audio frame sequence from the storage module 6, and then encapsulates the video frame sequence and the new audio frame sequence into a new audio/video file according to the relevant parameters of the audio/video file encapsulation format.
Fig. 2 is a block diagram illustrating a structure of a decapsulation module 2 of a video volume customization adjustment system according to an embodiment of the present invention. As shown in fig. 2, the decapsulation module 2 includes an audio/video file format determining unit 21, a decapsulation selecting unit 22, and a plurality of decapsulation units 23, 24, and 25 … …. The decapsulation units 23, 24, and 25 … … have different formats, and may decapsulate files according to different file formats. The audio/video file format determining unit 21 may determine the file format of the audio/video received from the audio/video data receiving module 1 and obtain the relevant parameters of the file format of the audio/video, and stores the relevant parameters of the audio/video file format into the storage module 6, the decapsulation selection unit 22 may select a corresponding decapsulation unit from the decapsulation units 23, 24, and 25 … … according to the determination result (i.e. the format of the audio/video file) of the audio/video file format determination unit 21 to decapsulate the audio/video file, the corresponding decapsulating unit (i.e., one of the decapsulating units 23, 24, 25 … …) decapsulates the received av file into a corresponding sequence of video frames and a corresponding sequence of audio frames, and stores the sequence of video frames and the sequence of audio frames in the storage module 6. For example, when the formats of the audio and video files are the AVI formats, the audio and video file format determining unit 21 determines the format of the received audio and video file, and the decapsulation selecting unit 22 selects a decapsulation unit (for example, the decapsulation unit 23) corresponding to the AVI format to decapsulate based on the determination result; if the audio/video file format determining unit 21 determines that the format of the received audio/video file is the RM format, the decapsulation selecting unit 22 selects a decapsulation unit (for example, the decapsulation unit 24) corresponding to the RM format for decapsulation based on the determination result; if the audio/video file format determining unit 21 determines that the format of the received audio/video file is the WMV format, the decapsulation selecting unit 22 selects a decapsulation unit (for example, the decapsulation unit 25) corresponding to the WMV format for decapsulation based on the determination result.
Fig. 3 is a block diagram of an audio data decoding module 3 of the video volume customization adjustment system according to the embodiment of the present invention. As shown in fig. 3, the audio data decoding module 3 includes an encoding format determining unit 31, a decoder selecting unit 32, and a plurality of decoders 33, 34, and 35 … …. The plurality of decoders 33, 34, 35 … … can decode according to different decoding requirements. The encoding format determining unit 31 may determine the encoding format of the audio frame sequence decapsulated by the decapsulating module 2, obtain the parameters related to the encoding format of the decapsulated audio frame sequence, and store the parameters related to the encoding format of the audio frame sequence in the storage module 6. The decoder selecting unit 32 may select a corresponding decoder from the decoders 33, 34, and 35 … … to decode the audio frame sequence according to the determination result (i.e., the encoding format of the audio frame sequence) of the encoding format determining unit 31, and the corresponding decoder (i.e., one of the decoders 33, 34, and 35 … …) decodes the received audio frame sequence to restore the audio frames in the audio frame sequence to PCM format data, which is temporarily stored in the storage module 6. For example, if the encoding format determining unit 31 determines that the encoding format of the audio frame sequence is the MP3 encoding format, the decoder selecting unit 32 selects a decoder (for example, the decoder 33) corresponding to the MP3 encoding format for decoding, and temporarily stores the decoded PCM format data in the storage module 6; if the encoding format determining unit 31 determines that the encoding format of the audio frame sequence is the ACC encoding format, the decoder selecting unit 32 selects a decoder (for example, the decoder 34) corresponding to the ACC encoding format for decoding, and temporarily stores the decoded PCM format data in the storage module 6; if the encoding format determining unit 31 determines that the encoding format of the audio frame sequence is the AC-3 encoding format, the decoder selecting unit 32 selects a decoder (for example, the decoder 35) corresponding to the AC-3 encoding format for decoding, and temporarily stores the decoded PCM format data in the storage module 6.
Fig. 4 is a block diagram of the structure of the coding module 4 of the video volume customization adjustment system according to the embodiment of the present invention. As shown in fig. 4, the encoding module 4 includes an encoder selecting unit 41, and a plurality of encoders 42, 43, and 44 … …. The encoder selecting unit 41 may obtain new PCM format data subjected to volume adjustment by the adjusting module 7 and encoding format parameters of the original audio frame sequence stored therein from the storage module 6. The encoder selecting unit 41 selects a corresponding encoder (i.e., one of the encoders 42, 43, and 44 … …) according to the encoding format parameters of the original audio frame sequence to re-encode the decoded PCM format data to form a new audio frame sequence, and stores the new audio frame sequence in the storage module 6.
Fig. 5 is a block diagram of a packaging module 5 of the video volume customization adjustment system according to the embodiment of the present invention. As shown in fig. 5, the packaging module 5 includes a packaging format selection unit 51 and a plurality of packaging units 52, 53, and 54 … …. The plurality of encapsulating units 52, 53, 54 … … have different encapsulation formats, and can be encapsulated according to the requirements of the different encapsulation formats.
The packaging format selecting unit 51 obtains the relevant parameters of the packaging format of the audio/video file, the video frame sequence, and the new audio frame sequence from the storage module 6, and selects a corresponding packaging unit (i.e., one of the packaging units 52, 53, and 54 … …) according to the relevant parameters of the packaging format of the audio/video file to package the video frame sequence and the new audio frame sequence, so as to obtain the adjusted audio/video file.
In the above embodiment, the encoding module 4 and the packaging module 5 may also select a corresponding encoding format and a corresponding packaging format according to the requirement of the user.
Fig. 6 is a flow chart of customized adjustment of video volume according to an embodiment of the present invention. Next, a process of the customized adjustment of the video volume according to the present embodiment will be described with reference to fig. 6.
First, an audio/video file is input, and the audio/video data receiving module 1 receives the audio/video file data and transmits the audio/video file data to the decapsulation module 2 (step S11). The decapsulation module 2 decapsulates the audio/video file data, parses the audio/video file data into a video frame sequence and an audio frame sequence, and stores the video frame sequence and the audio frame sequence and related parameters of the original audio/video file in the encapsulation format in the storage module 6 (step S12).
The audio data decoding module 3 obtains the sequence of audio frames from the storage module 6, restores the audio frames in the sequence of audio frames to PCM format data, and stores the PCM format data and the parameters related to the encoding format of the original sequence of audio frames in the storage module 6 (step S13).
The adjusting module 7 adjusts the volume of the PCM format data according to the volume adjustment coefficient inputted by the user through the setting module 8, obtains the PCM format data after the volume adjustment, and stores the PCM format data after the volume adjustment into the storage module 6 (step S14)
The encoding module 4 obtains the PCM format data after volume adjustment and the relevant parameters of the encoding format of the original audio frame sequence from the storage module 6, and encodes the PCM format data after volume adjustment according to the relevant parameters of the encoding format of the original audio frame sequence to form a new audio frame sequence and store the new audio frame sequence in the storage module 6 (step S15).
The encapsulation module 5 obtains the video frame sequence, the new audio frame sequence and the related parameters of the encapsulation format of the original audio/video file from the storage module 6, and encapsulates the video frame sequence, the new audio frame sequence and the related parameters of the encapsulation format of the original audio/video file to form a new audio/video file (step S16).
Fig. 7 is a flowchart of step S12 of the customized adjustment of video volume according to the embodiment of the present invention. Next, a process of decapsulating an audio/video file according to the present embodiment will be described with reference to fig. 7.
The audio file format determining unit 21 determines the packaging format of the received audio/video file based on the received audio/video file data, and transmits the determination result to the decapsulation selecting unit 22 (step 121), and stores the related parameters of the packaging format of the original audio/video file in the storage module 6 (step 122). The decapsulation selecting unit 22 selects a corresponding decapsulation unit based on the determination result (step 123). For example, the audio/video file data may be in an encapsulation format such as AVI, WMV, RM, RMVB, MOV, TS/PS, and MKV, and the corresponding decapsulation unit may decapsulate the audio/video file data in the corresponding encapsulation format. The decapsulating unit (i.e., one of the decapsulating units 23, 24, and 25 … …) decapsulates the av file data, parses the av file data into a sequence of video frames and a sequence of audio frames (step 124), and stores the sequence of video frames and the sequence of audio frames in the storage module 6 (step 125).
Fig. 8 is a flowchart of the step S13 of adjusting the customized volume of the video according to the embodiment of the present invention. Next, a process of decoding audio data according to the present embodiment will be described with reference to fig. 8.
The coding format judging unit 31 judges the coding format (for example, MP3, AAC, AC-3, etc.) of the decapsulated audio frame sequence, and supplies the judgment result to the decoder selecting unit 32 (step 131), and stores the parameters relating to the coding format of the audio frame sequence in the storage block 6 (step 132). The decoder selecting unit 32 selects a decoder corresponding to the encoding format for decoding based on the determination result (step 133), and the decoder (i.e., one of the decoders 33, 34, and 35 … …) restores the audio frames in the audio frame sequence to PCM format data (step 134) and stores the PCM format data in the storage module 6 (step 135).
Fig. 9 is a flowchart of step S14 of the customized adjustment of video volume according to the embodiment of the present invention. Next, a process of adjusting the volume according to the present embodiment will be described with reference to fig. 9.
First, the adjusting module 7 acquires the PCM format data from the storage module 6 (step S140), and determines whether an instruction to adjust the volume is received (step S141). When the user judges that the volume of the current video file needs to be adjusted (step S141: YES), an instruction that the volume needs to be adjusted is input through the above setting module 8 (step S142). The adjusting module 7 receives an instruction that volume adjustment is required, prompts a user to input a volume adjustment coefficient, the user inputs the volume adjustment coefficient through the setting module 8 based on the prompt of inputting the volume adjustment coefficient, and the setting module 8 stores the input volume adjustment coefficient into the storage module 6. The adjusting module 7 determines whether the user inputs the volume adjusting factor (step S143). If the user does not input the volume adjustment coefficient (step S143: no), the above-mentioned adjustment module 7 is in a waiting state until the user inputs the volume adjustment coefficient. If the user inputs a volume adjustment coefficient (step S143: yes), the adjusting module 7 adjusts the volume of the current video file based on the volume adjustment coefficient (step S144), and then outputs PCM format data with the volume adjusted and stores it in the storage module 6 (step S145).
When the user judges that the volume of the current video file does not need to be adjusted in step S141 (no in step S141), the process proceeds directly to step S145 to output PCM format data.
In the present embodiment, the value range of the volume adjustment coefficient may be set to 0 to 10, where 0 represents mute, a value greater than 0 and less than 1 represents a multiple of decreasing volume, 1 represents keeping volume unchanged, and a value greater than 1 represents a multiple of increasing volume. For example, when the user needs to increase the volume, a volume adjustment coefficient 1.2 is input through the setting module 8, the setting module 8 receives the volume adjustment coefficient 1.2 and stores the volume adjustment coefficient into the storage module 6, and then the adjusting module 7 obtains the volume adjustment coefficient 1.2 from the storage module 6 and increases the volume of the current video file by 1.2 times. If the original 2B value is 0x37 and the volume is increased by inputting a coefficient value of 1.2, its multiplied value is 0x 42.
Fig. 10 is a flowchart of step S15 of encoding PCM format data after volume adjustment according to the embodiment of the present invention. Next, a process of encoding PCM format data according to the present embodiment will be described with reference to fig. 10.
The encoder selecting unit 41 obtains the PCM format data with the adjusted volume and the parameters related to the encoding format of the original audio frame sequence from the storage module 6 (step S151). The encoder selecting unit 41 selects a corresponding encoder based on the parameters related to the encoding format of the original audio frame sequence (step S152). The selected encoder encodes the volume-adjusted PCM format data to obtain a new audio frame sequence (step S153), and stores the obtained new audio frame sequence in the storage module 6 (step S154).
Fig. 11 is a flowchart of step S16 of encapsulating a sequence of video frames and a sequence of new audio frames according to an embodiment of the present invention. Next, a process of encapsulating a sequence of video frames and a sequence of new audio frames according to the present embodiment will be described with reference to fig. 11.
The package format selecting unit 51 obtains the video frame sequence, the new audio frame sequence, and the parameters related to the package format of the original audio/video file from the storage module 6 (step S161). The packaging format selecting unit 51 selects a packaging unit corresponding to the packaging format of the original audio/video file based on the parameters related to the packaging format of the original audio/video file (step S162), and the packaging unit repackages the sequence of video frames and the sequence of new audio frames to form a new audio/video file having the same packaging format as the original audio/video file (step S163), and outputs the new audio/video file (step S164).
In the present embodiment, in step 15, the PCM format data after volume adjustment is encoded in the same encoding format as that of the original audio frame sequence. However, the present invention is not limited thereto, and the volume-adjusted PCM format data may be encoded in the encoding format specified by the user in step 15.
In the present embodiment, in step 16, the video frame sequence and the new audio frame sequence are encapsulated using the same encapsulation format as that of the original audio/video file. The invention is not limited in this regard and the video frame sequence and the new audio frame sequence may also be encapsulated in step 15 using a user-specified encapsulation format.
It should be understood that the detailed description and examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention. Various equivalent modifications of the invention, which fall within the scope of the appended claims of this application, will occur to persons of ordinary skill in the art upon reading this disclosure.
Claims (19)
1. A system for customized adjustment of video volume, comprising:
the de-encapsulation device is used for de-encapsulating the audio and video file so as to analyze the audio and video file into a corresponding audio frame sequence and a corresponding video frame sequence;
audio data decoding means for decoding the sequence of audio frames and restoring audio frames in the sequence of audio frames to audio data in PCM format;
the volume adjusting device is used for adjusting the volume of the audio data in the PCM format according to a volume adjusting coefficient input by a user;
the encoding device is used for encoding the audio data in the PCM format adjusted by the volume adjusting device to obtain a recoded audio frame sequence;
means for encapsulating the sequence of video frames and the sequence of re-encoded audio frames.
2. The system of claim 1, wherein:
the range of the volume adjusting coefficient is 0-10.
3. The system of claim 2, further comprising:
and the volume adjusting coefficient setting device is used for setting the volume adjusting coefficient.
4. The system of claim 3, wherein:
the coding device adopts the same coding format as that of the audio frame sequence before decoding to code the audio data in the PCM format regulated by the volume regulating device;
and the packaging device packages the video frame sequence and the recoded audio frame sequence by adopting a packaging format which is the same as the packaging format of the audio/video file before the package.
5. The system of claim 3, wherein:
the coding device adopts a coding format appointed by a user to code the audio data in the PCM format regulated by the volume regulating device;
the packaging device packages the sequence of video frames and the sequence of re-encoded audio frames in a user-specified packaging format.
6. The system of any of claims 1 to 5, further comprising:
a storage device for storing data.
7. The system of claim 6, wherein:
the decapsulation device is provided with an audio/video file format judgment unit, a decapsulation selection unit and a plurality of decapsulation units with different formats; wherein,
the audio and video file format judging unit is used for judging the format of the audio and video file to be unpacked;
the decapsulation selection unit selects the decapsulation unit of the corresponding format according to the judgment result of the audio/video file format judgment unit on the format of the audio/video file;
the decapsulation unit is configured to parse the audio/video file with the corresponding format into the audio frame sequence and the video frame sequence.
8. The system of claim 7, wherein:
the audio and video data decoding device is provided with a coding format judging unit, a decoder selecting unit and a plurality of decoders with different formats; wherein,
the coding format judging unit is used for judging the coding format of the audio frame sequence;
the decoder selecting unit is used for selecting the corresponding decoder to decode the audio frame sequence based on the judgment result of the coding format;
the decoder is used for restoring the audio frames in the audio frame sequence with the corresponding coding format into audio data in a PCM format.
9. The system of claim 8, wherein:
the encoding device has an encoder selection unit and a plurality of encoders of different formats; wherein,
the encoder selecting unit is used for selecting the encoder with the corresponding encoding format according to the data related to the encoding format stored in the storage device;
and the encoder is used for encoding the audio data in the PCM format with the adjusted volume by using the corresponding encoding format to obtain the recoded audio frame sequence.
10. The system of claim 9, wherein:
the packaging device comprises a packaging format selection unit and a plurality of packaging units with different formats; wherein,
the packaging format selection unit selects the packaging unit with the corresponding packaging format based on the data about the packaging format stored in the storage device;
the encapsulation unit encapsulates the sequence of video frames and the sequence of re-encoded audio frames with the corresponding encapsulation formats.
11. A method of customized adjustment of video volume, comprising:
a decapsulation step of decapsulating the audio/video file, so as to analyze the audio/video file into a corresponding audio frame sequence and a video frame sequence;
an audio data decoding step of decoding the sequence of audio frames and restoring audio frames in the sequence of audio frames to audio data in a PCM format;
volume adjustment, namely adjusting the volume of the audio data in the PCM format according to a volume adjustment coefficient input by a user;
an encoding step of obtaining a sequence of re-encoded audio frames by encoding the audio data in the volume-adjusted PCM format;
and a packaging step of packaging the video frame sequence and the recoded audio frame sequence.
12. The method of claim 11, wherein:
the range of the volume adjusting coefficient is 0-10.
13. The method of claim 12, further comprising:
and setting the volume adjusting coefficient.
14. The method of claim 13, wherein:
in the encoding step, audio data in a PCM format subjected to volume adjustment is encoded in the same encoding format as that of the sequence of audio frames before decoding;
in the step of packaging, the video frame sequence and the recoded audio frame sequence are packaged by adopting a packaging format which is the same as the packaging format of the audio/video file before being unpacked.
15. The method of claim 13, wherein:
in the encoding step, audio data in a PCM format with adjusted volume is encoded by adopting an encoding format specified by a user;
in the encapsulating step, the sequence of video frames and the sequence of re-encoded audio frames are encapsulated in an encapsulation format specified by a user.
16. The method according to any one of claims 11 to 15, wherein:
the decapsulating step includes:
judging the format of the audio/video file to be unpacked;
selecting a decapsulation unit of a corresponding format according to a judgment result of the format of the audio/video file;
and analyzing the audio and video file with the corresponding format into the audio frame sequence and the video frame sequence.
17. The method of claim 16, wherein:
the audio and video data decoding step comprises:
a step of determining a coding format of the audio frame sequence;
a step of selecting a corresponding decoder to decode the audio frame sequence based on the judgment result of the encoding format;
a step of restoring audio frames of said sequence of audio frames having a corresponding encoding format to audio data in PCM format.
18. The method of claim 17, wherein:
the encoding step includes:
a step of selecting an encoder having a corresponding encoding format based on the data on the encoding format stored in the storage device;
and a step of encoding the audio data in the PCM format with the adjusted volume by using the corresponding encoding format to obtain the recoded audio frame sequence.
19. The method of claim 18, wherein:
the packaging step comprises:
a step of selecting a packaging unit having a corresponding packaging format based on the data on the packaging format stored in the storage means;
a step of encapsulating the sequence of video frames and the sequence of re-encoded audio frames with the respective encapsulation formats.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101191571A CN103200371A (en) | 2013-03-29 | 2013-04-08 | System and method for video volume custom adjustment |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310107293.9 | 2013-03-29 | ||
CN201310107293 | 2013-03-29 | ||
CN2013101191571A CN103200371A (en) | 2013-03-29 | 2013-04-08 | System and method for video volume custom adjustment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103200371A true CN103200371A (en) | 2013-07-10 |
Family
ID=48722715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101191571A Pending CN103200371A (en) | 2013-03-29 | 2013-04-08 | System and method for video volume custom adjustment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103200371A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109819314A (en) * | 2019-03-05 | 2019-05-28 | 广州酷狗计算机科技有限公司 | Audio/video processing method, device, terminal and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020051493A1 (en) * | 2000-06-26 | 2002-05-02 | Shin Jae-Seob | Moving picture mailing system and method |
US20050201723A1 (en) * | 2003-12-16 | 2005-09-15 | Nokia Corporation | Method and device for compressed-domain video editing |
CN101247526A (en) * | 2008-03-18 | 2008-08-20 | 天津大学 | Sound volume equalization regulation and its application method based on digital television code stream |
CN101489070A (en) * | 2009-02-17 | 2009-07-22 | 华为技术有限公司 | Television volume regulating method, apparatus and system |
CN101674450A (en) * | 2008-09-10 | 2010-03-17 | 深圳市邦彦信息技术有限公司 | Sound mixing method in video directing and scheduling system |
CN102014262A (en) * | 2010-10-27 | 2011-04-13 | 杭州海康威视软件有限公司 | Hard disk video recorder and system and method for converting multimedia formats |
-
2013
- 2013-04-08 CN CN2013101191571A patent/CN103200371A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020051493A1 (en) * | 2000-06-26 | 2002-05-02 | Shin Jae-Seob | Moving picture mailing system and method |
US20050201723A1 (en) * | 2003-12-16 | 2005-09-15 | Nokia Corporation | Method and device for compressed-domain video editing |
CN101247526A (en) * | 2008-03-18 | 2008-08-20 | 天津大学 | Sound volume equalization regulation and its application method based on digital television code stream |
CN101674450A (en) * | 2008-09-10 | 2010-03-17 | 深圳市邦彦信息技术有限公司 | Sound mixing method in video directing and scheduling system |
CN101489070A (en) * | 2009-02-17 | 2009-07-22 | 华为技术有限公司 | Television volume regulating method, apparatus and system |
CN102014262A (en) * | 2010-10-27 | 2011-04-13 | 杭州海康威视软件有限公司 | Hard disk video recorder and system and method for converting multimedia formats |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109819314A (en) * | 2019-03-05 | 2019-05-28 | 广州酷狗计算机科技有限公司 | Audio/video processing method, device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103200425B (en) | A kind of multimedia processing apparatus and method | |
RU2666282C2 (en) | Apparatus and method for efficient object metadata coding | |
US8995534B2 (en) | Systems and methods for encoding and decoding | |
AU2016231238B2 (en) | Apparatus and method for encoding or decoding a multi-channel signal | |
EP4236331A2 (en) | Data processor and transport of user control data to audio decoders and renderers | |
TWI579832B (en) | Audio decoder, apparatus for generating encoded audio output data and methods permitting initializing a decoder | |
CN103237258A (en) | System and method for automatically adjusting video volume | |
CN103248950A (en) | System and method for customizing video frame rate | |
CN103237259A (en) | Audio-channel processing device and audio-channel processing method for video | |
US20230362224A1 (en) | Systems and methods for encoding and decoding | |
US20240185872A1 (en) | Method and apparatus for decoding a bitstream including encoded higher order ambisonics representations | |
KR20230129569A (en) | Audio decoder, audio encoder, method for providing a decoded audio signal, method for providing an encoded audio signal, audio stream, audio stream provider and computer program using a stream identifier | |
US11368745B2 (en) | Processing media data structures | |
CN103200371A (en) | System and method for video volume custom adjustment | |
CA2816284C (en) | Encoding and decoding a multimedia signal using syntax to generate a dynamically configured decoder | |
CN105376641A (en) | Device and method for streaming audio and video file | |
US11682395B2 (en) | Electronic device, system, method and program for externally adding voice control functionality to another device | |
FI20206100A1 (en) | Live channel supplementing | |
WO2012040232A1 (en) | Systems and methods for encoding and decoding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130710 |
|
RJ01 | Rejection of invention patent application after publication |