If you just want a working video gateway, use the below command:
Off-Chain
On-Chain
Replace with your locally running orchestrator http address.
Off-Chain Video Gateway
Copy
Ask AI
livepeer -gateway \ -network offchain \ # Minimum required video flags -rtmpAddr=0.0.0.0:1935 \ -httpAddr=0.0.0.0:8935 \ -transcodingOptions=P240p30fps16x9,P360p30fps16x9 \ # You will need to add your local orchestrator address if you are running off-chain -orchAddr=<ORCHESTRATOR_ADDRESSES> #comma separated list of orchestrator addresses # Example: -orchAddr=http://192.168.1.100:8935,http://192.168.1.101:8935 # You can also use a JSON file: -orchAddr=/path/to/orchestrators.json
Replace with publicly available orchestrator addresses.
On-Chain Video Gateway
Copy
Ask AI
livepeer -gateway \ -network arbitrum-one-mainnet \ # See the on-chain setup guide for more details on these flags -ethUrl=<YOUR_RPC_URL> \ -ethAcctAddr=<YOUR_ETH_ADDRESS> \ -ethPassword=<YOUR_PASSWORD> \ -ethKeystorePath=<KEYSTORE_PATH> \ # Minimum required video flags -rtmpAddr=0.0.0.0:1935 \ -httpAddr=0.0.0.0:8935 \ -transcodingOptions=P240p30fps16x9,P360p30fps16x9 \ # Price per unit is required on-chain (see pricing guide) -maxPricePerUnit=1000 \ # You will need to connect to a public orchestrator if you are running onchain -orchAddr=<ORCHESTRATOR_ADDRESSES> #comma separated list of orchestrators # Example: -orchAddr=https://orch1.example.com:8935,https://orch2.example.com:8935 # You can also use a JSON file: -orchAddr=/path/to/orchestrators.json
Livepeer does not currently maintain a list of publicly available Orchestrators. You need to discover them through:
Livepeer CLI: Use livepeer_cli → Option 9: “List registered orchestrators”
Network discovery: The gateway discovers orchestrators from the on-chain registry
Community resources: Check Livepeer community channels or documentation
Jump to the Connect Guide for details on connecting to orchestrators.
OVERVIEW
Gateways for Video Transcoding In traditional video transcoding, the Gateway
ingests video streams via
RTMP or
HTTP, segments
them, and distributes transcoding work to Orchestrators
Livepeer supports JSON configuration files for transcoding options through the -transcodingOptions flag.The transcodingOptions.json file lets you precisely control the encoding ladder.This file is a custom configuration file containing an array of rendition objects that defines which renditions (resolutions + bitrates)
your Gateway will produce for each incoming stream.It overrides the default built-in ladder (e.g., P240p30fps16x9, etc.).
Create the transcodingOptions.json file using the above template.Open notepad (or your text editor of choice) paste the template above and save
the transcodingOptions.json file in the following location.In Windows, %USERNAME% is already a built-in environment variable
-> You can use it directly.