-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Chrome h264 support #97
Comments
We may need to pass var recorder = RecordRTC(mediaStream, {
type: 'video',
mimeType: 'video/mp4; codecs="mpeg4, aac"'
}); |
I've tried this on Chrome/54.0.2840.41 on Ubuntu 16.04 but ffprobe keeps saying it's webm vp8 although it's available in Chrome since v52:
Same with Firefox 49 on the same platform (both Recording log:
|
When using the mime type ffprobe output:
A list of all available mime types in Chrome is listed here. |
Hi, So can I also pass other audio formats for webm file? I passed this: mimeType: 'video/webm; codecs="VP9, wav"' But it gave an error on browser end, in the console this appears multiple times:
|
Here it is mentioned that along with video, only OPUS is the acceptable audio codec. But for one of my project I need video in h264 and audio in wav or flac (because I need lossless data). Can I achieve this by parallely running two recorders one of audio and one of video? Thanks. |
No idea. |
@thijstriemstra |
@bhanu-mnit You can initiate many parallel recorders: var h264Recorder = RecordRTC(videoOnlyStream, {
type: 'video',
mimeType: 'video/webm\;codecs=h264'
});
var wavRecorder = RecordRTC(stream, {
type: 'audio',
recorderType: StereoAudioRecorder
}); Or use |
Dear Muaz Khan & all,
The error is "Uncaught SyntaxError: Unexpected token :" at the line code: mediaRecorder.mimeType: 'video/webm;codecs=h264'; Please help me, What wrong in may code? How to fix it? |
@hoangbienit change to |
New demo for supported types on https://www.webrtc-experiment.com/RecordRTC/simple-demos/isTypeSupported.html |
Technically WebM container should contain only VP8, VP9, Vorbis, and Opus codecs. See https://bugzilla.mozilla.org/show_bug.cgi?id=1562862, https://bugs.chromium.org/p/chromium/issues/detail?id=980822 ./mkvmerge -o full.webm 0.webm + 1.mp4 |
Getting the same error, have you managed to fix this? |
Chrome 50 supports h264 encoding/decoding: https://groups.google.com/forum/#!topic/discuss-webrtc/8ov4YW6HLgo
The text was updated successfully, but these errors were encountered: