Documentation ¶
Overview ¶
Package viamrtsp implements RTSP camera support in a Viam module
Index ¶
Constants ¶
View Source
const ( // Unknown indicates an error when no available video codecs could be identified Unknown videoCodec = iota // Agnostic indicates that a discrete video codec has yet to be identified Agnostic // H264 indicates the h264 video codec H264 // H265 indicates the h265 video codec H265 // MJPEG indicates the mjpeg video codec MJPEG )
Variables ¶
View Source
var ( // ModelAgnostic selects the best available codec. ModelAgnostic = family.WithModel("rtsp") // ModelH264 uses the h264 codec. ModelH264 = family.WithModel("rtsp-h264") // ModelH265 uses the h265 codec. ModelH265 = family.WithModel("rtsp-h265") // ModelMJPEG uses the mjpeg codec. ModelMJPEG = family.WithModel("rtsp-mjpeg") // Models is a slice containing the above available models. Models = []resource.Model{ModelAgnostic, ModelH264, ModelH265, ModelMJPEG} // ErrH264PassthroughNotEnabled is an error indicating H264 passthrough is not enabled. ErrH264PassthroughNotEnabled = errors.New("H264 passthrough is not enabled") )
Functions ¶
func H2645StartCode ¶
func H2645StartCode() []byte
H2645StartCode is start code byte sequence for H264/H265 NALs.
func SetLibAVLogLevelFatal ¶
func SetLibAVLogLevelFatal()
SetLibAVLogLevelFatal sets libav errors to fatal log level to cut down on log spam
Types ¶
type Config ¶
type Config struct { Address string `json:"rtsp_address"` RTPPassthrough bool `json:"rtp_passthrough"` IntrinsicParams *transform.PinholeCameraIntrinsics `json:"intrinsic_parameters,omitempty"` DistortionParams *transform.BrownConrady `json:"distortion_parameters,omitempty"` }
Config are the config attributes for an RTSP camera model.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
module
This package provides the entrypoint for the module
|
This package provides the entrypoint for the module |
remote
This package provides the entrypoint for the remote
|
This package provides the entrypoint for the remote |
Package formatprocessor processes RTP packets into Units when can then be re-encoded heavily copied from https://github.com/bluenviron/mediamtx/blob/main/internal/formatprocessor/h264.go https://github.com/bluenviron/mediamtx/blob/main/internal/unit/h264.go & related package & the rest of that package
|
Package formatprocessor processes RTP packets into Units when can then be re-encoded heavily copied from https://github.com/bluenviron/mediamtx/blob/main/internal/formatprocessor/h264.go https://github.com/bluenviron/mediamtx/blob/main/internal/unit/h264.go & related package & the rest of that package |
This package is a test client for RTSP cam integration tests
|
This package is a test client for RTSP cam integration tests |
Click to show internal directories.
Click to hide internal directories.