RecordRTC icon indicating copy to clipboard operation
RecordRTC copied to clipboard

Duplicate Frame and Frame Drop when timeSlice is 100 and send data to WebSocket

Open dholgaurav opened this issue 3 years ago • 2 comments

Hi

RecordRTC v5.6.1 we are using the below configuration and send realtime audio data on web socket but we are facing duplicate frames and some frames are dropped in the final output

   var options = { 
             mimeType: 'audio/wav',
            type: 'audio',
            checkForInactiveTracks: true,
            numberOfAudioChannels: 1,
            timeSlice: 100,
            noWorker: true,
            recorderType: StereoAudioRecorder,
            ondataavailable: function (e) {
                socketSend(e);
            }
        };
        recorder = new RecordRTC(stream, options);

If we set desiredSampRate to 16000, the issue reproduces rate is increased.

Please find attached sample audio output for Frame Drop and Duplicate Frame Frame_Drop_Duplicate.zip

Can you please suggest how we can capture 16k mono data and send to WebSocket without a frame drop and duplicate frame

dholgaurav avatar Jul 31 '20 17:07 dholgaurav

I have the same issue, I need my recordings to be 100% time accurate and they are not.

numerized avatar Aug 28 '20 07:08 numerized

Need the Same!! How i can capture frame by Frame, to be sure its smooth

dazzafact avatar Feb 18 '22 14:02 dazzafact