Skip to content
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

Audio gets distorted on video resizing #37

Closed
rafaelbuiu opened this issue Sep 10, 2015 · 2 comments
Closed

Audio gets distorted on video resizing #37

rafaelbuiu opened this issue Sep 10, 2015 · 2 comments

Comments

@rafaelbuiu
Copy link

I am using the RecordRTC-to-Nodejs example to record a testimonial video from my application.
The default setup records the videos very fine, but I need them in a bigger size instead of 320x240.
ie: 1920x1080 or 1280x720.

The audio gets distorted (like a robot) when I change the video config to:

var videoConfig = {
     type: 'video',
     recorderType: WhammyRecorder,
     width: 1280,
     height: 720
};

Is there anything I am missing?

Google Chrome Version 45.0.2454.85 (64-bit) on Mac Yosemite OSX

@rafaelbuiu rafaelbuiu changed the title Audio get distorted on video resizing Audio gets distorted on video resizing Sep 10, 2015
@rafaelbuiu
Copy link
Author

Actually the bug happens if the video is resized to any size. I just tried 800x600 and 640x480.

@muaz-khan
Copy link
Owner

Setting bufferSize: 16384 fixes this issue.

// Legal values are (256, 512, 1024, 2048, 4096, 8192, 16384).

var options = {
   bufferSize: 16384
};
var recordRTC = RecordRTC(audioStream, options);

Relevant commit: 329e386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants