How to Optimize Videos for the Web with FFmpeg @EricMurphyxyz
How to Optimize Videos for the Web with FFmpeg  @EricMurphyxyz
Uploaded July 2022 | Updated November 2026, 3 hours ago
Want videos on your website without gigantic file sizes? With everyone's favorite video conversion tool, FFmpeg, I'll show you how you can optimize and transcode your web videos without sacrificing quality. I'll go over the different file formats and video codecs, which options to pass in, how to automate the process, and more.

FFmpeg download page: ffmpeg.org/download.html
Article with more detail: pixelpoint.io/blog/web-optimized-video-ffmpeg
Bash script: gist.github.com/ericmurphyxyz/b00a73142618a65cc70a54f2ae4d7fad
VP9 Encoding Guide: trac.ffmpeg.org/wiki/Encode/VP9
H.264 Encoding Guide: trac.ffmpeg.org/wiki/Encode/H.264
H.265 Encoding Guide: trac.ffmpeg.org/wiki/Encode/H.265

Watch my videos on Odysee: odysee.com/$/invite/@ericnmurphy:9
My website: https://ericmurphy.xyz
My GitHub: github.com/ericmurphyxyz

Get a VPS and host a website with Vultr: vultr.com/?ref=9005580-8H (affiliate link)

0:00 Intro
1:01 Installing FFmpeg
1:34 Changing video resolution
2:50 Removing audio
3:43 Video codecs
4:50 Compression with H264
6:17 Compression with VP9
7:51 Compression with H265
9:02 Creating a script to automate the process
10:13 Loading the videos in HTML
11:09 Additional optimizations
12:45 Conclusion
How to Optimize Videos for the Web with FFmpegI Love Neovim, but I NEVER Use It for Coding.Nobody Understands Online Privacy.Why Your z-index: 9999 Isnt Working (How to Use z-index in CSS)Is Bitwarden the Best Password Manager for Normies?The Ultimate Note-Taking App is... Vim? (VimWiki)Write HTML 5x Faster with Emmet!How Blogging Ruined the WebStop Using sudo vim IMMEDIATELY and Do This Instead (sudoedit)Why you (probably) shouldnt use an Arch Linux install scriptFree and Open-Source...Chess?Why you should NEVER use GoDaddy...
Eric Murphy |

How to Optimize Videos for the Web with FFmpeg

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER