recordrtc video/audio

745 views
Skip to first unread message

Gerald Robert Quinones

unread,
Jan 1, 2014, 11:41:43 AM1/1/14
to eas...@googlegroups.com
Looking for reliable recordrtc for vudeo/audio to be saved as one file that works with ff and chrome, found Mauz Khan's demo:

https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC

It's hard to keep updated and cross browser failure are having me look for third party solution. Is easyrtc working on recordrtc?

Eric Davies

unread,
Jan 2, 2014, 11:45:42 AM1/2/14
to eas...@googlegroups.com
Hi Gerald,

Being able to record audio/video is on the list of things we want to do in the future, but we haven't had the time to devote to it yet.

Mauz Khan's recordrtc is very clever stuff but it's viable in the common use cases. Try running his code and notice how big the files are for a given period of time. The trick is his audio is WAV format (basically raw uncompressed sound samples) and his video doesn't have interframe compression (which is where you get most of the compression in video because there are typically only small changes between frames). There are audio compression libraries written in Javascript, but I have no idea how powerful a machine you'd need to make them run in real-time while also spending cycles on video compress/decompression. If you have the time to do the experiment, I'm sure a lot of people would love to hear the results.

There is a MediaStreamRecorder API but to the best of my knowledge, no browsers implement it yet. The node-webrtc project should make it easier to write your own conferencing server (including recording) and it sounds like it's nearly ready for that purpose. 

Eric Davies

unread,
Jan 2, 2014, 12:44:03 PM1/2/14
to eas...@googlegroups.com
whoops, typo: I meant to say "it's NOT viable" rather than "it's viable".

Muaz Khan

unread,
Jan 3, 2014, 8:38:49 AM1/3/14
to eas...@googlegroups.com
RecordRTC is NEVER been recommended! You're suggested to try MediaRecorder API on Firefox. 

For chrome; you can capture video frames as png/jpeg/etc. images and transmit them in realtime to socket.io server; same as https://videomail.io/ is doing.

For audio recording; you need to wait for MediaRecorder API implementation on chrome. The only workaround is WebAudio API; and mono audio recording is on of the "biggest" issue there. Works on XP3; and 7/8. Fails on Android devices.

Though, I've a demo that merges wav/webm using ffmpeg; however it is NOT a realtime solution.

There is ffmpeg implementation for javascript as well; however gzipped file size is about 6MB!
Reply all
Reply to author
Forward
0 new messages