Bug 215018 - MediaRecorder should support MediaRecorderOptions.mimeType
Summary: MediaRecorder should support MediaRecorderOptions.mimeType
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on: 216856
Blocks: 85851
  Show dependency treegraph
 
Reported: 2020-07-31 08:03 PDT by youenn fablet
Modified: 2020-10-01 07:09 PDT (History)
10 users (show)

See Also:


Attachments
Patch (22.89 KB, patch)
2020-09-30 07:57 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Rebasing (19.89 KB, patch)
2020-10-01 01:54 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2020-07-31 08:03:33 PDT
MediaRecorder should support MediaRecorderOptions.mimeType
Comment 1 Radar WebKit Bug Importer 2020-08-07 08:04:26 PDT
<rdar://problem/66681508>
Comment 2 Diego Caravana 2020-09-18 02:23:24 PDT
If you need confirmation (or testing afterwards) with this one, in my case my code asks for "video/webm;codecs=vp9", or even only "video/webm", what I get is actually an MP4 container with AVC/AAC encoded video/audio.
Comment 3 Marcos G. 2020-09-24 12:55:31 PDT
As Diego said it would desirable to use vp9 codec for encoding. Here is an example: https://codepen.io/marcosdg3/pen/xxVMaQY

This specifies using the mimeType: "video/webm;codecs=vp9" and will output the type used after recording.
Comment 4 youenn fablet 2020-09-24 13:01:32 PDT
(In reply to Marcos G. from comment #3)
> As Diego said it would desirable to use vp9 codec for encoding. Here is an
> example: https://codepen.io/marcosdg3/pen/xxVMaQY
> 
> This specifies using the mimeType: "video/webm;codecs=vp9" and will output
> the type used after recording.

Webm is currently not supported in MacOS/iOS MediaRecorder backend.
That seems like a different request from mimeType.
Comment 5 youenn fablet 2020-09-30 07:57:02 PDT
Created attachment 410120 [details]
Patch
Comment 6 youenn fablet 2020-10-01 01:54:49 PDT
Created attachment 410209 [details]
Rebasing
Comment 7 EWS 2020-10-01 07:09:27 PDT
Committed r267833: <https://trac.webkit.org/changeset/267833>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 410209 [details].