Open semprom opened 11 years ago
Hello? How can we fix the lag when we are recording a gif. I want to be able to record a gif with nice quality and good frame rate.
Thanks.
You can use frameRate
and quality
attributes to get faster rich quality gif images:
var options = {
type: 'gif',
frameRate: 100,
quality: 1
};
var recordRTC = RecordRTC(mediaStream, options);
recordRTC.startRecording();
recordRTC.stopRecording(function(gifURL) {
window.open(gifURL);
});
frameRate
// void setFrameRate(Number fps) // Sets frame rate in frames per second. // Equivalent to setDelay(1000/fps). // Using "setDelay" instead of "setFrameRate"
quality
// void setQuality(int quality) // Sets quality of color quantization (conversion of images to the // maximum 256 colors allowed by the GIF specification). // Lower values (minimum = 1) produce better colors, // but slow processing significantly. 10 is the default, // and produces good color mapping at reasonable speeds. // Values greater than 20 do not yield significant improvements in speed.
OK thanks. Is there a way first to record the gif and then encode it? Not to do it all at the same time. Something like this ( http://www.sysord.fr/Sysord/ressource_whammy.jsf ) which is for webm.
Thanks!
Hello! When recording a gif the image is not fluid. It seems like it lags a bit. I would like to see a option for choosing to make it more fluid.
Thanks.