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

193
Views
ffmpeg.FS('readFile', 'demo.mp4') error. Check if the path exists

I'm trying to convert recordRTC webm file to mp4 using ffmpeg.js library in nextjs project, during covert showing this issue, anyone can help me.


 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!