Skip to main content

rpicam_h264

Function rpicam_h264 

pub fn rpicam_h264(config: RpicamConfig) -> Result<EncodedVideo, Error>
Expand description

Starts the Raspberry Pi camera’s hardware H.264 through rpicam-vid.

This is the cheapest thing a Pi Zero can publish: no raw pipe and no second encode. The returned Annex-B stream goes to LocalBroadcast::set_encoded_video, and dropping it kills the subprocess.

§Errors

Fails if rpicam-vid is not installed or cannot be started.