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•6 months ago
|
||
Assignee | ||
Comment 2•6 months ago
|
||
Depends on D196640
Updated•6 months ago
|
Assignee | ||
Comment 3•6 months 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•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Comment 4•6 months 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•6 months ago
|
Assignee | ||
Comment 5•6 months ago
|
||
Depends on D196683
Assignee | ||
Comment 6•6 months ago
|
||
Depends on D197355
Assignee | ||
Comment 7•6 months ago
|
||
Run
./mach clang-format --path dom/media/gtest/TestMediaDataEncoder.cpp
Depends on D196683
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c8c1d0bff9dc Simplify AVFrame's duration settings r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/cf64542b8a45 Set duration for ffmpeg version < 60 r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/5d9e038ddb39 clang-format TestMediaDataEncoder.cpp r=media-playback-reviewers,alwu https://hg.mozilla.org/integration/autoland/rev/ff9dcb89337a Move H264AVCC lines r=media-playback-reviewers,alwu https://hg.mozilla.org/integration/autoland/rev/697b731b550c Add duration tests r=media-playback-reviewers,alwu
Comment 9•6 months 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
•