<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.avobjects.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.avobjects.com/index.php?feed=atom&amp;namespace=0&amp;title=Special%3ANewPages</id>
		<title>AVObjects Knowledge Base - New pages [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.avobjects.com/index.php?feed=atom&amp;namespace=0&amp;title=Special%3ANewPages"/>
		<link rel="alternate" type="text/html" href="http://wiki.avobjects.com/Special:NewPages"/>
		<updated>2026-05-28T03:17:15Z</updated>
		<subtitle>From AVObjects Knowledge Base</subtitle>
		<generator>MediaWiki 1.18.2</generator>

	<entry>
		<id>http://wiki.avobjects.com/WebRTC/RTP_Server:_Helpers</id>
		<title>WebRTC/RTP Server: Helpers</title>
		<link rel="alternate" type="text/html" href="http://wiki.avobjects.com/WebRTC/RTP_Server:_Helpers"/>
				<updated>2025-12-28T08:56:04Z</updated>
		
		<summary type="html">&lt;p&gt;Dkn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--TITLE:Helpers--&amp;gt;&lt;br /&gt;
&amp;lt;!--DESCRIPTION:Steps required to use the HTTPS protocol.--&amp;gt;&lt;br /&gt;
&amp;lt;!--KEYWORDS:WebRTC filter HTTPS streaming--&amp;gt;&lt;br /&gt;
{{This|Helpers/webrtc_server.html}}&lt;br /&gt;
&lt;br /&gt;
==Steps required to use the HTTPS protocol.==&lt;br /&gt;
&lt;br /&gt;
Before you can start using the HTTPS protocol to communicate with a WRTP server, you need to create, install, and bind certificates.&lt;br /&gt;
&lt;br /&gt;
==Creating certificates==&lt;br /&gt;
&lt;br /&gt;
To create 2 debug certificates for testing the HTTPS protocol, you need to do the following:&lt;br /&gt;
&lt;br /&gt;
1). Installing mkcert.exe&lt;br /&gt;
* open https://github.com/FiloSottile/mkcert/releases&lt;br /&gt;
* download the mkcert-v1.4.4-windows-amd64.exe file to the &amp;quot;C:\Program Files\mkcert&amp;quot; folder (create this folder) and rename it to mkcert.exe.&lt;br /&gt;
* add &amp;quot;C:\Program Files\mkcert&amp;quot; to PATH (system variables):&amp;lt;br&amp;gt;Settings -&amp;gt; System -&amp;gt; About -&amp;gt; Advanced system settings -&amp;gt; Enviroment variables -&amp;gt; System variables\Path: press &amp;quot;Edit...&amp;quot; -&amp;gt; Press &amp;quot;New&amp;quot; -&amp;gt; put &amp;quot;C:\Program Files\mkcert&amp;quot; -&amp;gt; press OK -&amp;gt; press OK -&amp;gt; press OK -&amp;gt; Close Settings.About&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2). Creating CA certificate (&amp;lt;user name&amp;gt; is name of curent user).&lt;br /&gt;
* remove old CA certificate from &amp;quot;C:\Users\&amp;lt;user name&amp;gt;\AppData\Local\mkcert&amp;quot; folder&lt;br /&gt;
* open Windows console (command prompt or Windows terminal) with administrator rights&lt;br /&gt;
* in the console window (header &amp;quot;Administrator: Command&amp;quot;) enter:&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''mkcert -install'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Created a new local CA''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;In &amp;quot;Security Warning&amp;quot; Dialog : press '''Yes'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; The local CA is now installed in the system trust store!''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The files &amp;quot;rootCA.pem&amp;quot; and &amp;quot;rootCA-key.pem&amp;quot; should have been created in the &amp;quot;C:\Users\&amp;lt;user name&amp;gt;\AppData\Local\mkcert&amp;quot; folder. Move them to some folder where you will store your certificates.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3). Creating work certificate cert.my for 4 names.&amp;lt;br&amp;gt;&lt;br /&gt;
NOTE. IP address '''192.168.1.999''' is used as server IP address, please change it to your real IP address.&lt;br /&gt;
* in the console window (header &amp;quot;Administrator: Command&amp;quot;) enter&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''mkcert cert.my localhost 127.0.0.1 ::1 192.168.1.999'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Created a new certificate valid for the following names''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; - &amp;quot;cert.my&amp;quot;''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; - &amp;quot;localhost&amp;quot;''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; - &amp;quot;127.0.0.1&amp;quot;''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; - &amp;quot;::1&amp;quot;''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; - &amp;quot;192.168.1.999&amp;quot;''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; The certificate is at &amp;quot;./cert.my+4.pem&amp;quot; and the key at &amp;quot;./cert.my+4-key.pem&amp;quot;''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The files &amp;quot;cert.my+4.pem&amp;quot; and &amp;quot;cert.my+4-key.pem&amp;quot; should have been created in the &amp;quot;C:\Windows\System32&amp;quot; folder. Move them to some folder where you will store your certificates.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
4). Convert .pem files to .pfx files using the certutil tool.&amp;lt;br&amp;gt;&lt;br /&gt;
* rename your .pem files:&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''rootCA.pem''' -&amp;gt; '''rootCA.cer'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''rootCA-key.pem''' -&amp;gt; '''rootCA.key'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''cert.my+4.pem''' -&amp;gt; '''cert.my+4.cer'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''cert.my+4-key.pem''' -&amp;gt; '''cert.my+4.key'''&lt;br /&gt;
&lt;br /&gt;
* In the console window (header &amp;quot;Administrator: Command&amp;quot;), go to the folder containing the certificates:&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''cd &amp;lt;folder with certificates&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
* convert rootCA.cer and rootCA.key files to rootCA.pfx&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''certutil -MergePFX rootCA.cer rootCA.pfx'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Signature test passed''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Enter new password for output file rootCA.pfx:''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Enter new password:''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''******&amp;lt;Enter&amp;gt;'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Confirm new password:''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''******&amp;lt;Enter&amp;gt;'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; CertUtil: -MergePFX command completed successfully.''&amp;lt;br&amp;gt;&lt;br /&gt;
The file &amp;quot;rootCA.pfx&amp;quot; should have been created in the '''&amp;lt;folder with certificates&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
* convert cert.my+4.cer and cert.my+4.key files to cert.my+4.pfx&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''certutil -MergePFX cert.my+4.cer cert.my+4.pfx'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Signature test passed''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Enter new password for output file cert.my+4.pfx:''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Enter new password:''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''******&amp;lt;Enter&amp;gt;'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; Confirm new password:''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''******&amp;lt;Enter&amp;gt;'''&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;''&amp;gt; CertUtil: -MergePFX command completed successfully.''&amp;lt;br&amp;gt;&lt;br /&gt;
The file &amp;quot;cert.my+4.pfx&amp;quot; should have been created in the '''&amp;lt;folder with certificates&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
==Installing certificates==&lt;br /&gt;
Both certificates are installed using the Microsoft Management Console:&lt;br /&gt;
&lt;br /&gt;
1). Open MMC&lt;br /&gt;
* Windows Start -&amp;gt; Run -&amp;gt; mmc -&amp;gt; OK -&amp;gt; Yes&lt;br /&gt;
* Microsoft Management Console: Menu &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Add/Remove Snap-in...&amp;quot; -&amp;gt; &amp;quot;Add or Remove Snap-ins&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Add or Remove Snap-ins&amp;quot; dialog: select &amp;quot;Certrificates&amp;quot; -&amp;gt; press &amp;quot;Add&amp;quot; -&amp;gt; &amp;quot;Certificates snap-in&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Certificates snap-in&amp;quot; dialog : select &amp;quot;Computer account&amp;quot; -&amp;gt; press &amp;quot;Next &amp;gt;&amp;quot; -&amp;gt; &amp;quot;Select Computer&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Select Computer&amp;quot; dialog: select &amp;quot;Local computer ...&amp;quot; (default) -&amp;gt; press &amp;quot;Finish&amp;quot; -&amp;gt; &amp;quot;Add or Remove Snap-ins&amp;quot;&lt;br /&gt;
* &amp;quot;Add or Remove Snap-ins&amp;quot; dialog: press &amp;quot;OK&amp;quot; button&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
2). Adding CA certificate rootCA.pfx&lt;br /&gt;
* &amp;quot;Certificates (Local Computer)&amp;quot; -&amp;gt; &amp;quot;Trusted Root Certification Authorities&amp;quot; -&amp;gt; &amp;quot;Certificates&amp;quot; -&amp;gt; right mouse button -&amp;gt; &amp;quot;All Tasks&amp;quot; -&amp;gt; &amp;quot;Import...&amp;quot; -&amp;gt; &amp;quot;Certificate Import Wizard&amp;quot;&lt;br /&gt;
* &amp;quot;Certificate Import Wizard&amp;quot; -&amp;gt; press &amp;quot;Next&amp;quot; -&amp;gt; &amp;quot;File to import&amp;quot; dialog&lt;br /&gt;
* &amp;quot;File to import&amp;quot; dialog -&amp;gt; put &amp;quot;rootCA.pfx&amp;quot; with path to &amp;quot;File Name:&amp;quot; or use &amp;quot;Browse...&amp;quot; to select &amp;quot;rootCA.pfx&amp;quot; file (use the drop-down list to the right of the &amp;quot;File name:&amp;quot; field to select .pfx file) -&amp;gt; press &amp;quot;Next&amp;quot; -&amp;gt; &amp;quot;Private key protection&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Private key protection&amp;quot; -&amp;gt; enter CA certificate password from step 1d). to &amp;quot;Password&amp;quot; -&amp;gt; press &amp;quot;Next&amp;quot;&lt;br /&gt;
* &amp;quot;Certificate Store&amp;quot; -&amp;gt; select &amp;quot;Place all certificates ...&amp;quot; : &amp;quot;Trusted Root Certification Authorities&amp;quot; (selected by default) -&amp;gt; press &amp;quot;Next&amp;quot;&lt;br /&gt;
* &amp;quot;Completing the Certificate Import Wizard&amp;quot; -&amp;gt; press &amp;quot;Finish&amp;quot;&lt;br /&gt;
* If all is OK: box with &amp;quot;The import was successful&amp;quot; will be shown -&amp;gt; press &amp;quot;OK&amp;quot;&lt;br /&gt;
Now you can see certificate &amp;quot;mkcert &amp;lt;user name&amp;gt;\...&amp;quot; in &amp;quot;Trusted Root Certification Authorities&amp;quot; -&amp;gt; &amp;quot;Certificates&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3). Adding work certificate cert.my+4.pfx&amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;quot;Certificates (Local Computer)&amp;quot; -&amp;gt; &amp;quot;Personal&amp;quot; -&amp;gt; &amp;quot;Certificates&amp;quot; -&amp;gt; right mouse button -&amp;gt; &amp;quot;All Tasks&amp;quot; -&amp;gt; &amp;quot;Import...&amp;quot; -&amp;gt; &amp;quot;Certificate Import Wizard&amp;quot;&lt;br /&gt;
* &amp;quot;Certificate Import Wizard&amp;quot; -&amp;gt; press &amp;quot;Next&amp;quot; -&amp;gt; &amp;quot;File to import&amp;quot; dialog&lt;br /&gt;
* &amp;quot;File to import&amp;quot; dialog -&amp;gt; put &amp;quot;cert.my+4.pfx&amp;quot; with path to &amp;quot;File Name:&amp;quot; or use &amp;quot;Browse...&amp;quot; to select &amp;quot;cert.my+4.pfx&amp;quot; file (use the drop-down list to the right of the &amp;quot;File name:&amp;quot; field to select .pfx file) -&amp;gt; press &amp;quot;Next&amp;quot; -&amp;gt; &amp;quot;Private key protection&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Private key protection&amp;quot; -&amp;gt; enter work certificate password from step 1d). to &amp;quot;Password&amp;quot; -&amp;gt; press &amp;quot;Next&amp;quot;&lt;br /&gt;
* &amp;quot;Certificate Store&amp;quot; -&amp;gt; select &amp;quot;Place all certificates ...&amp;quot; : &amp;quot;Personal&amp;quot; (selected by default) -&amp;gt; press &amp;quot;Next&amp;quot;&lt;br /&gt;
* &amp;quot;Completing the Certificate Import Wizard&amp;quot; -&amp;gt; press &amp;quot;Finish&amp;quot;&lt;br /&gt;
* If all is OK: box with &amp;quot;The import was successful&amp;quot; will be shown -&amp;gt; press &amp;quot;OK&amp;quot;&lt;br /&gt;
Now you can see certificate Issued To &amp;quot;&amp;lt;user name&amp;gt;\...&amp;quot; Issued By &amp;quot;mkcert &amp;lt;user name&amp;gt;\...&amp;quot; in &amp;quot;Personal&amp;quot; -&amp;gt; &amp;quot;Certificates&amp;quot;.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Binding certificate==&lt;br /&gt;
To use a working certificate (cert.my+4.pfx), it must be bound to an address:port.&amp;lt;br&amp;gt;&lt;br /&gt;
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netsh-http&lt;br /&gt;
&lt;br /&gt;
Adds SSL certificate binding for a specified IP address and port, along with corresponding client certificate policies, to securely manage HTTPS connections for the HTTP Service:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''netsh http add sslcert ipport=127.0.0.1:50000 certhash=0123456789abcdef0123456789abcdef01234567 appid={00112233-4455-6677-8899-AABBCCDDEEFF}'''&lt;br /&gt;
&lt;br /&gt;
Shows a list of SSL server certificate bindings for the specified ipport:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''netsh http show sslcert ipport=127.0.0.1:50000'''&lt;br /&gt;
&lt;br /&gt;
Deletes SSL server certificate bindings for the specified ipport:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;amp;emsp;&amp;amp;emsp;'''netsh http delete sslcert ipport=127.0.0.1:50000'''&lt;br /&gt;
&lt;br /&gt;
===Options.===&lt;br /&gt;
&lt;br /&gt;
'''certhash''': The certificate hash (often represented as a thumbprint) of the SSL certificate to be bound. It can be obtained (for example) from mmc (Microsoft Management Console):&lt;br /&gt;
* Windows Start -&amp;gt; Run -&amp;gt; mmc -&amp;gt; OK -&amp;gt; Yes&lt;br /&gt;
* Microsoft Management Console: Menu &amp;quot;File&amp;quot; -&amp;gt; &amp;quot;Add/Remove Snap-in...&amp;quot; -&amp;gt; &amp;quot;Add or Remove Snap-ins&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Add or Remove Snap-ins&amp;quot; dialog: select &amp;quot;Certrificates&amp;quot; -&amp;gt; press &amp;quot;Add&amp;quot; -&amp;gt; &amp;quot;Certificates snap-in&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Certificates snap-in&amp;quot; dialog : select &amp;quot;Computer account&amp;quot; -&amp;gt; press &amp;quot;Next &amp;gt;&amp;quot; button -&amp;gt; &amp;quot;Select Computer&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Select Computer&amp;quot; dialog: select &amp;quot;Local computer ...&amp;quot; (selected by default) -&amp;gt; press &amp;quot;Finish&amp;quot; button -&amp;gt; &amp;quot;Add or Remove Snap-ins&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Add or Remove Snap-ins&amp;quot; dialog: press &amp;quot;OK&amp;quot; button&lt;br /&gt;
* select &amp;quot;Certificates (Local Computer)&amp;quot; -&amp;gt; &amp;quot;Personal&amp;quot; -&amp;gt; &amp;quot;Certificates&amp;quot;&lt;br /&gt;
* double left mouse click on wanted certificate -&amp;gt; &amp;quot;Certificate&amp;quot; dialog&lt;br /&gt;
* &amp;quot;Certificate&amp;quot; dialog -&amp;gt; tab &amp;quot;Details&amp;quot; -&amp;gt; select &amp;quot;Thumbprint&amp;quot; field -&amp;gt; copy certhash&lt;br /&gt;
&lt;br /&gt;
'''appid''': You can use any GUID as the appid (is this an atavism? It was tested with GUID_NULL - everything works fine, no issues found).&lt;br /&gt;
&lt;br /&gt;
'''certstorename''': The name of the certificate store where the SSL certificate is located, default is &amp;quot;MY&amp;quot; (&amp;quot;Personal&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==Using HTTPS==&lt;br /&gt;
Now you can test the WRTP server's operation over HTTPS on your local computer, for example: https://127.0.0.1:50000&lt;br /&gt;
&amp;lt;br&amp;gt;If you want to test WebRTC/RTP server playback from another computer on your local network, you should install the used CA certificate (rootCA.pfx) on that computer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;If you have any notes, comments or suggestions about the information on this page, please contact us at [mailto:support@avobjects.com support@avobjects.com]&lt;br /&gt;
&lt;br /&gt;
[[Category: Helpers]]&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Dkn</name></author>	</entry>

	<entry>
		<id>http://wiki.avobjects.com/WebRTC/RTP_Server:_Using_HTTPS</id>
		<title>WebRTC/RTP Server: Using HTTPS</title>
		<link rel="alternate" type="text/html" href="http://wiki.avobjects.com/WebRTC/RTP_Server:_Using_HTTPS"/>
				<updated>2025-12-28T08:48:20Z</updated>
		
		<summary type="html">&lt;p&gt;Dkn: Created page with &amp;quot;&amp;lt;!--TITLE:Using HTTPS--&amp;gt; &amp;lt;!--DESCRIPTION:Steps required to use the HTTPS protocol.--&amp;gt; &amp;lt;!--KEYWORDS:WebRTC filter HTTPS streaming--&amp;gt; {{This|Using HTTPS/webrtc_server.html}}  ==...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--TITLE:Using HTTPS--&amp;gt;&lt;br /&gt;
&amp;lt;!--DESCRIPTION:Steps required to use the HTTPS protocol.--&amp;gt;&lt;br /&gt;
&amp;lt;!--KEYWORDS:WebRTC filter HTTPS streaming--&amp;gt;&lt;br /&gt;
{{This|Using HTTPS/webrtc_server.html}}&lt;br /&gt;
&lt;br /&gt;
===Steps required to use the HTTPS protocol.===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Using HTTPS]]&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Dkn</name></author>	</entry>

	<entry>
		<id>http://wiki.avobjects.com/Pipe_for_ffmpeg:_Settings</id>
		<title>Pipe for ffmpeg: Settings</title>
		<link rel="alternate" type="text/html" href="http://wiki.avobjects.com/Pipe_for_ffmpeg:_Settings"/>
				<updated>2025-10-23T12:08:12Z</updated>
		
		<summary type="html">&lt;p&gt;Dkn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Filter interface and command line preparation for [[Pipe for ffmpeg]] DirectShow filter.&amp;lt;br&amp;gt;&lt;br /&gt;
Interface IAVOPipeFFmpeg can be found in file &amp;lt;filter installation directory&amp;gt;\Idl\PipeFF.idl&lt;br /&gt;
&lt;br /&gt;
===Command line===&lt;br /&gt;
&lt;br /&gt;
The command line includes the following sections:&amp;lt;br&amp;gt;&lt;br /&gt;
'''&amp;lt;Path to ffmpeg.exe&amp;gt; &amp;lt;INPUT&amp;gt; [&amp;lt;Common options&amp;gt;] [&amp;lt;Coding[0]&amp;gt; ... &amp;lt;Coding[N]&amp;gt;] &amp;lt;Output file&amp;gt;'''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''- &amp;lt;Path to ffmpeg.exe&amp;gt;''' : The full name of the ffmpeg.exe module. Specified by the user. If IAVOPipeFFmpeg::PutExe(bsExe) is called with bsExe == NULL or *bsExe = 0, ffmpeg.exe will be searched in the .exe (application) or .dll (filter) folders.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''- &amp;lt;INPUT&amp;gt;''' : Input stream and pipe parameters. These are set by the filter based on the connection media types and predefined parameters.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''- &amp;lt;Common options&amp;gt;''': the following options can be specified in this section&amp;lt;br&amp;gt;&lt;br /&gt;
* Input stream modifications (resize, aspect ratio, frame rate, sample rate, etc.);&amp;lt;br&amp;gt;&lt;br /&gt;
* Trimming (start, end, duration, etc.);&amp;lt;br&amp;gt;&lt;br /&gt;
* Encoding options (encoders, bitrate, profile, etc.);&amp;lt;br&amp;gt;&lt;br /&gt;
* Additional parameters (&amp;quot;-y&amp;quot; for overwriting, &amp;quot;-loglevel&amp;quot;, &amp;quot;-report&amp;quot;, etc.);&amp;lt;br&amp;gt;&lt;br /&gt;
NOTE: &amp;quot;:stream_specifier&amp;quot; must be set according to ffmpeg docs (-c:v, -b:a:1, etc.).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;Common options&amp;gt; section is optional, some parameters can be specified in the &amp;lt;Coding&amp;gt; sections.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''- &amp;lt;Coding[n]&amp;gt;''': encoding parameters for stream n (for the stream number, only connected pins are taken into account). Stream parameters can be retrieved using IAVOPipeFFmpeg::GetPinParams(nPin, ...). Features of this section:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The codec used can be specified in the first word of this part, the codec name starts with a letter, for example: mpeg2video, mpeg4, libx264, aac, ac3, ... The codec option and stream_specifier will be automatically added before the codec name, for example for video stream 0: &amp;quot;-c:v:0&amp;quot;, for audio stream 5: &amp;quot;-c:a:5&amp;quot;, etc.&amp;lt;br&amp;gt;&lt;br /&gt;
* Partial options are allowed: &amp;quot;:stream_specifier&amp;quot; can be omitted after the option name, it will be automatically added for known options (see [:stream_specifier] in ffmpeg docs). If &amp;quot;:stream_specifier&amp;quot; is found after the option name, it will be changed to the actual &amp;quot;stream_type:additional_stream_specifier&amp;quot; by filter.&amp;lt;br&amp;gt;&lt;br /&gt;
Examples of &amp;lt;Coding&amp;gt;:&lt;br /&gt;
 Video stream 1: &amp;quot;mpeg4 -b 1150k -maxrate:v 1150k&amp;quot; converted to &amp;quot;-c:v:1 mpeg4 -b:v:1 1150k -maxrate:v:1 1150k&amp;quot;&lt;br /&gt;
 Audio stream 2: &amp;quot;mp2 -b:a 224k&amp;quot; converted to &amp;quot;-c:a:2 mp2 -b:a:2 224k&amp;quot;&lt;br /&gt;
 Audio stream 0: &amp;quot;-codec aac -b 128K&amp;quot; converted to &amp;quot;-c:a:0 aac -b:a:0 128K&amp;quot;&lt;br /&gt;
&amp;lt;Coding[n]&amp;gt; sections are optional, parameters can be specified in &amp;lt;Common options&amp;gt;.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''- &amp;lt;Output file&amp;gt;''' : the full name of the output file. The file type is determined by the extension, unless changed in the &amp;lt;Common options&amp;gt; section with the &amp;quot;-f&amp;quot; option. This part is mandatory.&lt;br /&gt;
&lt;br /&gt;
===Use cases===&lt;br /&gt;
To create the ffmpeg command line, the IAVOPipeFFmpeg interface functions are used (see Idl\PipeFF.idl). There are two main methods for using these functions to create&lt;br /&gt;
a command line:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''1.''' For users unfamiliar with ffmpeg syntax and for quick usage:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;Common options&amp;gt; is used for actual &amp;quot;common&amp;quot; properties: &amp;quot;-y&amp;quot;, &amp;quot;-loglevel&amp;quot;, &amp;quot;-report&amp;quot;, etc.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;Coding[N]&amp;gt; is used to select the encoder. You can also set the bitrate and other parameters.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:PipeFF-coding.jpg|800px|Using &amp;lt;Coding&amp;gt; section.]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''2.''' For advanced ffmpeg users&amp;lt;br&amp;gt;&lt;br /&gt;
You can put all ffmpeg options in &amp;lt;Common options&amp;gt; and leave &amp;lt;Coding[N]&amp;gt; empty.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;Common options&amp;gt; line on picture: &amp;quot;-c:v mpeg4 -b:v 2000K -c:a:0 aac -b:a:0 128K -c:a:1 ac3 -b:a:1 192K -y&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:PipeFF-common.jpg|800px|Using &amp;lt;Common options&amp;gt; section.]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A combination of these methods is also possible.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, this information is not sufficient, or you have any additional requests, please contact us at [mailto:support@avobjects.com support@avobjects.com]&lt;/div&gt;</summary>
		<author><name>Dkn</name></author>	</entry>

	</feed>