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
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










