summaryrefslogtreecommitdiff
path: root/00_blog/00015_Admin
diff options
context:
space:
mode:
Diffstat (limited to '00_blog/00015_Admin')
-rw-r--r--00_blog/00015_Admin/00040_Oneliners/index.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/00_blog/00015_Admin/00040_Oneliners/index.md b/00_blog/00015_Admin/00040_Oneliners/index.md
index c16a515..a4384a0 100644
--- a/00_blog/00015_Admin/00040_Oneliners/index.md
+++ b/00_blog/00015_Admin/00040_Oneliners/index.md
@@ -39,3 +39,21 @@ not really a one-lier but will print 256 colors in a bash:
fi
done
+## Web Video and Audio
+
+convert a video to the **WebM** container format, accommodating the **VP8** video codec
+and the **MP4** container accommodating the **H.264** codec.
+
+Providing this two versions of your video should result in a decent coverage according to:
+<https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats#Browser_compatibility>
+
+ ffmpeg -i video.mp4 -vcodec vp8 mazeball.webm
+ ffmpeg -i video.mp4 -vcodec h264 mazeball.mp4
+
+If you require an audio codec as well use **Vorbis** in **WebM** and
+**AAC** inside **MP4** respectively.
+
+Yet before making a final decision, consider that many modern devices
+have hardware to assist in video and audio decoding, saving on CPU and
+battery consumption.
+