- create an event and setup custom ingestion so you get an rtmp url, then use something like to stream from a mac's webcam:
ffmpeg -f avfoundation -i "default" -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -acodec aac -ab 128k -g 50 -strict experimental -f flv -s 426x240 "<rtmp_path>/<stream_id>"
- setup a bucket that's CORS-capable as per these docs
- setup gcs keys as per their docs and then send a request ala:
{
"live_stream": true,
"region": "us-central-gce",
"output": [
{
"label": "livestream-name",
"size": "480x270",
"video_bitrate": 300,
"url": "gcs://some-bucket",
"credentials": "credentials-nickname-in-zencoder",
"type": "segmented",
"live_stream": true,
"headers":{
"x-goog-acl": "public-read"
}
}
]
}
this responds with rtmp info, you can then make stream from a mac's webcam:
ffmpeg -f avfoundation -i "default" -s 284x164 -vcodec libx264 -preset ultrafast -tune stillimage -f flv <zencoder-rtmp-path>/<zencoder-key>
- they have a nice tutorial but you need a paid plan to try it out