Broadcast Settings

This topic contains details for encoding settings related to formats and codecs for broadcast and professional workflows.

Overview

Zencoder provides support for advanced encoding formats and codecs for broadcast and professional workflows.

video_codec_preset

video_codec_preset:String

API Versions: V2

Parent: outputs

Valid Values: avci_50, avci_100

Compatible Job Types: VOD

Example: avci_100

Description:

Video encoding preset to allow compatibility with specific industry standards.

Standards:

  • avci_50 is AVC 10-bit intra-frame only compression. 50 Mbit/s, High 10 Intra Profile, Level 3.2, 4. See SMTP RP 2027:2007.
  • avci_100 is AVC 10-bit intra-frame only compression. 100 Mbit/s, High 4:2:2 Intra Profile, Level 4.1. See SMTP RP 2027:2007.
{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "video_codec_preset": "avci_100",
      "video_bit_depth": 10
    }
  ]
}

format_preset

format_preset:String

API Versions: V2

Parent: outputs

Valid Values: ts_dvb, ts_cablelabs, ts_broadcast, as11_hd

Compatible Job Types: VOD

Example: ts_broadcast

Description:

Format preset to allow compatibility with specific industry standards. Note that only 2 audio channels are supported.

Standards:

  • ts_broadcast produces standard MPEG-TS broadcast compliant streams.
  • ts_dvb produces Digital Video Broadcasting (DVB) compliant streams.
  • ts_cablelabs produces CableLabs compliant MPEG-TS streams.
  • as11_hd is AVC-Intra 100 video, 4 or 16 channels of PCM audio in an MXF-OP1A container.
{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "format_preset": "ts_broadcast"
    }
  ]
}

See Also: format

ts_muxrate

ts_muxrate:Integer

API Versions: V2

Parent: outputs

Valid Values: A positive integer. 1000000 max.

Compatible Job Types: VOD

Example: 2600

Description:

The maximum rate in kbps that the transport stream can be muxed. Used with the ts format only.

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "format_preset": "ts_broadcast",
      "ts_muxrate": 2600,
      "video_bitrate": 2000,
      "audio_bitrate": 128,
      "audio_sample_rate": 48000,
      "audio_constant_bitrate": true
    }
  ]
}

See Also: format_preset

ts_pmt_pid

ts_pmt_pid:Integer

API Versions: V2

Parent: outputs

Valid Values: 1-8191

Compatible Job Types: VOD

Example: 16

Description:

Override the packet id of the Program Map Table. Only for use with broadcast ts.

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "format_preset": "ts_broadcast",
      "ts_pmt_pid": 16,
      "video_bitrate": 2000,
      "audio_bitrate": 128,
      "audio_sample_rate": 48000,
      "audio_constant_bitrate": true
    }
  ]
}

See Also: format_preset

ts_video_pid

format_preset:Integer

API Versions: V2

Parent: outputs

Valid Values: 1-8191

Compatible Job Types: VOD

Example: 32

Description:

Override the packet id of video data. Only for use with broadcast ts.

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "format_preset": "ts_broadcast",
      "format_preset": 32,
      "ts_video_pid": 18,
      "video_bitrate": 2000,
      "audio_bitrate": 128,
      "audio_sample_rate": 48,
      "audio_constant_bitrate": true
    }
  ]
}

See Also: format_preset

ts_audio_pid

ts_audio_pid:Integer

API Versions: V2

Parent: outputs

Valid Values: 1-8191

Compatible Job Types: VOD

Example: 33

Description:

Override the packet id of audio data. Only for use with broadcast ts.

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "format_preset": "ts_broadcast",
      "ts_audio_pid": 33,
      "video_bitrate": 2000,
      "audio_bitrate": 128,
      "audio_sample_rate": 48000,
      "audio_constant_bitrate": true
    }
  ]
}

See Also: format_preset

ts_pcr_pid

ts_pcr_pid:Integer

API Versions: V2

Parent: outputs

Valid Values: 1-8191

Compatible Job Types: VOD

Example: 34

Description:

Override the packet id of the Program Clock Reference. Only for use with broadcast ts.

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "format_preset": "ts_broadcast",
      "ts_pcr_pid": 34,
      "video_bitrate": 2000,
      "audio_bitrate": 128,
      "audio_sample_rate": 48000,
      "audio_constant_bitrate": true
    }
  ]
}

See Also: format_preset

ts_cbr

ts_cbr:Boolean

API Versions: V2

Parent: outputs

Default: false

Valid Values: true or false

Compatible Job Types: VOD

Example: true

Description:

Create CBR output by stuffing packets at the transport stream layer.

This is required for fully compliant broadcast streams but may create significantly larger files. Only for use with broadcast ts.

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "format_preset": "ts_broadcast",
      "ts_cbr": true,
      "video_bitrate": 2000,
      "audio_bitrate": 128,
      "audio_sample_rate": 48000,
      "audio_constant_bitrate": true
    }
  ]
}

See Also: format_preset

lossless_video

lossless_video:Boolean

API Versions: V2

Parent: outputs

Default: false

Valid Values: true or false

Compatible Job Types: VOD

Example: true

Description:

Enables lossless video encoding if supported by the video codec.

Currently only supported by Jpeg2000 (jp2).

Cannot be used with video_bitrate.

{
  "input": "s3://zencodertesting/test.mov",
  "outputs": [
    {
      "video_codec": "jp2",
      "lossless_video": true
    }
  ]
}

See Also: video_bitrate