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

197
Views
Error ffmpeg.FS('readFile', 'demo.mp4'). Comprobar si existe la ruta

Estoy tratando de convertir el archivo webm recordRTC a mp4 usando la biblioteca ffmpeg.js en el proyecto nextjs, durante la demostración encubierta de este problema, cualquiera puede ayudarme.

 const stopRecording = async () => { if (recordRef.current) { let blob = {} recordRef.current.stopRecording(function (url) { blob = recordRef.current.getBlob() }); const webmFile = new File([blob], 'video.webm', { type: 'video/webm' }) convertBobToMpeg(webmFile) } } const convertBobToMpeg = async (webmFile) => { await ffmpeg.load(); await ffmpeg.FS('writeFile', 'video.webm', await fetchFile(webmFile)) ffmpeg.run('-i', 'video.webm', 'demo.mp4'); const data = await ffmpeg.FS('readFile', 'demo.mp4'); setVideo_obj(URL.createObjectURL(new Blob([data.buffer], { type: 'video/mp4' }))) }
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!