Open rishiD83 opened 8 months ago
Describe the bug I am running this webassembly in my React App.
To Reproduce Please provide a GitHub link or code snippet. const transcode = async (file) => { await ffmpeg.load() await ffmpeg.FS('writeFile', file?.name, await fetchFile(file)) await ffmpeg.run('-i', file?.name, '-c:v', 'h264', '-crf', '28', '-b:v', '0', 'row-mt', '1', '-f',${getFileExtension(file?.name)},out.${getFileExtension(file?.name)}) const data = await ffmpeg.FS('readFile',out.${getFileExtension(file?.name)}`)
const transcode = async (file) => { await ffmpeg.load() await ffmpeg.FS('writeFile', file?.name, await fetchFile(file)) await ffmpeg.run('-i', file?.name, '-c:v', 'h264', '-crf', '28', '-b:v', '0', 'row-mt', '1', '-f',
,
) const data = await ffmpeg.FS('readFile',
let chunk = URL.createObjectURL(new Blob([data.buffer], { type: `video/${getFileExtension(file?.name)}`})) }
`
Expected behavior I was trying compress a video file, but getting this error
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
I have this problem as well
Same issue
same
Same error here, only on windows browsers and on some videos
Has this problem been resolved?
Describe the bug I am running this webassembly in my React App.
To Reproduce Please provide a GitHub link or code snippet.
const transcode = async (file) => { await ffmpeg.load() await ffmpeg.FS('writeFile', file?.name, await fetchFile(file)) await ffmpeg.run('-i', file?.name, '-c:v', 'h264', '-crf', '28', '-b:v', '0', 'row-mt', '1', '-f',
${getFileExtension(file?.name)},
out.${getFileExtension(file?.name)}) const data = await ffmpeg.FS('readFile',
out.${getFileExtension(file?.name)}`)`
Expected behavior I was trying compress a video file, but getting this error
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):![Screenshot 2023-10-19 at 2 26 27 PM](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/87647063/9864ceb6-04ad-4b38-aaf0-e1813a234c39)