<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://knowledgebase.pirho.net/index.php?action=history&amp;feed=atom&amp;title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming</id>
	<title>FFmpeg - Encoding Optimal Videos for Streaming - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://knowledgebase.pirho.net/index.php?action=history&amp;feed=atom&amp;title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming"/>
	<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;action=history"/>
	<updated>2026-07-11T15:42:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=320&amp;oldid=prev</id>
		<title>Dex at 14:28, 14 March 2026</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=320&amp;oldid=prev"/>
		<updated>2026-03-14T14:28:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:28, 14 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:FFmpeg]] [[Category:Streaming]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:FFmpeg]] [[Category:Streaming]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;A practical guide to producing highly compatible MP4 files using FFmpeg. This article explains container choice, codec selection, bitrate strategy, advanced x264 controls, and the real‑world constraints of web browsers, media players, and streaming protocols.&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;A practical guide to producing highly compatible MP4 files using FFmpeg. This article explains container choice, codec selection, bitrate strategy, advanced x264 controls, and the real‑world constraints of web browsers, media players, and streaming protocols.&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Modern streaming requires video files that are lightweight to decode, efficient to deliver, and universally compatible across browsers, mobile devices, TVs, and older “dumb players”. For maximum interoperability, this guide standardises on the MP4 container using H.264 (AVC) video and AAC audio, with optional external subtitles for broadest playback support.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Modern streaming requires video files that are lightweight to decode, efficient to deliver, and universally compatible across browsers, mobile devices, TVs, and older “dumb players”. For maximum interoperability, this guide standardises on the MP4 container using H.264 (AVC) video and AAC audio, with optional external subtitles for broadest playback support.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-319:rev-320:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Dex</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=319&amp;oldid=prev</id>
		<title>Dex at 14:28, 14 March 2026</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=319&amp;oldid=prev"/>
		<updated>2026-03-14T14:28:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;amp;diff=319&amp;amp;oldid=107&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Dex</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=107&amp;oldid=prev</id>
		<title>Knowledgebaseadmin at 12:38, 6 March 2025</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=107&amp;oldid=prev"/>
		<updated>2025-03-06T12:38:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:38, 6 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:FFmpeg]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:FFmpeg]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Streaming]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-92:rev-107:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Knowledgebaseadmin</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=92&amp;oldid=prev</id>
		<title>Knowledgebaseadmin at 11:49, 6 March 2025</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=92&amp;oldid=prev"/>
		<updated>2025-03-06T11:49:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:49, 6 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:FFmpeg]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Knowledgebaseadmin</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=54&amp;oldid=prev</id>
		<title>Knowledgebaseadmin: Knowledgebaseadmin moved page FFMPEG - Encoding Optimal Videos for Streaming to FFmpeg - Encoding Optimal Videos for Streaming</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=54&amp;oldid=prev"/>
		<updated>2025-03-06T11:28:41Z</updated>

		<summary type="html">&lt;p&gt;Knowledgebaseadmin moved page &lt;a href=&quot;/wiki/FFMPEG_-_Encoding_Optimal_Videos_for_Streaming&quot; class=&quot;mw-redirect&quot; title=&quot;FFMPEG - Encoding Optimal Videos for Streaming&quot;&gt;FFMPEG - Encoding Optimal Videos for Streaming&lt;/a&gt; to &lt;a href=&quot;/wiki/FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&quot; title=&quot;FFmpeg - Encoding Optimal Videos for Streaming&quot;&gt;FFmpeg - Encoding Optimal Videos for Streaming&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:28, 6 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff:1.41:old-53:rev-54 --&gt;
&lt;/table&gt;</summary>
		<author><name>Knowledgebaseadmin</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=53&amp;oldid=prev</id>
		<title>Knowledgebaseadmin: /* Metadata */</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=53&amp;oldid=prev"/>
		<updated>2025-03-06T11:27:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Metadata&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:27, 6 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l420&quot;&gt;Line 420:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 420:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;stackoverflow - ffmpeg: set the language of an audio stream](&lt;/del&gt;https://stackoverflow.com/questions/44351606/ffmpeg-set-the-language-of-an-audio-stream&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://stackoverflow.com/questions/44351606/ffmpeg-set-the-language-of-an-audio-stream &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;stackoverflow: ffmpeg: set the language of an audio stream]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Set Default Track ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Set Default Track ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Knowledgebaseadmin</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=44&amp;oldid=prev</id>
		<title>Knowledgebaseadmin at 10:25, 6 March 2025</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=44&amp;oldid=prev"/>
		<updated>2025-03-06T10:25:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:25, 6 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l108&quot;&gt;Line 108:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 108:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 432p+: high&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 432p+: high&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Wikipedia - Advanced Video Coding](&lt;/del&gt;https://en.wikipedia.org/wiki/Advanced_Video_Coding&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://en.wikipedia.org/wiki/Advanced_Video_Coding &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Wikipedia - Advanced Video Coding]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence](&lt;/del&gt;https://www.lighterra.com/papers/videoencodingh264/#h264profile&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://www.lighterra.com/papers/videoencodingh264/#h264profile &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== H.264 Level ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== H.264 Level ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l119&quot;&gt;Line 119:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 119:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 1080p: 4.0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 1080p: 4.0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence](&lt;/del&gt;https://www.lighterra.com/papers/videoencodingh264/#h264level&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://www.lighterra.com/papers/videoencodingh264/#h264level &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Bitrate ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Bitrate ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l155&quot;&gt;Line 155:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 155:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| 1080p Superbit	| 1920x1080		| N/A			| 20.32				| 20000			| 320			|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| 1080p Superbit	| 1920x1080		| N/A			| 20.32				| 20000			| 320			|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence](&lt;/del&gt;https://www.lighterra.com/papers/videoencodingh264/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://www.lighterra.com/papers/videoencodingh264/ &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;// Investigate the inclusion of 288p and 144p instead of 240p&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;// Investigate the inclusion of 288p and 144p instead of 240p&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l165&quot;&gt;Line 165:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 165:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FFmpeg - H.264 Video Encoding Guide](&lt;/del&gt;https://trac.ffmpeg.org/wiki/Encode/H.264#twopass&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://trac.ffmpeg.org/wiki/Encode/H.264#twopass &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FFmpeg - H.264 Video Encoding Guide]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Maximum Bitrate ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Maximum Bitrate ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l171&quot;&gt;Line 171:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 171:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 1080p Superbit: -maxrate:v = 25Mbps&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 1080p Superbit: -maxrate:v = 25Mbps&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence](&lt;/del&gt;https://www.lighterra.com/papers/videoencodingh264/#peakbitrate&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://www.lighterra.com/papers/videoencodingh264/#peakbitrate &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Buffer Size ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Buffer Size ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l178&quot;&gt;Line 178:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 178:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 1080p Superbit: -bufsize:v = 30Mbit&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 1080p Superbit: -bufsize:v = 30Mbit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence](&lt;/del&gt;https://www.lighterra.com/papers/videoencodingh264/#peakbitrate&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://www.lighterra.com/papers/videoencodingh264/#peakbitrate &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lighterra - Video Encoding Settings for H.264 Excellence]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## FFmpeg Preset&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## FFmpeg Preset&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Knowledgebaseadmin</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=43&amp;oldid=prev</id>
		<title>Knowledgebaseadmin at 10:10, 6 March 2025</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=43&amp;oldid=prev"/>
		<updated>2025-03-06T10:10:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:10, 6 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[#Container Formats]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[#Audio]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[#Video]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[#Subtitles]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[#Metadata]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[#References]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[#To Do]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l69&quot;&gt;Line 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 61:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As a rule of thumb, for audible transparency, use 64 kBit/s for each channel (so 128 kBit/s for stereo, 384 kBit/s for 5.1 surround sound).&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As a rule of thumb, for audible transparency, use 64 kBit/s for each channel (so 128 kBit/s for stereo, 384 kBit/s for 5.1 surround sound).&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FFmpeg - Encode/AAC] (&lt;/del&gt;https://trac.ffmpeg.org/wiki/Encode/AAC&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://trac.ffmpeg.org/wiki/Encode/AAC &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FFmpeg - Encode/AAC]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Transcode audio to stereo AAC track ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Transcode audio to stereo AAC track ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l106&quot;&gt;Line 106:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 98:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FFmpeg - H.264 Video Encoding Guide](&lt;/del&gt;https://trac.ffmpeg.org/wiki/Encode/H.264&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Reference: [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;https://trac.ffmpeg.org/wiki/Encode/H.264 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FFmpeg - H.264 Video Encoding Guide]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== H.264 Profile ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== H.264 Profile ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-42:rev-43:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Knowledgebaseadmin</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=42&amp;oldid=prev</id>
		<title>Knowledgebaseadmin at 10:09, 6 March 2025</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=42&amp;oldid=prev"/>
		<updated>2025-03-06T10:09:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:09, 6 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [Container Formats]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(#container-formats)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[#&lt;/ins&gt;Container Formats]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [Audio]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(#audio)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[#&lt;/ins&gt;Audio]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [Video]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(#video)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[#&lt;/ins&gt;Video]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [Subtitles]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(#subtitles)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[#&lt;/ins&gt;Subtitles]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [Metadata]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(#metadata)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[#&lt;/ins&gt;Metadata]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [References]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(#references)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[#&lt;/ins&gt;References]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [To Do]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(#to-do)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[#&lt;/ins&gt;To Do]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-41:rev-42:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Knowledgebaseadmin</name></author>
	</entry>
	<entry>
		<id>https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=41&amp;oldid=prev</id>
		<title>Knowledgebaseadmin: Created page with &quot;* [Container Formats](#container-formats) * [Audio](#audio) * [Video](#video) * [Subtitles](#subtitles) * [Metadata](#metadata) * [References](#references) * [To Do](#to-do)  We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&lt;br/&gt;  This combination is compatible with &#039;dumb players&#039;, the HTML5 &#039;video&#039; element and the streaming protocols: RTSP, RTMP, DASH, HLS, MSS &amp; HDS.&lt;br/&gt;  == Container Formats == MPEG-4...&quot;</title>
		<link rel="alternate" type="text/html" href="https://knowledgebase.pirho.net/index.php?title=FFmpeg_-_Encoding_Optimal_Videos_for_Streaming&amp;diff=41&amp;oldid=prev"/>
		<updated>2025-03-06T10:07:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* [Container Formats](#container-formats) * [Audio](#audio) * [Video](#video) * [Subtitles](#subtitles) * [Metadata](#metadata) * [References](#references) * [To Do](#to-do)  We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;  This combination is compatible with &amp;#039;dumb players&amp;#039;, the HTML5 &amp;#039;video&amp;#039; element and the streaming protocols: RTSP, RTMP, DASH, HLS, MSS &amp;amp; HDS.&amp;lt;br/&amp;gt;  == Container Formats == MPEG-4...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* [Container Formats](#container-formats)&lt;br /&gt;
* [Audio](#audio)&lt;br /&gt;
* [Video](#video)&lt;br /&gt;
* [Subtitles](#subtitles)&lt;br /&gt;
* [Metadata](#metadata)&lt;br /&gt;
* [References](#references)&lt;br /&gt;
* [To Do](#to-do)&lt;br /&gt;
&lt;br /&gt;
We use a MPEG-4 Part 14 container, AAC audio and H.264 video. The preferred subtitle format is still being debated.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This combination is compatible with &amp;#039;dumb players&amp;#039;, the HTML5 &amp;#039;video&amp;#039; element and the streaming protocols: RTSP, RTMP, DASH, HLS, MSS &amp;amp; HDS.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Container Formats ==&lt;br /&gt;
MPEG-4 Part 14 is the most widely supported container format (here on referred to as MP4).&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
MP4 has quite a good list of official codecs but, this doesn&amp;#039;t mean that ALL mediaplayers support them. Technically, MP4 can contain a stream of nearly any type using Private Streams.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Common media player devices have a fairly short list of supported codecs. Old media player software often has an even shorter list.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The HTML5 Video element basically only supports an MP4 container with AVC encoded video, AAC encoded audio and subtitles in WebVTT format. This is down to web browser compatibility, the element itself could support any codec and WhatWG actually suggests others.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Common Video File Extensions ===&lt;br /&gt;
* .AVI = Audio Video Interleave: Developed by Microsoft, Outdated&lt;br /&gt;
* .FLV = Flash Video: Developed by Adobe, Outdated&lt;br /&gt;
* .MKV = Matroska: Open Format, Current&lt;br /&gt;
* .MOV = QuickTime File Format: Developed by Apple, Outdated&lt;br /&gt;
* .MP4 = MPEG version 4: Developed by ISO/IEC Moving Picture Experts Group, Current&lt;br /&gt;
* .WebM = Developed by Google, Current&lt;br /&gt;
* .WMV = Windows Media Video, Developed by Microsoft, Outdated&lt;br /&gt;
&lt;br /&gt;
=== Output MP4 file ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command will automatically transcode all source streams. Audio will be transcoded using AAC and video using H.264.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Audio ==&lt;br /&gt;
Of all the audio codecs supported by the MP4 container, AAC has the balance of best quality compression and media player compatibility.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some media players only support accessing a single audio track. Make sure that the default audio track is the first audio track in the file and that it is marked as default.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some media players only support stereo AAC. Make sure that the default audio track is stereo, or it might be transcoded on the fly.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== MP4 Compatible Audio Codecs ===&lt;br /&gt;
* MPEG-1 Audio Layer 1&lt;br /&gt;
* MPEG-1 Audio Layer 2&lt;br /&gt;
* MPEG-1 Audio Layer 3&lt;br /&gt;
* AAC&lt;br /&gt;
---&lt;br /&gt;
* AC-3&lt;br /&gt;
* E-AC-3&lt;br /&gt;
* Dolby TrueHD&lt;br /&gt;
---&lt;br /&gt;
* DTS&lt;br /&gt;
* DTS-HD&lt;br /&gt;
---&lt;br /&gt;
* Opus&lt;br /&gt;
* FLAC&lt;br /&gt;
* ALAC&lt;br /&gt;
* MLP&lt;br /&gt;
* ALS&lt;br /&gt;
* SLS&lt;br /&gt;
* LPCM&lt;br /&gt;
* DV Audio&lt;br /&gt;
* AMR&lt;br /&gt;
&lt;br /&gt;
=== AAC Bitrate ===&lt;br /&gt;
As a rule of thumb, for audible transparency, use 64 kBit/s for each channel (so 128 kBit/s for stereo, 384 kBit/s for 5.1 surround sound).&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [FFmpeg - Encode/AAC] (https://trac.ffmpeg.org/wiki/Encode/AAC)&lt;br /&gt;
&lt;br /&gt;
=== Transcode audio to stereo AAC track ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -c:a libfdk_aac -ac 2 -b:a 128k -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Transcode a 5.1 audio track to 1 stereo AAC track and 1 5.1 AAC track, setting the stereo track as default ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -map 0:v -map 0:a:0 -c:a:0 libfdk_aac -ac:a:0 2 -b:a:0 128k -disposition:a:0 default -c:a:1 libfdk_aac -b:a:1 384k -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
Of all the video codecs supported by the MP4 container, H.264 has the balance of best quality compression and media player compatibility.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== MP4 Compatible Video Codecs ===&lt;br /&gt;
* MPEG-H HEVC (H.265)&lt;br /&gt;
* MPEG-4 AVC (H.264)&lt;br /&gt;
* MPEG-4 Visual&lt;br /&gt;
* MPEG-2 Video&lt;br /&gt;
* MPEG-1 Video&lt;br /&gt;
* H.263&lt;br /&gt;
---&lt;br /&gt;
* VC-1&lt;br /&gt;
---&lt;br /&gt;
* VP8&lt;br /&gt;
* VP9&lt;br /&gt;
* AV1&lt;br /&gt;
---&lt;br /&gt;
* M-JPEG&lt;br /&gt;
* JPEG 2000&lt;br /&gt;
&lt;br /&gt;
=== Transcode Video to H.264 ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -c:v libx264 -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [FFmpeg - H.264 Video Encoding Guide](https://trac.ffmpeg.org/wiki/Encode/H.264)&lt;br /&gt;
&lt;br /&gt;
=== H.264 Profile ===&lt;br /&gt;
The Baseline profile is supported by all media players that can consume MP4. That said, this profile is restrictive and in-efficient so is best reserved for low resolution video for low-powered mobile devices.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
High Profile may be used for any resolution and is widely supported so should be used for higher resolution videos to be consumed by more powerful devices.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 240p/360p: baseline&lt;br /&gt;
* 432p+: high&lt;br /&gt;
&lt;br /&gt;
Reference: [Wikipedia - Advanced Video Coding](https://en.wikipedia.org/wiki/Advanced_Video_Coding)  &lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#h264profile)&lt;br /&gt;
&lt;br /&gt;
=== H.264 Level ===&lt;br /&gt;
The more limited Media Players don&amp;#039;t support all H.264 levels. For maximum compatibility it&amp;#039;s best to use the lowest possible level for the given resolution.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 240p: 2.1&lt;br /&gt;
* 360p/432p: 3.0&lt;br /&gt;
* 480p/576p/720p: 3.1&lt;br /&gt;
* 1080p: 4.0&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#h264level)&lt;br /&gt;
&lt;br /&gt;
=== Bitrate ===&lt;br /&gt;
Target 4:3 bitrates:&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| Name				| Resolution	| Link (Mbps)	| Bitrate (Mbps)	| Video (kbps)	| Audio (kbps)	|&lt;br /&gt;
| ----------------- | ------------- | ------------- | ----------------- | ------------- | ------------- |&lt;br /&gt;
| 240p				| 320x240		| 1.0			| 0.64				| 576			| 64			|&lt;br /&gt;
| 360p				| 480x360		| 1.2			| 0.77				| 704			| 64			|&lt;br /&gt;
| 480p				| 640x480		| 1.5			| 0.96				| 896			| 64			|&lt;br /&gt;
| 480p HQ			| 640x480		| 2.0			| 1.28				| 1216			| 64			|&lt;br /&gt;
| 576p				| 768x576		| 2.3			| 1.47				| 1408			| 64			|&lt;br /&gt;
| 576p HQ			| 768x576		| 2.5			| 1.60				| 1536			| 64			|&lt;br /&gt;
| 720p				| 960x720		| 3.0			| 1.92				| 1856			| 64			|&lt;br /&gt;
| 720p HQ			| 960x720		| 4.0			| 2.56				| 2432			| 128			|&lt;br /&gt;
| 1080p				| 1440x1080		| 6.0			| 3.84				| 3712			| 128			|&lt;br /&gt;
| 1080p HQ			| 1440x1080		| 9.0			| 5.76				| 5632			| 128			|&lt;br /&gt;
| 1080p Superbit	| 1440x1080		| N/A			| 20.32				| 20000			| 320			|&lt;br /&gt;
&lt;br /&gt;
Target 16:9 bitrates:&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| Name				| Resolution	| Link (Mbps)	| Bitrate (Mbps)	| Video (kbps)	| Audio (kbps)	|&lt;br /&gt;
| ----------------- | ------------- | ------------- | ----------------- | ------------- | ------------- |&lt;br /&gt;
| 240p				| 424x240		| 1.0			| 0.64				| 576			| 64			| // Not exactly 16:9. Perhaps 426×240 would be a better resolution, being a bit closer to 16:9&lt;br /&gt;
| 360p				| 640x360		| 1.5			| 0.96				| 896			| 64			|&lt;br /&gt;
| 432p				| 768x432		| 1.8			| 1.15				| 1088			| 64			|&lt;br /&gt;
| 480p				| 848x480		| 2.0			| 1.28				| 1216			| 64			| // Not exactly 16:9.&lt;br /&gt;
| 480p HQ			| 848x480		| 2.5			| 1.60				| 1536			| 64			|&lt;br /&gt;
| 576p				| 1024x576		| 3.0			| 1.92				| 1856			| 64			|&lt;br /&gt;
| 576p HQ			| 1024x576		| 3.5			| 2.24				| 2176			| 64			|&lt;br /&gt;
| 720p				| 1280x720		| 4.0			| 2.56				| 2496			| 64			|&lt;br /&gt;
| 720p HQ			| 1280x720		| 5.0			| 3.20				| 3072			| 128			|&lt;br /&gt;
| 1080p				| 1920x1080		| 8.0			| 5.12				| 4992			| 128			|&lt;br /&gt;
| 1080p HQ			| 1920x1080		| 12.0			| 7.68				| 7552			| 128			|&lt;br /&gt;
| 1080p Superbit	| 1920x1080		| N/A			| 20.32				| 20000			| 320			|&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/)&lt;br /&gt;
&lt;br /&gt;
// Investigate the inclusion of 288p and 144p instead of 240p&lt;br /&gt;
&lt;br /&gt;
==== Transcode video at chosen bitrate with 2-pass encoding ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -c:v libx264 -b:v 4992k -preset veryslow -pass 1 -an -f null /dev/null &amp;amp;&amp;amp; \&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -c:v libx264 -b:v 4992k -preset veryslow -pass 2 -c:a libfdk_aac -ac 2 -b:a:0 128k -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [FFmpeg - H.264 Video Encoding Guide](https://trac.ffmpeg.org/wiki/Encode/H.264#twopass)&lt;br /&gt;
&lt;br /&gt;
=== Maximum Bitrate ===&lt;br /&gt;
* 240p-1080p: -maxrate:v = double the target bitrate&lt;br /&gt;
* 1080p Superbit: -maxrate:v = 25Mbps&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#peakbitrate)&lt;br /&gt;
&lt;br /&gt;
=== Buffer Size ===&lt;br /&gt;
* 240p/360p: -bufsize:v = 256k&lt;br /&gt;
* 432p-1080p: -bufsize:v = 1.5 second&lt;br /&gt;
* 1080p Superbit: -bufsize:v = 30Mbit&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#peakbitrate)&lt;br /&gt;
&lt;br /&gt;
## FFmpeg Preset&lt;br /&gt;
A preset is a collection of options that will provide a certain encoding speed to compression ratio. Use the slowest preset that you have patience for. We use &amp;#039;veryslow&amp;#039;.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [FFmpeg - H.264 Video Encoding Guide](https://trac.ffmpeg.org/wiki/Encode/H.264#Preset)&lt;br /&gt;
&lt;br /&gt;
=== FFmpeg Tune ===&lt;br /&gt;
You can optionally use &amp;#039;tune&amp;#039; to change settings based upon the specifics of your input. We use &amp;#039;animation&amp;#039; and &amp;#039;film&amp;#039; for animated and live action videos respectively.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [FFmpeg - H.264 Video Encoding Guide](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune)&lt;br /&gt;
&lt;br /&gt;
=== Colourspace ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -c:v libx264 -filter:v format=yuv420p -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#colorspacetagging)&lt;br /&gt;
Reference: [FFmpeg - H.264 Video Encoding Guide](https://trac.ffmpeg.org/wiki/Encode/H.264#Encodingfordumbplayers)&lt;br /&gt;
&lt;br /&gt;
=== Framerate ===&lt;br /&gt;
PAL uses 25fps, though 50fps can be used for HD and UHD video.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NTSC uses 29.97, though 59.94fps can be used for HD and UHD video.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Blu-Ray may also be encoded as 30fps or 60fps.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some media players cannot reproduce high framerates.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Change Video Framerate ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -c:v libx264 -filter:v fps=25 -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [FFmpeg - Changing the frame rate](https://trac.ffmpeg.org/wiki/ChangingFrameRate)&lt;br /&gt;
&lt;br /&gt;
=== Resolution ===&lt;br /&gt;
Interlaced video needs to be de-interlaced.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Anamorphic widescreen should be expanded to 16:9 resolution.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resolutions of common media formats:&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| Format		| Resolution	| Aspect Ratio	|&lt;br /&gt;
| ------------- | ------------- | ------------- |&lt;br /&gt;
| VCD - PAL		| 288p			| 4:3			|&lt;br /&gt;
| VCD - NTSC	| 240p			| 4:3			|&lt;br /&gt;
| SVCD - PAL	| 576i			| 4:3			|&lt;br /&gt;
| SVCD - NTSC	| 480i			| 4:3			|&lt;br /&gt;
| SD - PAL		| 576i			| 4:3 or 16:9	|&lt;br /&gt;
| SD - NTSC		| 480i			| 4:3 or 16:9	|&lt;br /&gt;
| HD			| 720p			| 16:9			|&lt;br /&gt;
| Full HD		| 1080p			| 16:9			|&lt;br /&gt;
| UHD			| 2160p			| 16:9			|&lt;br /&gt;
&lt;br /&gt;
==== References ====&lt;br /&gt;
- [Wikipedia - Standard-definition television](https://en.wikipedia.org/wiki/Standard-definition_television)&lt;br /&gt;
- [Wikipedia - Video CD](https://en.wikipedia.org/wiki/Video_CD)&lt;br /&gt;
- [Wikipedia - Super Video CD](https://en.wikipedia.org/wiki/Super_Video_CD)&lt;br /&gt;
- [VideoHelp Forum - SVCD specification supported resolutions](https://forum.videohelp.com/threads/947-SVCD-specification-supported-resolutions)&lt;br /&gt;
- [Wikipedia - DVD-Video](https://en.wikipedia.org/wiki/DVD-Video)&lt;br /&gt;
- [Wikipedia - Blu-ray](https://en.wikipedia.org/wiki/Blu-ray)&lt;br /&gt;
&lt;br /&gt;
==== Change Resolution and add Letterbox ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -c:v libx264 -filter:v &amp;quot;scale=(iw*sar)*min(640/(iw*sar)\,480/ih):ih*min(640/(iw*sar)\,480/ih), pad=640:480:(640-iw*min(640/iw\,480/ih))/2:(480-ih*min(640/iw\,480/ih))/2&amp;quot; -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [superuser - Ffmpeg upscale and letterbox a video](https://superuser.com/questions/891145/ffmpeg-upscale-and-letterbox-a-video)&lt;br /&gt;
&lt;br /&gt;
=== x264 Options ===&lt;br /&gt;
&lt;br /&gt;
==== Quantizer-Curve Compression ====&lt;br /&gt;
qcomp=0.9&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#quantizercurvecompression)&lt;br /&gt;
&lt;br /&gt;
==== Minimum Quantization ====&lt;br /&gt;
qpmin=3&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#minimumquantization)&lt;br /&gt;
&lt;br /&gt;
==== Per-Macroblock Bitrate-Control Lookahead ====&lt;br /&gt;
rc_lookahead=60&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#permacroblockbitratecontrollookahead)&lt;br /&gt;
&lt;br /&gt;
==== Scene-Change Detection ====&lt;br /&gt;
scenecut=40&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#scenechangedetection)&lt;br /&gt;
&lt;br /&gt;
==== Maximum Keyframe Interval ====&lt;br /&gt;
keyint = 12 seconds (360 frames at 30fps)&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#maximumkeyframeinterval)&lt;br /&gt;
&lt;br /&gt;
==== Minimum Keyframe Interval ====&lt;br /&gt;
min-keyint=1&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#minimumkeyframeinterval)&lt;br /&gt;
&lt;br /&gt;
==== Motion-Estimation Search Pattern ====&lt;br /&gt;
me=umh&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#motionestimationsearchpattern)&lt;br /&gt;
&lt;br /&gt;
==== Motion-Estimation Search Range ====&lt;br /&gt;
* 240p-720p: me_range=32&lt;br /&gt;
* 1080p: me_range=48&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#motionestimationsearchrange)&lt;br /&gt;
&lt;br /&gt;
==== Sub-Pixel Motion-Vector Refinement ====&lt;br /&gt;
subme=10&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#subpixelmotionvectorrefinement)&lt;br /&gt;
&lt;br /&gt;
==== Predicted Motion Vectors ====&lt;br /&gt;
direct=auto&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#predictedmotionvectors)&lt;br /&gt;
&lt;br /&gt;
==== Number of Reference Frames ====&lt;br /&gt;
ref=4&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#numberofreferenceframes)&lt;br /&gt;
&lt;br /&gt;
==== B-Frames as Reference Frames ====&lt;br /&gt;
b_pyramid=none&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#bframesasreferenceframes)&lt;br /&gt;
&lt;br /&gt;
==== P-Frame Early Skip Detection ====&lt;br /&gt;
* 240p-1080p: fast_pskip=1&lt;br /&gt;
* 1080p Superbit: fast_pskip=0&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#pframeearlyskipdetection)&lt;br /&gt;
&lt;br /&gt;
==== Adaptive Number of B-Frames ====&lt;br /&gt;
* 240p/360p: b_adapt=0&lt;br /&gt;
* 432p+: b_adapt=2&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#adaptivenumberofbframes)&lt;br /&gt;
&lt;br /&gt;
==== Maximum Number of B-Frames ====&lt;br /&gt;
* 240p/360p: bframes=0&lt;br /&gt;
* 432p-1080p: bframes=3&lt;br /&gt;
* 1080p Superbit: bframes=5&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#maximumnumberofbframes)&lt;br /&gt;
&lt;br /&gt;
==== Rate-Distortion Optimization ====&lt;br /&gt;
trellis=2&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#ratedistortionoptimization)&lt;br /&gt;
&lt;br /&gt;
==== Psycho-Visual Optimization ====&lt;br /&gt;
psy_rd=1.0&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#psychovisualoptimization)&lt;br /&gt;
&lt;br /&gt;
==== DCT-Based Decimation ====&lt;br /&gt;
no-dct-decimate=1&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#dctbaseddecimation)&lt;br /&gt;
&lt;br /&gt;
==== Deblocking ====&lt;br /&gt;
* 240p-1080p: deblock=0,0&lt;br /&gt;
* 1080p Superbit: deblock=-2,-1&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#deblocking)&lt;br /&gt;
&lt;br /&gt;
=== Partitions ===&lt;br /&gt;
* 240p/360p: p4x4 = on&lt;br /&gt;
* 432p+: p4x4 = off&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -c:v libx264 -partitions -partp8x8,+partp4x4,-partb8x8,-parti8x8,-parti4x4 -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#_4x4partitionsinpframes)&lt;br /&gt;
&lt;br /&gt;
=== 2-Pass Encoding ===&lt;br /&gt;
&lt;br /&gt;
Reference: [Lighterra - Video Encoding Settings for H.264 Excellence](https://www.lighterra.com/papers/videoencodingh264/#encodingstrategyandpasses)&lt;br /&gt;
Reference: [FFmpeg - H.264 Video Encoding Guide](https://trac.ffmpeg.org/wiki/Encode/H.264#twopass)&lt;br /&gt;
&lt;br /&gt;
== Subtitles ==&lt;br /&gt;
MP4 has limited support for embedded subtitles. Only VobSub, which is image based, is supported and widely playable.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are some media players which only support 1 embedded subtitle track.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is best to include subtitles as an external file.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We prefer VobSub for image based subtitles and SubRip for text based subtitles, though others are supported.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Emby Documentation - Subtitles](https://emby.media/support/articles/Subtitles.html)  &lt;br /&gt;
Reference: [Kodi Wiki - Subtitles](https://kodi.wiki/view/Subtitles)&lt;br /&gt;
&lt;br /&gt;
=== MP4 Compatible Subtitle Formats ===&lt;br /&gt;
* WebVTT&lt;br /&gt;
* TTXT&lt;br /&gt;
* VobSub&lt;br /&gt;
* SubRip as TTXT&lt;br /&gt;
* PGS as VobSub&lt;br /&gt;
&lt;br /&gt;
=== Extract Image Based Subtitles ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -f subrip &amp;lt;output.file&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Extract Image Based Subtitles ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -f dvd_subtitle &amp;lt;output.file&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [FFmpeg - ExtractSubtitles](https://trac.ffmpeg.org/wiki/ExtractSubtitles)&lt;br /&gt;
&lt;br /&gt;
== Metadata ==&lt;br /&gt;
=== Strip All Metadata ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -map_metadata -1 -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [Strip metadata from all formats with FFmpeg](https://superuser.com/questions/441361/strip-metadata-from-all-formats-with-ffmpeg)&lt;br /&gt;
&lt;br /&gt;
=== Add Title Tag ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -metadata title=&amp;quot;flibble&amp;quot; -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add Year Tag ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -metadata date=0 -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add Language Tags ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -metadata:s:a:0 language=eng -metadata:s:v:0 language=eng -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [stackoverflow - ffmpeg: set the language of an audio stream](https://stackoverflow.com/questions/44351606/ffmpeg-set-the-language-of-an-audio-stream)&lt;br /&gt;
&lt;br /&gt;
=== Set Default Track ===&lt;br /&gt;
&lt;br /&gt;
== Optimise Video for Streaming ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i &amp;lt;input.file&amp;gt; -movflags +faststart -f mp4 &amp;lt;output.file&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference: [FFmpeg - H.264 Video Encoding Guide](https://trac.ffmpeg.org/wiki/Encode/H.264)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[Wikipedia - Comparison of video container formats](https://en.wikipedia.org/wiki/Comparison_of_video_container_formats)&lt;br /&gt;
[List of True 16:9 Resolutions](https://pacoup.com/2011/06/12/list-of-true-169-resolutions/)&lt;br /&gt;
&lt;br /&gt;
== To Do ==&lt;br /&gt;
* Add documentation for converting interlaced to progressive&lt;br /&gt;
** https://forum.videohelp.com/threads/405931-FFMPEG-Deinterlace&lt;br /&gt;
* Add documentation for expanding anamorphic widescreen&lt;br /&gt;
** https://www.reddit.com/r/ffmpeg/comments/vp6n7z/fixing_aspect_ratio_with_ffmpeg/&lt;br /&gt;
* Add documentation for MP4 tags&lt;br /&gt;
** https://wiki.multimedia.cx/index.php/FFmpeg_Metadata#QuickTime/MOV/MP4/M4A/et_al&lt;br /&gt;
* Add documentation for finding TV Listings&lt;br /&gt;
** TVRDb - https://tvrdb.com/&lt;br /&gt;
** BBC Archive - https://genome.ch.bbc.co.uk/&lt;br /&gt;
** TVDB - https://www.thetvdb.com/&lt;br /&gt;
* Add documentation for nfo files&lt;br /&gt;
** TV Shows - https://kodi.wiki/view/NFO_files/TV_shows&lt;br /&gt;
** Episodes - https://kodi.wiki/view/NFO_files/Episodes&lt;br /&gt;
** Movies - https://kodi.wiki/view/NFO_files/Movies&lt;br /&gt;
* Add documentation for creating nfo files&lt;br /&gt;
** NFO Maker - https://nfo-maker.com/&lt;br /&gt;
** Ember Media Manager&lt;br /&gt;
* Decide whether to use SubRip or WebVTT as standard text-based subtitles&lt;br /&gt;
** WebVTT will not work with older media players.&lt;br /&gt;
** Some media players don&amp;#039;t support VobSub either!&lt;br /&gt;
* Document 2 pass encoding&lt;br /&gt;
* Review &amp;#039;setsar=1:1&amp;#039;&lt;br /&gt;
* Add 288p (PAL VCD, 4:3) to target bitrates&lt;br /&gt;
* Add 4k UHD target bitrates&lt;/div&gt;</summary>
		<author><name>Knowledgebaseadmin</name></author>
	</entry>
</feed>