Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
Usar mediarecorder para grabar renderizados de matter.js+p5.js crea videos muy borrosos

Utilicé mediarecorder para grabar un render creado usando matter.js y p5.js, pero el video resultó así .

¿Cómo arreglaría esto? Ya he intentado configurar la tasa de bits arbitrariamente alta.

Usé el código de ejemplo:

 let canvas = document.getElementById('defaultCanvas0'); videoStream = canvas.captureStream(fps); mediaRecorderv = new MediaRecorder(videoStream); chunks = []; console.log(mediaRecorderv.videoBitsPerSecond) mediaRecorderv.ondataavailable = function(e) { chunks.push(e.data); }; mediaRecorderv.onstop = function(e) { let blob = new Blob(chunks, { 'type' : 'video/mp4' }); chunks = []; let videoURL = URL.createObjectURL(blob); const link = document.createElement('a'); link.href = videoURL; link.download = 'render.mp4'; document.body.append(link); link.click(); link.remove(); }; mediaRecorderv.start();
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!