Go to the documentation of this file.
16 constexpr
static const char*
NAME =
"VideoEncoder";
18 VideoEncoder(
const std::shared_ptr<PipelineImpl>& par, int64_t nodeId);
19 VideoEncoder(
const std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props);
52 [[deprecated(
"Input width/height no longer needed, automatically determined from first frame")]]
void setDefaultProfilePreset(
int width,
63 [[deprecated(
"Input size no longer needed, automatically determined from first frame")]]
void setDefaultProfilePreset(std::tuple<int, int>
size,
86 [[deprecated(
"Input size no longer needed, automatically determined from first frame")]]
void setProfile(std::tuple<int, int>
size,
89 [[deprecated(
"Input width/height no longer needed, automatically determined from first frame")]]
void setProfile(
int width,
153 [[deprecated(
"Input size no longer available, it's determined when first frame arrives")]] std::tuple<int, int>
getSize()
const;
155 [[deprecated(
"Input size no longer available, it's determined when first frame arrives")]]
int getWidth()
const;
157 [[deprecated(
"Input size no longer available, it's determined when first frame arrives")]]
int getHeight()
const;
void setQuality(int quality)
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.
std::tuple< int, int > getSize() const
Get input size.
constexpr static const char * NAME
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
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.
int getNumFramesPool() const
int getBitrateKbps() const
Get bitrate in kbps.
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.
float getFrameRate() const
Get frame rate.
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19