-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Video: Add
avc3
and hev1
muxer support for MediaRecorder
Background: Safari initially supported `avc1` mp4 recording. Then, Chrome added avc1 support since version M126 this year. The benefit of `avc1` is that it is the only H.264 tag natively supported by Apple devices. The same situation applies to `hvc1`. However, there are some limitations for `avc1` and `hvc1`. That is, they only allow "out of band" parameter sets and cannot change parameter sets during encoding. So, if the capture device can produce a video stream with a dynamically changing resolution, then only `avc3` and `hev1` can satisfy the needs as they support "in band" parameter sets so muxer can insert parameter sets into the bitstream if they are changed. This CL extends the existing `H264AnnexBToAvcBitstreamConverter` and `H265AnnexBToHevcBitstreamConverter` by adding a property to allow control the insertion of parameter sets into the bitstream. Also wire the `Mp4MuxerDelegate`to write correct tag based on the settings. Bug: 381179823 Bug: 40276507 Change-Id: I6d104546e9cf46b18fae4dc1fd8af1124b918e7c
- Loading branch information
1 parent
4a348b2
commit 0c4d849
Showing
6 changed files
with
46 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters