Duration of encoded data in FFmpegVideoEncoder is always 0
Categories
(Core :: Audio/Video, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox123 | --- | fixed |
People
(Reporter: chunmin, Assigned: chunmin)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 1 obsolete file)
The duratoin of the encoded data in FFmpegVideoEncoder is always 0
. It's probably limited by the FFmpeg's API. An alternative is to save the duration before encoding and retrieve the duration after encoding, like what FFmpegVideoDecoder.cpp
did (mDurationMap)
for older ffmpeg versions.
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
Depends on D196640
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
AV_CODEC_FLAG_FRAME_DURATION
was introduced in ffmpeg 60. For older
ffmpeg versions, we can simply save the duration in a map and then
retrieve it when needed, as what FFmpegVideoDecoder did.
Depends on D196641
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Comment on attachment 9369021 [details]
Bug 1870401 - Correct include order
Revision D196640 was moved to bug 1872204. Setting attachment 9369021 [details] to obsolete.
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Depends on D196683
Assignee | ||
Comment 6•1 year ago
|
||
Depends on D197355
Assignee | ||
Comment 7•1 year ago
|
||
Run
./mach clang-format --path dom/media/gtest/TestMediaDataEncoder.cpp
Depends on D196683
Comment 9•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c8c1d0bff9dc
https://hg.mozilla.org/mozilla-central/rev/cf64542b8a45
https://hg.mozilla.org/mozilla-central/rev/5d9e038ddb39
https://hg.mozilla.org/mozilla-central/rev/ff9dcb89337a
https://hg.mozilla.org/mozilla-central/rev/697b731b550c
Description
•