Slicer CLI Arguments

CLI arguments for the VOD Slicer.

Reference for the command-line arguments that control how the Slicer ingests and processes on-demand content. Pass these arguments when running the Slicer from the command line. To add content, see Add VOD Content.

Options

OptionDescriptionExample
-addtrackAdds the audio from the specified file as an alternate audio track for the specified beam.

Syntax: -addtrack BeamID ext:ExternalID TrackDescription
-addtrack b123 ext:me3 Event3
-apikey
  • Required. Requires Slicer version 17111500 or higher.
    Sets the secret API key through which the Slicer authenticates to the CMS.
    Bypass this requirement by setting the SLICER_USER and the SLICER_APIKEY environment variables.
    This API key should correspond to the user defined by the -u command line parameter.
    Syntax:-apikey APIKey
-apikey abcDEFghiJKLmnoPQRtuvWXYz123ABCdefGHIJKL
-atrackSets the source audio to the specified audio track.
Syntax: -atrack AudioTrack#
-atrack 3
-atmos_pass_throughReplaces the Dolby 5.1 subtrack with the Dolby Digital Plus Atmos track from the asset being sliced.-dolby -atmos_pass_through
-audiodescDefines a description for the audio track. Typically, this description indicates the track's language.
Syntax: -audiodesc Description
-audiodesc English
-autoexpireSets the asset's retention period. The asset is automatically deleted after the specified time expires.
Syntax: -autoexpire Hours
-autoexpire 3
-breakInserts an ad break for each specified time range.
Syntax: -break StartTime-StopTime (Single Ad Break) or -break StartTime1-StopTime1,StartTime2-StopTime2,StartTimeN-StopTimeN (Multiple Ad Breaks)
-break 10.1-30.58,105-151.332
-bugOverlays an image on the video at the specified start time for the given duration.
Syntax: -bug PNGFile=StartTime,Duration
-bug logo3.png=5000,20000
cc#_descDefines a description for the closed captioning channel defined by this setting's name.
Syntax: cc#_desc: Closed Captioning Channel Description
cc1_desc: English
cc#_langIdentifies the language associated with the closed captioning channel defined by this setting's name.
Syntax: cc#_lang: Closed Captioning Channel Language
cc1_lang: en
-cleardashGenerates unencrypted DASH slices when slicing an asset.-cleardash
-dAssigns a name to the asset generated from the source media.-d "Marketing Event A"
-dolbyAdds a Dolby 5.1 subtrack to the audio track.-dolby
-drm_modeDetermines the level of security applied to a CMS asset generated by the Slicer.
Syntax: -drm_mode Mode
-drm_mode studio
-dvsFlags the current audio track as a DVS track.-dvs
-encwaitForces the Slicer to wait until encoding completes before allowing it to quit.-encwait
-extidAssigns an external ID to the asset generated from the source media.-extid "MarketingEvent123"
-fadeinFades audio and/or video in from the specified start time.
Syntax: -fadein MediaType=StartTime,Duration
-fadein audio=-5000,5000
-fadeoutFades audio and/or video out from the specified start time.
Syntax: -fadeout MediaType=StartTime,Duration
-fadeout audio=-5000,5000
-forceARForces the output to use the specified aspect ratio (in pixels).
Syntax: -forceAR Width:Height
-forceAR 640:480
-gainOverrides the calculated gain/attenuation with the specified value.
Syntax: -gain Decibel
-gain 2
-idpathWrites the asset's GUID to the specified path.-idpath /Users/joe/library/latest.txt
-langSets the audio track's language using the codes defined in RFC 5646.
Syntax: -lang LanguageCode
-lang en-US
-layoutSets the audio layout for downmixed audio channels.-layout dolby
-librariesAdds an asset to one or more shared libraries.
Syntax: -libraries LibraryName or -libraries LibraryGUID or -libraries Library1,Library2,LibraryN
-libraries Marketing
-metaAdds metadata to the asset.
Syntax: -meta Field=Value
-meta Description="Marketing Video"
-meta.fileAdds the metadata fields defined in a JSON file to the asset.
Syntax: -meta.file JSONFile
-meta.file MarketingFields.json
-meta.intAdds metadata containing an integer value to the asset.
Syntax: -meta.int Field=Integer
-meta.int Rating=9
-mixCustomizes how an audio subtrack is mixed.

Syntax: -mix 'Audio Codec=Channel LayoutChannel=Source Track:Source Channel@Level,...
-mix 'dolby=5.1 L=0:0,R=0:1,...'
-mixatracksMixes multiple audio tracks together into a single track.

Syntax: -mixatracks Track=Channel,Track=Channel,...
-mixatracks 0=L,1=R
-nexttrackCloses the mix definition for the current audio track.-nexttrack
-nielsenEnables scanning for Nielsen audio watermarks.
Syntax: -nielsen 1
-nielsen 1
-nielsen_ad_modeSets the Nielsen Breakout Code.
Syntax: -nielsen_ad_mode NielsenBreakoutCode
-nielsen_ad_mode 03
-output_ttmlOutputs a fragmented TTML.-output_ttml
-pDeprecated. Please use the apikey option or the SLICER_APIKEY environment variable instead.-p 1@D208PneG63f
-posterGenerates a poster image from the video frame corresponding to the specified time.
Syntax: -poster Time
-poster 5000
-poster_montageGenerates a montage of stills from the video frames corresponding to the specified times.
Syntax: -poster_montage Time1,Time2,...
-poster_montage 5000,10000,...
-poster_frameExtracts an image from the video frame at the specified time, but does not create an asset.
Syntax: -poster_frame Time
-poster_frame 5000
-prev_assetidRegisters the asset being created as the new version of the specified existing asset.
Syntax: -prev_assetid AssetGUID
-prev_assetid "{12345678-1234-1234-1234-123456789012}"
-prev_trackidRegisters the audio track being created as the new version of the specified existing track.
Syntax: -prev_trackid AudioTrackGUID
-prev_trackid "{12345678-1234-1234-1234-123456789012}"
-proxyUploads the file specified by the proxy path as the asset's proxy.
Syntax: -proxy ProxyPath
-proxy /path/to/proxy.mp4
-s3Registers the asset as an Amazon S3 upload.-s3
-skipSkips the video or audio encoding step, relying on the encoded data from the previous slicing operation.-skip
-splitDivides the output asset into multiple files, each with the specified duration (in seconds).
Syntax: -split Duration
-split 600
-split_inGenerates individual output files corresponding to the specified input file segments.
Syntax: -split_in Start1-End1,Start2-End2,...
-split_in 0:0-0:30,0:40-1:00
-srtImports a .srt subtitle file into the generated asset.
Syntax: -srt SRTFile
-srt /path/to/file.srt
-stereodownmixDownmixes the input audio to stereo, regardless of the source's original channel layout.-stereodownmix
-thumbGenerates a thumbnail image from the video frame corresponding to the specified time.
Syntax: -thumb Time
-thumb 5000
-trim_inRemoves video and audio from the start of the media, up to the specified time.
Syntax: -trim_in StartTime
-trim_in 5000
-trim_outRemoves video and audio from the end of the media, starting at the specified time.
Syntax: -trim_out StopTime
-trim_out 5000
-u
  • Required. Specifies the username through which the Slicer authenticates to the CMS.
    Syntax:-u Username
-u Exampleuser
-vAssigns the asset version.
Syntax: -v AssetVersion
-v 2.3
-volnormNormalizes the volume level across all input channels.-volnorm
-wavExtracts the audio data from the specified asset and saves it as a .wav file.
Syntax: -wav Filename.wav
-wav output.wav
-xDeprecated. Please use the extid option instead.-x "MarketingEvent123"

Did this page help you?