Go to the documentation of this file.
7 #include "spdlog/spdlog.h"
42 logger::warn(
"VideoEncoder {}: passing 'size' is deprecated. It is auto-determined from first frame", __func__);
49 logger::warn(
"VideoEncoder {}: passing 'width'/ 'height' is deprecated. The size is auto-determined from first frame", __func__);
118 logger::warn(
"VideoEncoder {} is deprecated. The size is auto-determined from first frame and not known upfront", __func__);
123 logger::warn(
"VideoEncoder {} is deprecated. The size is auto-determined from first frame and not known upfront", __func__);
128 logger::warn(
"VideoEncoder {} is deprecated. The size is auto-determined from first frame and not known upfront", __func__);
166 logger::warn(
"VideoEncoder {}: passing 'width'/ 'height' is deprecated. The size is auto-determined from first frame", __func__);
172 logger::warn(
"VideoEncoder {}: passing 'width'/ 'height' is deprecated. The size is auto-determined from first frame", __func__);
Properties & properties
Underlying properties.
void setQuality(int quality)
void setInputRefs(std::initializer_list< Input * > l)
void setBitrateKbps(int bitrateKbps)
Set output bitrate in kbps, for CBR rate control mode. 0 for auto (based on frame size and FPS)....
void setBitrate(int bitrate)
Set output bitrate in bps, for CBR rate control mode. 0 for auto (based on frame size and FPS)....
void setNumBFrames(int numBFrames)
Set number of B frames to be inserted. Applicable only to H264 and H265 profiles.
Properties::Profile getProfile() const
Get profile.
void warn(const FormatString &fmt, Args &&...args)
std::tuple< int, int > getSize() const
Get input size.
void setProfile(Properties::Profile profile)
Set encoding profile.
constexpr auto size(const C &c) -> decltype(c.size())
void setDefaultProfilePreset(float fps, Properties::Profile profile)
void setLossless(bool lossless)
int getMaxOutputFrameSize() const
RateControlMode rateCtrlMode
void setKeyframeFrequency(int freq)
Properties::RateControlMode getRateControlMode() const
Get rate control mode.
int getNumBFrames() const
Get number of B frames.
int getHeight() const
Get input height.
Base Properties structure.
int getNumFramesPool() const
std::uint32_t numFramesPool
int getBitrateKbps() const
Get bitrate in kbps.
void setOutputRefs(std::initializer_list< Output * > l)
std::int32_t keyframeFrequency
void setMaxOutputFrameSize(int maxFrameSize)
VideoEncoder(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
bool getLossless() const
Get lossless mode. Applies only when using [M]JPEG profile.
int getWidth() const
Get input width.
int getKeyframeFrequency() const
Get keyframe frequency.
void setFrameRate(float frameRate)
void setNumFramesPool(int frames)
VideoEncoder node. Encodes frames into MJPEG, H264 or H265.
int getBitrate() const
Get bitrate in bps.
void setRateControlMode(Properties::RateControlMode mode)
Set rate control mode Applicable only to H264 and H265 profiles.
int getQuality() const
Get quality.
std::int32_t outputFrameSize
float getFrameRate() const
Get frame rate.
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19