Multi-pass variable bitrate media encoding
First Claim
1. In an audio encoder, a computer-implemented method of audio encoding according to a multi-pass variable bitrate control strategy, the method comprising:
- in a first pass, encoding a sequence of audio data; and
in a second pass, encoding the sequence of audio data in view of a target quality level to produce variable bitrate output, wherein the target quality level is based at least in part upon statistics from the encoding in the first pass.
2 Assignments
0 Petitions
Accused Products
Abstract
An encoder uses multi-pass VBR control strategies to provide constant or relatively constant quality for VBR output while guaranteeing (within tolerance) either compressed file size or, equivalently, overall average bitrate. The control strategies include various techniques and tools, which can be used in combination or independently. For example, in a first pass, an audio encoder encodes a sequence of audio data partitioned into variable-size chunks. In a second pass, the encoder encodes the sequence according to control parameters to produce output of relatively constant quality. The encoder sets checkpoints in the second pass to adjust the control parameters and/or subsequent checkpoints. The encoder selectively considers a peak bitrate constraint to limit peak bitrate. The encoder stores auxiliary information from the first pass for use in the second pass, which increases the speed of the second pass. Finally, the encoder compares signatures for the input data to check consistency between passes.
-
Citations
81 Claims
-
1. In an audio encoder, a computer-implemented method of audio encoding according to a multi-pass variable bitrate control strategy, the method comprising:
-
in a first pass, encoding a sequence of audio data; and
in a second pass, encoding the sequence of audio data in view of a target quality level to produce variable bitrate output, wherein the target quality level is based at least in part upon statistics from the encoding in the first pass. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. In a computer system, a computer-implemented method of media encoding according to a multi-pass variable bitrate control strategy, the method comprising:
-
in a first pass, encoding media data partitioned into variable-size chunks for the encoding;
processing results of the encoding in the first pass to determine one or more control parameters for the media data; and
in a second pass, encoding the media data according to the one or more control parameters in view of a goal of uniform quality at variable bitrate. - View Dependent Claims (19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)
-
-
34. In a computer system, a computer-implemented method of audio encoding according to a multi-pass variable bitrate control strategy, the method comprising:
-
in a first pass, encoding audio data, including computing triplets for plural chunks of the audio data, wherein each of the triplets includes a value for each of quantization step size, bits, and quality setting; and
in a second pass, encoding audio data to produce variable bitrate output at a target quality level. - View Dependent Claims (35, 36, 37)
-
-
38. In an audio encoder, a computer-implemented method comprising:
-
determining a first quality level associated with a first quantization level;
determining a second quality level associated with a second quantization level;
from the first and second quantization levels and the first and second quality levels, computing a target quantization level corresponding to a target quality level by interpolation according to a linear relation between logarithm of quantization level and logarithm of quality level; and
using the target quantization level in a control strategy for audio encoding.
-
-
39. In an audio encoder, a computer-implemented method comprising:
-
determining a first bit count associated with a first quantization level;
determining a second bit count associated with a second quantization level;
from the first and second bit counts and the first and second quantization levels, computing a target bit count corresponding to a target quantization level according to a linear relation between logarithm of bit count and quantization level; and
using the target bit count in a control strategy for audio encoding.
-
-
40. In an audio encoder, a computer-implemented method comprising:
-
determining a first quality level associated with a first quantization level;
determining a second quality level associated with a second quantization level;
from the first and second quantization levels and the first and second quality levels, computing a target quantization level corresponding to a target quality level according to a function relating quantization level and quality level;
determining a first bit count associated with the first quantization level;
determining a second bit count associated with the second quantization level;
from the first and second bit counts and the first and second quantization levels, computing a target bit count corresponding to the target quantization level according to a function relating bit count and quantization level; and
using the target bit count in a control strategy for audio encoding.
-
-
41. In a computer system, a computer-implemented method of media encoding according to a multi-pass control strategy, the method comprising:
-
in a first pass, encoding media data;
storing auxiliary information from the encoding in the first pass; and
in a second pass, encoding the media data, including using the stored auxiliary information to increase speed of the encoding in the second pass. - View Dependent Claims (42, 43, 44, 45, 46, 47)
-
-
48. In a computer system, a computer-implemented method comprising:
-
in a first pass, computing a first pass signature for each of one or more portions of media data and encoding the one or more portions; and
in a second pass, computing a second pass signature for a given portion of the one or more portions;
comparing the second pass signature with the first pass signature for the given portion;
if the first pass signature matches the second pass signature, encoding the given portion;
otherwise, performing one or more alternative actions. - View Dependent Claims (49, 50, 51, 52, 53, 54, 55, 56)
-
-
57. In an audio encoder, a computer-implemented method of audio encoding according to a multi-pass variable bitrate control strategy, the method comprising:
-
in a first pass, encoding a sequence of audio data; and
in a second pass, encoding the sequence of audio data in view of a goal of uniform quality at variable bitrate, wherein a peak bitrate constraint affects quality and bitrate in the second pass. - View Dependent Claims (58, 59, 60)
-
-
61. In a media encoder, a computer-implemented method of media encoding, the method comprising:
-
selectively enabling or disabling a peak bitrate constraint for a sequence of media data;
in a first pass, encoding the sequence of media data; and
in a second pass, encoding the sequence of media data, wherein the peak bitrate constraint affects quality and bitrate in the second pass if the peak bitrate constraint is enabled for the sequence. - View Dependent Claims (62, 63, 64, 65)
-
-
66. In a media encoder, a computer-implemented method of media encoding, the method comprising:
-
in a first pass, encoding media data;
processing results of the encoding in the first pass, wherein the processing includes setting a checkpoint at a defined percentage of a target total bit count for the media data; and
in a second pass, encoding media data, wherein the encoding in the second pass includes checking results of the encoding in the second pass as of the checkpoint. - View Dependent Claims (67, 68, 69, 70)
-
-
71. In a media encoder, a computer-implemented method of media encoding, the method comprising:
-
in a first pass, encoding a sequence of media data;
setting a checkpoint for encoding in a second pass; and
in the second pass, iteratively;
encoding media data up to the checkpoint, checking results of encoding in the second pass up to the checkpoint, and updating the checkpoint for the encoding in the second pass, wherein the second pass continues until the sequence of media data is encoded. - View Dependent Claims (72, 73, 74, 75, 76)
-
-
77. In an audio encoder, a computer-implemented method of audio encoding according to a multi-pass variable bitrate control strategy, the method comprising:
-
in a first pass, encoding a sequence of audio data, wherein the sequence includes plural chunks; and
in a second pass, encoding the sequence of audio data in view of a goal of uniform quality at variable bitrate, wherein the encoding in the second pass includes checking results at each of plural checkpoints, and wherein each of the plural checkpoints is separated from other checkpoints by at least two chunks. - View Dependent Claims (78, 79, 80, 81)
-
Specification