Relative Content

Tag Archive for reactjsffmpeg

FFmpeg error with ffmpeg.FS(“readfile”, “output.mp4”). trying to get ffmpeg to work in the react app

const stackVideos = useCallback( async (video1) => { try { console.log(“Fetching video2 from storage…”); const video2Ref = ref(storage, “video2.mp4”); const video2Url = await getDownloadURL(video2Ref); const video2Blob = await (await fetch(video2Url)).blob(); console.log(“Writing video1 to FFmpeg FS…”); await ffmpeg.FS(“writeFile”, “video1.mp4”, await fetchFile(video1)); console.log(“Writing video2 to FFmpeg FS…”); await ffmpeg.FS(“writeFile”, “video2.mp4”, await fetchFile(video2Blob)); console.log(“Files in FFmpeg FS after […]

Error with FFmpeg and FS in React: “ErrnoError: FS error”

I’m working on a React application where I’m using the @ffmpeg/ffmpeg library to compress images and videos. I’m facing an issue with the virtual file system (FS) when trying to read and write files using FFmpeg. I’m getting the following error: