10 April 2014

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 NameDescriptionAllowed ValuesDefault Values
Slice decision options
refreshIntra refresh type0 — none
1 — CDR
2 — IDR
1
rc-lookaheadNumber of frames for frame-type lookaheadan integer less than or equal to 250 and greater than maximum consecutive bframes count20
b-adaptAdaptive B frame scheduling0 — none
1 — fast
2 — full (trellis)
2
bframesMaximum number of consecutive b-framesinteger from 0 to 164
b-pyramidUse B-frames as references****—
****0 — Disabled
1 — Enabled
1
refMax number of L0 references to be allowedValues: integer from 0 to 163
weightpEnable weighted prediction in P slices0 — Disabled
1 — Enabled
1
Quad-tree analusis
ctuMaximum CU size (width and height)16,32,6464
tu-intra-depthMax TU recursive depth for intra CUs1,2,3,41
tu-inter-depthMax TU recursive depth for inter CUs1,2,3,41
Motion search options
meMotion search method0 — dia
1 — hex
2 — umh
3 — star
4 — full
1
submeAmount of subpel refinement to performinteger from 0 to 7 (0: least ... 7: most)2
merangeMotion search rangeinteger from 0 to 3276860
max-mergeMaximum number of merge candidatesinteger from 1 to 52
rectRectangual motions partitions Nx2N and 2NxN0 — Disable
1 — Enable
1
ampAsymmetric motion partitions (requires rect enabled)0 — Disable
1 — Enable
1
early-skipEnable early SKIP detection0 — Disable
1 — Enable
0
fast-cbfCBF fast mode0 — Disable
1 — Enable
0
Rate control
rdLevel of RD in mode decision0 — Least
1 — Lightweight RDO Analysis
0
signhideHide sign bit of one coeff per TU0 — Disable
1 — Enable
1
Loop filter
lftLoop filter0 — Disable
1 — Enable
1
Intra options
tskipIntra transform skipping0 — Disable
1 — Enable
0
tskip-fastFast intra transform skipping0 — Disable
1 — Enable
0
Sample Adaptive Offset loop filter
saoSimple adaptive offset0 — 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 NameDescriptionAllowed ValuesDefault Values
bitratesComma separated list of video bitratesOne or more valid bitrate values separated by commas270k, 570k, 1000k, 1200k, 1400k
sizesComma separated list of video sizesOne or more valid size values separated by commas320x180,512x288,768x432,1024x576,1152x648
segment_durationSegment duration to split media (in seconds)Non-negative integer10
pack_filesWhether to pack resulting files to a single tarballyes, noyes

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 NameDescription
outputOutput 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 NameDescriptionAllowed ValuesDefault Values
mux_typeClosed captions mux typecea-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 streamNone

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 NameDescription
audio_bitrateAudio bitrate for the media file.