-
-
Notifications
You must be signed in to change notification settings - Fork 314
-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with H.264 codecs in firefox #325
Comments
Good catch, fixed. |
@ignl take a look at muaz-khan/RecordRTC#97 |
Yeah I saw that issue during my search. It seems that Firefox does not support matroska container and Chrome for some reason uses matroska instead of mp4 container for h.264 records. |
You can check supported types for MediaRecorder using: MediaRecorder.isTypeSupported("video/webm;codecs=H264")
MediaRecorder.isTypeSupported("video/mp4") In Firefox 64 on Ubuntu all statements above return The Firefox docs have an example: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported var types = ["video/webm",
"audio/webm",
"video/webm\;codecs=vp8",
"video/webm\;codecs=daala",
"video/webm\;codecs=h264",
"audio/webm\;codecs=opus",
"video/mpeg"];
for (var i in types) {
console.log( "Is " + types[i] + " supported? " + (MediaRecorder.isTypeSupported(types[i]) ? "Maybe!" : "Nope :("));
} Which returns:
|
Also see https://www.webrtc-experiment.com/RecordRTC/simple-demos/isTypeSupported.html. Closing ticket since there's not much we can do (firefox browser issue). |
Looks like Firefox 65 introduced support for the AV1 codec (already available in Chrome), maybe that could be an alternative.. Give this a try in Firefox 65 or newer: https://codepen.io/miguelao/pen/edqNab?editors=0010 |
Also interesting statement here: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType "Keep in mind, of course, that the file format and the codecs associated with the individual tracks are different things entirely; writing tracks that work just fine in a WebM video into an MP4 wrapper may not result in a file that plays everywhere you want it to." |
OK thanks for references! Let's hope AV1 will work better. Good thing is that apple also participates in that consortium so there is a chance it will adopt it for Safari. |
See https://bugs.chromium.org/p/chromium/issues/detail?id=980822 |
Description
versions
videojs
video.js 7.5.0
videojs.record.js 3.3.0
RecordRTC 5.5.3
browsers
Firefox 64 + Chrome 71
OSes
Ubuntu 18.10
The text was updated successfully, but these errors were encountered: