webm-writer-js | JavaScript-based WebM video encoder for Google Chrome
kandi X-RAY | webm-writer-js Summary
kandi X-RAY | webm-writer-js Summary
JavaScript-based WebM video encoder for Google Chrome
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of webm-writer-js
webm-writer-js Key Features
webm-writer-js Examples and Code Snippets
Community Discussions
Trending Discussions on webm-writer-js
QUESTION
I generate webm files in two different ways. One using Chrome WebRTC MediaRecorder, the other one is using a js library which generates the webm video frame by frame (webm-writer-js). The file size of the videos generated is not that different, the fast one is 60% of the slow one but the difference in speed is 1000%
Using the basic ffmpeg syntax -i input.webm output.mp4
the files created with Chrome's media recorder take in fact almost 10x time to be converted. The conversion logs differ slightly but overall look very similar to my novice eyes. On the left the fast conversion and on the right the slow one.
The fast one throws a little error but the conversion seems successful. In the slow conversion you can see many frames processed, in the fast one as if there was only one (very fast). Using -preset veryfast
cuts the speed time by half to both but the loss of quality is visible.
Any idea how I could speed up the conversion for the videos generated by Chrome without compromising much in quality? Thanks a lot!
...ANSWER
Answered 2018-Jun-28 at 11:11Chrome's files are detected as having a frame rate of 1000/s. It should be 30 fps.
Two workarounds - force video sync to variable frame rate
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webm-writer-js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page