Created
May 18, 2020 16:43
-
-
Save aboucaud/6f7ce9e43723db3239e0d2732fac0caa to your computer and use it in GitHub Desktop.
[HTML video embedding] Use compressed videos instead of GIF #web #videos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -f gif -i dancing-baby.gif dancing-baby.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- From https://www.dannyguo.com/blog/serve-videos-instead-of-gifs/ --> | |
| <video autoplay loop muted playsinline> | |
| <source src="dancing-baby.webm" type="video/webm"> | |
| <source src="dancing-baby.mp4" type="video/mp4"> | |
| <p>Your browser doesn't support this embedded video.</p> | |
| </video> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment