FFmpeg: Difference between revisions

 
(2 intermediate revisions by the same user not shown)
Line 354: Line 354:


==JavaScript API==
==JavaScript API==
To use FFmpeg in a browser, see [https://ffmpegwasm.github.io/ ffmpegwasm].   
To use FFmpeg in a browser, see [https://ffmpegwasm.netlify.app/ ffmpegwasm].   
Note: I have not tried this. It uses CLI commands, not library API commands.
This is used in https://davidl.me/apps/media/index.html.


==My Preferences==
==My Preferences==
My preferences for encoding video
My preferences for encoding video
===H264===
===H264===
I mostly use H264 when working on projects for compatibility purposes. Here I typically don't need the smallest file size or best quality, prioritizing encoding speed.
H264 is best when you need the most compatability, especially with older or low end devices.
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
!#/bin/bash
!#/bin/bash
Line 371: Line 371:


===H265/HEVC===
===H265/HEVC===
H264/HEVC is used for archival purposes to minimize the file size and maximize the quality.
H264/HEVC is now a good tradeoff between size, quality, and compatability.
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
!#/bin/bash
!#/bin/bash