Logo

dev-resources.site

for different kinds of informations.

Cliet-side WebM/MP4 export from React.js Canavs Animation using ffmpeg.wasm for an Upwork client

Published at
9/24/2024
Categories
upwork
react
html5canvas
ffmpeg
Author
faridulhassan
Categories
4 categories in total
upwork
open
react
open
html5canvas
open
ffmpeg
open
Author
13 person written this
faridulhassan
open
Cliet-side WebM/MP4 export from React.js Canavs Animation using ffmpeg.wasm for an Upwork client

Recently, I have worked for an Upwork client to export WebM and MP4 video from their HTML5 Canvas Animation based react.js web application in browser (runtime) and also fix the blur and black-white issue on that.
And they used Konva.js canvas library for the application.

I have used so many available libraries (canvas-record.js, CCapture.js, record-canvas.js, ffmpeg.wasm etc. ) to make the solution, but every time there were issues like very long processing timing, freezing the application and so many.
But finally I reverted back to ffmpeg.wasm and used its multi-thread options. But to use multi-thread, I had to enable JavaScript SharedArrayBuffer api by setting ‘Cross-Origin-Embedder-Policy': 'require-corp', 'Cross-Origin-Opener-Policy': 'same-origin’ in server header request.
After that it worked on localhost without https and to make it live - I also needed to host the site on “https” enabled server. Otherwise ffmpeg.wasm multi-thread won’t work.

And finally I successfully reduced the runtime processing timing on browser. It exports instantly for WebM video and for a 20 second animation, it took around 1-1.5 minutes ( it might very based on other settings and user’s device ).
In this way, I saved the server request and video quality is also good and small in sizes.

Youtube Demo: https://youtu.be/9vCNP5aQGlY
My Upwork Profile: https://www.upwork.com/freelancers/~0166c25fe6338aa8c3

#upwork #html5canvas #React #ffmpeg #konva.js #freelancing

ffmpeg Article's
30 articles in total
Favicon
Desvendando Subprocessos: Criando um Bot de Música com Go
Favicon
Video data IO through ffmpeg subprocess
Favicon
Wisper, ffmpeg을 활용한 비디오 자막 자동 생성
Favicon
Integrating MinIO notifications with your Node.js service, FFmpeg, and Mozilla convert API.
Favicon
Cliet-side WebM/MP4 export from React.js Canavs Animation using ffmpeg.wasm for an Upwork client
Favicon
Reduce bitrate using FFMPEG
Favicon
Add a Watermark to a Video Using VideoAlchemy
Favicon
No Bullshit Guide to Youtube shorts automation in NodeJS, OpenAI, Ollama, ElevanLabs & ffmpeg
Favicon
Building a Video Streaming Platform with Node.js, FFmpeg, and Next.js
Favicon
Record Windows Screen using ffmpeg and convert to time lapse video
Favicon
Introducing Comet: A Free, Cross-Platform Video Converter Powered by FFmpeg
Favicon
Compress, Convert and Trim Videos with Command Line
Favicon
เผื่อใครอยากทำ mp4 to gif แบบคมๆ
Favicon
How to generate thumbnails from video ?
Favicon
Convert .caf to mp3 by Directory
Favicon
FFMPEG
Favicon
Run ffmpeg within a Docker Container: A Step-by-Step Guide
Favicon
New to DEV.to - About me
Favicon
Streaming Video to AWS MediaConnect Using FFmpeg and SRT Protocol: A Complete Guide
Favicon
Displaying a video on a ESP32 powered SSD1306 OLED screen
Favicon
FFMPEG Libraries - RTSP Client Keep Alive
Favicon
From Pixels to Playbacks: Dominate Multimedia with FFmpeg in Python
Favicon
Access webcam by ffmpeg in Windows
Favicon
OSCAR 2022 sea surface velocity streamplot animation
Favicon
Mastering Video Previews: A Guide to Compressed Videos and Thumbnails
Favicon
Dall.E Image Gen, And Size Comparison Of Image Formats
Favicon
AIS vessel density maps with pyspark and h3 and animations with ffmpeg
Favicon
Using Electron to create videos (Canvas + FFmpeg)
Favicon
BMF 📹 + Hugging Face🤗, The New Video Processing BFFs
Favicon
Leveraging GPU Acceleration in BMF for High-Performance Video Processing

Featured ones: