The compressed size of encoded video from AppleVTEncoder is not as expected
Categories
(Core :: WebRTC, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: alwu, Assigned: jhlin)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
When using an encoder to encode a video, we can set a targeted bit rate to tell encoder what the size of encoded video we would like to have, then the encoder would try to balance the whole size of video to make the average bit rate of the encoded frame similar as the bit rate we set.
However, when we use AppleVTEncoder to encode video, we found that the bit rate of the encoded video is really far from the one we expect.
Eg. we set the bit rate to 2M, but the result video's bit rate is only around 658K, which makes video quality very bad.
| Assignee | ||
Comment 1•6 years ago
|
||
The parameter type of MediaDataEncoder::SetBitrate() is MediaDataEncoder::Rate/ uint32_t, but interpreted by AppleVTEncoder as a kCFNumberSInt64Type CFNumber.
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
With minor code cleanup.
Depends on D41105
| Assignee | ||
Comment 4•6 years ago
|
||
Depends on D41106
Comment 6•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4f04f46d12fe
https://hg.mozilla.org/mozilla-central/rev/8dcd37f23927
https://hg.mozilla.org/mozilla-central/rev/41013239c79c
Description
•