Bug 1870401 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The [duratoin](https://searchfox.org/mozilla-central/rev/8b5d93d099b5b501cf5bd2b606c59afcf88bef1c/dom/media/platforms/ffmpeg/FFmpegVideoEncoder.cpp#890) of the encoded data in FFmpegVideoEncoder is always `0`. Not sure if it's 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)`](
https://searchfox.org/mozilla-central/rev/8b5d93d099b5b501cf5bd2b606c59afcf88bef1c/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp#1221,1264) for older ffmpeg versions.
The [duratoin](https://searchfox.org/mozilla-central/rev/8b5d93d099b5b501cf5bd2b606c59afcf88bef1c/dom/media/platforms/ffmpeg/FFmpegVideoEncoder.cpp#890) 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)`](
https://searchfox.org/mozilla-central/rev/8b5d93d099b5b501cf5bd2b606c59afcf88bef1c/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp#1221,1264) for older ffmpeg versions.

Back to Bug 1870401 Comment 0