{"id":8787,"date":"2021-05-13T17:45:31","date_gmt":"2021-05-13T09:45:31","guid":{"rendered":"https:\/\/www.kiloview.com\/en\/support\/docs\/ndi-device-http-apiversion-1-0\/advanced-options-of-encoding-output-and-switching\/"},"modified":"2021-05-13T17:45:31","modified_gmt":"2021-05-13T09:45:31","slug":"advanced-options-of-encoding-output-and-switching","status":"publish","type":"docs","link":"https:\/\/www.kiloview.com\/en\/docs\/ndi-device-http-apiversion-1-0\/advanced-options-of-encoding-output-and-switching\/","title":{"rendered":"Advanced options of encoding output and switching"},"content":{"rendered":"<p>The default rule of video\/audio output is by following the format of NDI source, that\u2019s the same resolution\/frame rate\/audio sampling rate\/channels as NDI source.<\/p>\n<p>But you can specify the advanced option of resolution, frame rate and audio sampling rate.<\/p>\n<h4>API URL<\/h4>\n<p>\u200b   <strong>\/api\/v1\/decoder\/output\/set<\/strong><\/p>\n<h4>Request<\/h4>\n<p>\u200b   Method: <strong>GET\/POST<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter<\/th>\n<th>Value<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>resolution<\/td>\n<td><strong>[STRING]<\/strong>, <strong>Optional<\/strong><\/td>\n<td>You can set up the following option value: <br \/><strong>auto<\/strong>: default\uff0cfollow NDI source resolution<br \/><strong>deint<\/strong>: If the video format of NDI source is interlaced\uff0cit will deinterlace to progressive format automatically (1080i -&gt; 1080p conversion). If the Source format is progressive, no affected.<\/td>\n<\/tr>\n<tr>\n<td>frame_rate<\/td>\n<td><strong>[INT]<\/strong>, <strong>Optional<\/strong><\/td>\n<td>Specify frame rate output. optional value include: <br \/><strong>23.98, 24, 25, 29.97, 30, 50, 59.94, 60<\/strong> and one specified value: <strong>0<\/strong><br \/>0 mean use the same frame value as NDI Source. <br \/> if specified an effective frame rate value\uff0cNDI decoder will force output the specified frame rate. For example\uff0cthe original video format of NDI source is 1920x1080p 60Hz\uff0cbut if specify frame_rate as 29.97\uff0cNDI decoder will force output as 1920x1080p 29.97Hz.<\/td>\n<\/tr>\n<tr>\n<td>sample_rate<\/td>\n<td><strong>[INT]<\/strong>, <strong>Optional<\/strong><\/td>\n<td>Specify audio sampling rate. <br \/><strong>pay attention: <\/strong> due to the version of hardware limitation\uff0csample_rate can only be set up 48000. So\uff0cplease miss the this parameter.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Response<\/h4>\n<p>Example:<\/p>\n<pre><code class=\"language-json\">{\n    &quot;result&quot;: &quot;ok&quot;\n}<\/code><\/pre>\n<p>If set successfully, it will return the message of result = &quot;ok&quot;, or please refer to 1.3 for error message descriptions. <\/p>\n<h2>Get video\/audio advanced output options<\/h2>\n<hr \/>\n<h4>API URL<\/h4>\n<p>\u200b   <strong>\/api\/v1\/decoder\/output\/get<\/strong><\/p>\n<h4>Request<\/h4>\n<p>\u200b   Method: <strong>GET\/POST<\/strong><\/p>\n<p>\u200b   Parameters: <strong>NONE<\/strong><\/p>\n<h4>Response<\/h4>\n<p>Example:<\/p>\n<pre><code class=\"language-json\">{\n    &quot;result&quot;: &quot;ok&quot;,\n    &quot;data&quot;: {\n        &quot;resolution&quot;: &quot;auto&quot;,\n        &quot;frame_rate&quot;: 59.94,\n        &quot;sample_rate&quot;: 48000\n    }\n}<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Value<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>resolution<\/td>\n<td><strong>[STRING]<\/strong><\/td>\n<td>Refer to  8.3<code>\/api\/v1\/decoder\/output\/set<\/code> description<\/td>\n<\/tr>\n<tr>\n<td>frame_rate<\/td>\n<td><strong>[INT]<\/strong><\/td>\n<td>Refer to  8.3<code>\/api\/v1\/decoder\/output\/set<\/code> description<\/td>\n<\/tr>\n<tr>\n<td>sample_rate<\/td>\n<td><strong>[INT]<\/strong><\/td>\n<td>Refer to  8.3<code>\/api\/v1\/decoder\/output\/set<\/code> description<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"featured_media":0,"parent":48319,"menu_order":7,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-8787","docs","type-docs","status-publish","hentry"],"acf":[],"aioseo_notices":[],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/8787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/comments?post=8787"}],"version-history":[{"count":0,"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/8787\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/48319"}],"next":[{"title":"Tally status and control","link":"https:\/\/www.kiloview.com\/en\/docs\/ndi-device-http-apiversion-1-0\/tally-status-and-control\/","href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/8789"}],"prev":[{"title":"Current decoding output","link":"https:\/\/www.kiloview.com\/en\/docs\/ndi-device-http-apiversion-1-0\/current-decoding-output\/","href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/docs\/8785"}],"wp:attachment":[{"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/media?parent=8787"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kiloview.com\/en\/wp-json\/wp\/v2\/doc_tag?post=8787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}