Configuration
Here’s the completewebreel.config.json for this example:
What It Demonstrates
WebM Output Format
Set the output filename with a.webm extension:
Output Location
The WebM file is saved to thevideos/ directory:
WebM Encoding Details
Webreel uses VP9 encoding with these settings:- Codec: VP9 (royalty-free, open standard)
- Frame Rate: 60fps (same as MP4)
- Quality: High-quality encoding optimized for screen recordings
- File Size: Typically 10-20% smaller than MP4
- Browser Support: Chrome, Firefox, Edge (Safari 14.1+)
WebM vs MP4
WebM Advantages:- Slightly smaller file sizes
- Open standard (no licensing concerns)
- Better compression efficiency
- Native browser support in Chrome and Firefox
- Universal compatibility (works everywhere)
- Better Safari and iOS support
- Standard for social media platforms
- Hardware acceleration on more devices
When to Use WebM
Use WebM when:- File size is critical (hosting many videos)
- Targeting modern browsers only
- Building web applications with HTML5
<video> - You want an open-source alternative to MP4
- Embedding in documentation sites (Chrome/Firefox users)
When to Use MP4
Use MP4 when:- You need maximum compatibility
- Targeting mobile devices (especially iOS)
- Posting to social media platforms
- Supporting older browsers
- Users may download and play locally
Browser Compatibility
WebM (VP9) support:- Chrome: Full support
- Firefox: Full support
- Edge: Full support
- Safari: 14.1+ (macOS Big Sur, iOS 14.5+)
- Mobile: Android Chrome (full), iOS Safari (14.5+)
Embedding WebM
In HTML with MP4 fallback:File Size Comparison
Typical file sizes for the same 10-second recording:- MP4 (H.264): ~800 KB
- WebM (VP9): ~650 KB
- GIF: ~8 MB
Quality Settings
WebM uses the samezoom setting as MP4:
Running the Example
videos/webm-output.webm.
Next Steps
- GIF Output - Export as animated GIF
- Screenshots - Capture static PNGs
- Hello World - Default MP4 output