WebRTC-Experiment
WebRTC-Experiment copied to clipboard
Recording long audio & video streams
Hi
I am using chrome latest version, and when I am trying to record audio & video that last 1:05 , I am getting only a 33 seconds of video and the audio usually muted after 10 second.However when I record lets say 10 sec of video+audio it works fine.
Is it a common issue ?
Thanks
RecordRTC seems working fine and capable to record longer audio files. Can you share your OS details? Are you using microphone or notebook's built-in audio input device?
Hi
Thank you for the fast reply.
I am using mac book pro with OSX 10.9. I am using the built in audio output device.
Thank you
Guy Issler
On 27, Nov,2013, at 12:54, Muaz Khan [email protected] wrote:
RecordRTC seems working fine and capable to record longer audio files. Can you share your OS details? Are you using microphone or notebook's built-in audio input device?
— Reply to this email directly or view it on GitHub.
Hi
I also encountered same issue when trying to work around #143
Everything works great until ~30s of recording takes place. The video is always truncated to 30s, but the audio continues to playback as expected. I see same behaviour using MRecordRTC and RecordRTC-to-Nodejs.
Also, when using RecordRTC-to-Nodejs, if I play the merged webm file in VLC, the same issue occurs, so I don't think it is a chrome playback issue, but something to do with the initial webm video recording.
I'm seeing the same issue with MRecordRTC. The audio stream records fine, however the video stream is corrupt around 30 seconds in. "ffmpeg -i mRecordRTCoutput.webm output.webm" produces lots of this after no initial errors on the first few hundred frames:
DTS 245784596, next:31048000 st:0 invalid dropping PTS 245784596, next:31048000 invalid dropping st:0 DTS 245784619, next:31049000 st:0 invalid dropping PTS 245784619, next:31049000 invalid dropping st:0 DTS 245784640, next:31050000 st:0 invalid dropping PTS 245784640, next:31050000 invalid dropping st:0 DTS 245784663, next:31051000 st:0 invalid dropping PTS 245784663, next:31051000 invalid dropping st:0
The resulting file is 31 seconds long, but the recorded video was much longer.
@swilliam-sparc longer video recording issues has been fixed in RecordRTC. I'm testing to check if changes are affecting existing features like canvas-recording. I'll push commits to github very soon.
You'll be able to record video of 10 or more minutes; and both audio/video will work fine. I'll also update RecordRTC-to-Nodejs demo to sync audio in resulting merged WebM file.
Hi Muaz
Any news about the long video + audio recording issue ? I have tested it again and see it still doesn’t work well. When do you think this fix will be pushed ?
Thanks
Guy Issler
On 20, Mar,2014, at 18:01, Muaz Khan [email protected] wrote:
@swilliam-sparc longer video recording issues has been fixed in RecordRTC. I'm testing to check if changes are affecting existing features like canvas-recording. I'll push commits to github very soon.
You'll be able to record video of 10 or more minutes; and both audio/video will work fine. I'll also update RecordRTC-to-Nodejs demo to sync audio in resulting merged WebM file.
— Reply to this email directly or view it on GitHub.
@GuyIssler, you should try following RecordRTC.js
file:
https://github.com/muaz-khan/WebRTC-Experiment/blob/master/RecordRTC/RecordRTC.js
You can try following audio/video sync demo with long recordings:
- https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC/PHP-and-FFmpeg
P.S. Sync is happened on ffmpeg-PHP side; browser-side still has about 1-second latency for audio.
Ok, I will take a look in to that.
What was the error that caused it to fail recording long video+audio ?
Ok I have tried the code you sent. It works much better now !!! When I watch my recorded video & audio on the same page I recorded it, I am able to watch the full recording with audio as expected.
However, I am having a hard time with uploading it to a remote server and combining the two files (audio & video files) into one, using ffmpeg. the output doesn’t contains all the frames and therefore ends before expected. Moreover, It takes to long to upload the two files, I guess it because of the size of the wave file, after all it is a 1 minute audio.
any ideas how to overcome this ? is there a way to save the audio as mp3 and not wav ? I am using Chrome on Mac OS 10.9.2
Thanks a lot !!
You can find many ffmpeg-asm.js based demos here:
- https://www.webrtc-experiment.com/ffmpeg/
For example:
- https://www.webrtc-experiment.com/ffmpeg/wav-to-ogg.html
- https://www.webrtc-experiment.com/ffmpeg/merging-wav-and-webm-into-mp4.html
Source codes are also available here:
- https://github.com/muaz-khan/WebRTC-Experiment/tree/master/ffmpeg
@GuyIssler Main problem is that we need a proper muxor running in the browser to merge the audio and video streams... you can send audio + video payloads server side and mux there, or try the ffmpeg-asm.js option as per @muaz-khan suggests... but, you will mostly likely experience sync/drift issues when running in diff browser/devices at some point...
I send both payloads to server and mux with ffmpeg, but I have to tweak the JS to sync the audio/video timing and frame rates for my browser/machine spec. It works fine for same machine/browser/cam specs, but the audio drifts with different hardware configurations...
Given Google are pulling plugin support for Chrome in Sept (?), I should imagine that the full WebRTC Media Recording API (will mux for us into webm format browser-side) will be inbound for Chrome soon... I think @muaz-khan mentioned that Firefox nightly already does this, but I've not tried yet.
Great work on this recording capability @muaz-khan - I use RecordRTC for my video messaging system right now :-)
Hi Muaz
Thank you for your great support until now ! I have managed to create video & audio file that last more than a minute.
However , It takes very long time to upload both audio & video files to the server.
Is there a good solution for compressing the 2 files before sending to the server or other fast uploading way ?
Thanks a lot for your help ! I really appreciate it !
Guy Issler
Hi Muaz
Do you have maybe an example code for recording & uploading audio file in ogg format ? I believe it will be much more faster to upload ogg file because it is much smaller than wav file.
I am very appreciate your help so far….
Thanks
Guy
On 2, May,2014, at 7:40, Guy Issler [email protected] wrote:
Hi Muaz
Thank you for your great support until now ! I have managed to create video & audio file that last more than a minute. However , It takes very long time to upload both audio & video files to the server.
Is there a good solution for compressing the 2 files before sending to the server or other fast uploading way ?
Thanks a lot for your help ! I really appreciate it !
Guy Issler
Hi Mauz, I seen the Recordrtc over node js and socket io but when long time video upload occur (around 10 minute) it take much more time to merger and upload to the folder and even sometime machine is getting hanged. Is there a solution for long time video recording? I have also test the PHP-FFMPEG it also the same problem I found for long video recording. Ajax response is take more time to upload the file in the server.
Thanks a lot !!
I have problem with machines of only one core by processor. With machine with more cores i not have problem. The process use 100% of core. I got recording videos greatger than 10 minutes with machine of 6 core, by example. Em 27/05/2016 04:38, "developer13B" [email protected] escreveu:
Hi Mauz, I seen the Recordrtc over node js and socket io but when long time video upload occur (around 10 minute) it take much more time and even sometime machine is getting hanged. Is there a solution for long time video recording? I have also test the PHP-FFMPEG it also the same problem I found for long video recording.
Thanks a lot !!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/muaz-khan/WebRTC-Experiment/issues/125#issuecomment-222080769, or mute the thread https://github.com/notifications/unsubscribe/ACs-SdbxEB6p_bZTQjL8fSdRD1GwQvCoks5qFp9tgaJpZM4BQUB7 .
how can i Record two streams like remote stream and local stream in single somenamefile.webm file using recordrtc.org ?
Any help on above post may help me a lot thanks..
Does webRTC support recording of audio in WAV or FLAC format?
not sure FLAC, possibility for WAV.
On Thu, Sep 21, 2017 at 4:51 AM, Murlidhar [email protected] wrote:
Does webRTC support recording of audio in WAV or FLAC format?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/muaz-khan/WebRTC-Experiment/issues/125#issuecomment-331007706, or mute the thread https://github.com/notifications/unsubscribe-auth/ALlpH_vY77QkG0TYy5bcmo1HcoCTHEX9ks5skZ37gaJpZM4BQUB7 .
--
- regards*
Mantha Chakradhar *Office: *91 - 40 - 67681220 | Email: [email protected]| Web: www.atmecs.com ATMECS Technologies Pvt Ltd., 2nd Floor, Lanco Hills Technology Park, Hyderabad - 89
-- The information in this message may be proprietary and/or confidential, and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify ATMECS and delete it from your computer.
I got a issue for above 1 minute video in chrome extension. When I send small video blob, I can see this in payload but for more than 1 minute duration video, we cant see nothing even if server response also.
Please help me to resolve this.