10 April 2014
almost 11 years ago by Encoding.com Product Team
h265(hevc) video codec for MP4 container
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<output>mp4</output>
<video_codec>hevc</video_codec>
<video_codec_parameters>
<refresh>1</refresh>
<rc-lookahead>20</rc-lookahead>
<b-adapt>2</b-adapt>
<bframes>4</bframes>
<b-pyramid>1</b-pyramid>
<ref>3</ref>
<ctu>64</ctu>
<tu-intra-depth>1</tu-intra-depth>
<tu-inter-depth>1</tu-inter-depth>
<me>1</me>
<subme>2</subme>
<merange>60</merange>
<max-merge>2</max-merge>
<rect>1</rect>
<amp>1</amp>
<early-skip>0</early-skip>
<fast-cbf>0</fast-cbf>
<signhide>1</signhide>
<lft>1</lft>
<tskip>0</tskip>
<sao>1</sao>
<weightp>1</weightp>
<tskip-fast>0</tskip-fast>
</video_codec_parameters>
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"output": "mp4",
"video_codec": "hevc",
"video_codec_parameters": {
"refresh": "1",
"rc-lookahead": "20",
"b-adapt": "2",
"bframes": "4",
"b-pyramid": "1",
"ref": "3",
"ctu": "64",
"tu-intra-depth": "1",
"tu-inter-depth": "1",
"me": "1",
"subme": "2",
"merange": "60",
"max-merge": "2",
"rect": "1",
"amp": "1",
"early-skip": "0",
"fast-cbf": "0",
"signhide": "1",
"lft": "1",
"tskip": "0",
"sao": "1",
"weightp": "1",
"tskip-fast": "0"
}
}
}
}
Parameters Description
Field Name | Description | Allowed Values | Default Values |
---|---|---|---|
Slice decision options | |||
refresh | Intra refresh type | 0 — none 1 — CDR 2 — IDR | 1 |
rc-lookahead | Number of frames for frame-type lookahead | an integer less than or equal to 250 and greater than maximum consecutive bframes count | 20 |
b-adapt | Adaptive B frame scheduling | 0 — none 1 — fast 2 — full (trellis) | 2 |
bframes | Maximum number of consecutive b-frames | integer from 0 to 16 | 4 |
b-pyramid | Use B-frames as references | ****— | |
**** | 0 — Disabled 1 — Enabled | 1 | |
ref | Max number of L0 references to be allowed | Values: integer from 0 to 16 | 3 |
weightp | Enable weighted prediction in P slices | 0 — Disabled 1 — Enabled | 1 |
Quad-tree analusis | |||
ctu | Maximum CU size (width and height) | 16,32,64 | 64 |
tu-intra-depth | Max TU recursive depth for intra CUs | 1,2,3,4 | 1 |
tu-inter-depth | Max TU recursive depth for inter CUs | 1,2,3,4 | 1 |
Motion search options | |||
me | Motion search method | 0 — dia 1 — hex 2 — umh 3 — star 4 — full | 1 |
subme | Amount of subpel refinement to perform | integer from 0 to 7 (0: least ... 7: most) | 2 |
merange | Motion search range | integer from 0 to 32768 | 60 |
max-merge | Maximum number of merge candidates | integer from 1 to 5 | 2 |
rect | Rectangual motions partitions Nx2N and 2NxN | 0 — Disable 1 — Enable | 1 |
amp | Asymmetric motion partitions (requires rect enabled) | 0 — Disable 1 — Enable | 1 |
early-skip | Enable early SKIP detection | 0 — Disable 1 — Enable | 0 |
fast-cbf | CBF fast mode | 0 — Disable 1 — Enable | 0 |
Rate control | |||
rd | Level of RD in mode decision | 0 — Least 1 — Lightweight RDO Analysis | 0 |
signhide | Hide sign bit of one coeff per TU | 0 — Disable 1 — Enable | 1 |
Loop filter | |||
lft | Loop filter | 0 — Disable 1 — Enable | 1 |
Intra options | |||
tskip | Intra transform skipping | 0 — Disable 1 — Enable | 0 |
tskip-fast | Fast intra transform skipping | 0 — Disable 1 — Enable | 0 |
Sample Adaptive Offset loop filter | |||
sao | Simple adaptive offset | 0 — Disable 1 — Enable | 1 |
Mpeg_dash output format
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<!-- Format fields -->
<output>mpeg_dash</output>
<bitrates>[CommaSeparatedList]</bitrates>
<sizes>[CommaSeparatedList]</sizes>
<pack_files>[yes|no]</pack_files>
<!-- Destination fields -->
<destination>[DestFile]</destination> <!-- REQUIRED -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"output": "mpeg_dash",
"bitrates": "[CommaSeparatedList]",
"sizes": "[CommaSeparatedList]",
"pack_files": "[yes|no]",
"destination": "[DestFile]"
}
}
}
Parameters Description
Field Name | Description | Allowed Values | Default Values |
---|---|---|---|
bitrates | Comma separated list of video bitrates | One or more valid bitrate values separated by commas | 270k, 570k, 1000k, 1200k, 1400k |
sizes | Comma separated list of video sizes | One or more valid size values separated by commas | 320x180,512x288,768x432,1024x576,1152x648 |
segment_duration | Segment duration to split media (in seconds) | Non-negative integer | 10 |
pack_files | Whether to pack resulting files to a single tarball | yes, no | yes |
Wowza_multibitrate_mp4 format
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<!-- Format fields -->
<output>wowza_multibitrate_mp4</output>
<bitrates>[CommaSeparatedList]</bitrates>
<sizes>[CommaSeparatedList]</sizes>
<!-- Destination fields -->
<destination>[DestFile]</destination> <!-- REQUIRED -->
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"output": "wowza_multibitrate_mp4",
"bitrates": "[CommaSeparatedList]",
"sizes": "[CommaSeparatedList]",
"destination": "[DestFile]"
}
}
}
Parameters Description
Field Name | Description |
---|---|
output | Output format type |
CEA-708 closed captions mux type
<?xml version="1.0"?>
<query>
<userid><<id>></userid> <!-- required-->
<userkey><<key>></userkey> <!-- required-->
<action>[Action]</action> <!-- required-->
<format>
<!-- Format fields -->
<closed_captions>
<source>[CCSource]</source>
<copy>[yes|no]</copy>
<extract>[srt|scc|dfxp]</extract>
<mux_type>cea-708</mux_type>
<language>[LanguageCode]</language>
<time_offset>[TimeOffset]</time_offset>
</closed_captions>
</format>
</query>
{
"query": {
"userid": "<<id>>",
"userkey": "<<key>>",
"action": "[Action]",
"format": {
"closed_captions": {
"source": "[CCSource]",
"copy": "[yes|no]",
"extract": "[srt|scc|dfxp]",
"mux_type": "cea-708",
"language": "[LanguageCode]",
"time_offset": "[TimeOffset]"
}
}
}
}
Parameters Description
Field Name | Description | Allowed Values | Default Values |
---|---|---|---|
mux_type | Closed captions mux type | cea-708 — 608 closed captions would be up-converted to 708 closed captions. And both, cea-608 and cea-708 closed captions, would be muxed in video stream | None |
Audio_bitrate field in GetMediaInfo response
<?xml version="1.0"?>
<response>
<bitrate>1807k</bitrate>
<duration>6464.83</duration>
<audio_bitrate>128k</audio_bitrate>
<video_codec>mpeg4</video_codec>
<video_bitrate>1679k</video_bitrate>
<frame_rate>23.98</frame_rate>
<size>640x352</size>
<pixel_aspect_ratio>1:1</pixel_aspect_ratio>
<display_aspect_ratio>20:11</display_aspect_ratio>
<audio_codec>ac3</audio_codec>
<audio_sample_rate>48000</audio_sample_rate>
<audio_channels>2</audio_channels>
</response>
{
"response": {
"bitrate": "1807k",
"duration": "6464.83",
"audio_bitrate": "128k",
"video_codec": "mpeg4",
"video_bitrate": "1679k",
"frame_rate": "23.98",
"size": "640x352",
"pixel_aspect_ratio": "1:1",
"display_aspect_ratio": "20:11",
"audio_codec": "ac3",
"audio_sample_rate": "48000",
"audio_channels": "2"
}
}
Parameters Description
Field Name | Description |
---|---|
audio_bitrate | Audio bitrate for the media file. |