Closed Bug 1868906 Opened 7 months ago Closed 7 months ago

Allow FFmpegVideoEncoder continues encoding after Drain()

Categories

(Core :: Audio/Video, task, P1)

task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(4 files)

Bug 1860899 is going to implement a FFmpegVideoEncode. The Drain() is implemented by sending NULL to the avcodec_send_frame(), which can leave the encoder in a permanent EOF state and the encoder is unable to continue encoding in EOF state.

To continue encoding after Drain(), a new AVCodecContext/encoder creation is required.

Assignee: nobody → cchang

Depends on D195906

Depends on D195907

Depends on D195908

Summary: Allow continuing encoding after Drain() → Allow FFmpegVideoEncoder continues encoding after Drain()
See Also: → 1869466
Attachment #9367694 - Attachment description: WIP: Bug 1868906 - Add Encode() after Drain() tests → Bug 1868906 - Add Encode() after Drain() tests
Attachment #9367695 - Attachment description: WIP: Bug 1868906 - Move Init work to a function → Bug 1868906 - Move Init work to a function
Attachment #9367696 - Attachment description: WIP: Bug 1868906 - Move Shutdown work to a function → Bug 1868906 - Move Shutdown work to a function
Attachment #9367697 - Attachment description: WIP: Bug 1868906 - Recreate AVCodecContext after draining → Bug 1868906 - Recreate AVCodecContext after draining
Pushed by cchang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/81acf461e6a8
Add Encode() after Drain() tests r=media-playback-reviewers,padenot
https://hg.mozilla.org/integration/autoland/rev/117f0de1506c
Move Init work to a function r=media-playback-reviewers,padenot
https://hg.mozilla.org/integration/autoland/rev/84f0fd345b1f
Move Shutdown work to a function r=media-playback-reviewers,padenot
https://hg.mozilla.org/integration/autoland/rev/e3a43409dd5a
Recreate AVCodecContext after draining r=media-playback-reviewers,padenot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: