MediaStreamRecorder icon indicating copy to clipboard operation
MediaStreamRecorder copied to clipboard

Recording with firefox bug and recording blob files bug

Open yanshekki opened this issue 8 years ago • 5 comments

Hi there,

This is my testing site: https://www.extratown.com/streaming

1, When I use firefox recording video mediaRecorder.start(15000) or more time that can't normal output blob data. Maybe 300kb - 500kb per one blob many and fast output.

2, When I use chrome to recording video mediaRecorder.start(15000) that will output blob file(s) about size 15000kb + 300kb "two files" for one record.

3, The record blob I change to "new File(recordedBlobs, n + '.webm', {mimeType: 'video/webm'});" that only can play in Linux firefox browser! Mac os chrome firefox and Linux chrome can't play the flies (I have no windows to test sor). Why can't play? I find problem may the files is not complete that say 15ms per one video in the control bar just play 1ms-10ms.

My english not good, forgive me. Thank you!

yanshekki avatar Jun 21 '16 05:06 yanshekki

Hello @yanshekki , can you try changing the recorder type to StereoAudioRecorder? Try also reducing the video size on your recorder?

Are you trying to merge the blobs? If you're trying to stream the blobs, why not stream it directly every 15 secs, I mean, when ondataavailable is fires, stream it directly?

noahjerreel avatar Jun 21 '16 06:06 noahjerreel

hi @noahjerreel Is StereoAudioRecorder just audio? I tried 1000ms 5000ms 10000ms 15000ms 30000ms with mediaRecorder.start() that output blob is not normal.

Using the same code when recording blob information: chrome: https://www.extratown.com/public/2016/06/21/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2016-06-21-%E4%B8%8B%E5%8D%883.22.07.png firefox: https://www.extratown.com/public/2016/06/21/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2016-06-21-%E4%B8%8B%E5%8D%883.25.14.png

You can try the link(use not the same browser and os): https://www.extratown.com/streaming

I tried merge the blobs, the problem same here.

I doing the streaming is recorded the video may 15ms per one video then using webtorrent p2p bt to other user to watch. So recorded one file will make a hash to share and start the next record video, the other user will download the videos and play non-stop.

yanshekki avatar Jun 21 '16 07:06 yanshekki

Yup @yanshekki , but you can set the recorder type to StereoAudioRecorder to force the mediastreamrecorder use the webaudio api. I'm currently using it on my end and was able to capture both video and audio

noahjerreel avatar Jun 22 '16 01:06 noahjerreel

hi @noahjerreel , should you please let me know more details with StereoAudioRecorded recording video and audio at same time? thank you for your help.

maybe i need to use server to convert format like this: https://github.com/muaz-khan/WebRTC-Experiment/tree/master/ffmpeg

yanshekki avatar Jun 22 '16 03:06 yanshekki

Hello @yanshekki , I would love to, but I think it's better if @muaz-khan will explain it to you. I can't fully grasp it yet. Hope you would understand.

FFMpeg will surely help you, but the only thing you will consider is it's size. But if you could make it work, compressing it, then that's good for you

noahjerreel avatar Jun 22 '16 03:06 noahjerreel