OpenCV  4.10.0
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cv::cudacodec::VideoWriter Class Referenceabstract

Video writer interface, see createVideoWriter(). More...

#include <opencv2/cudacodec.hpp>

Collaboration diagram for cv::cudacodec::VideoWriter:

Public Member Functions

virtual ~VideoWriter ()
 
virtual EncoderParams getEncoderParams () const =0
 Retrieve the encoding parameters.
 
virtual void release ()=0
 Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished().
 
virtual void write (InputArray frame)=0
 Writes the next video frame.
 

Detailed Description

Video writer interface, see createVideoWriter().

Available if Nvidia's Video Codec SDK is installed.

Only Codec::H264 and Codec::HEVC are supported with encoding support dependent on the GPU, refer to the Nvidia Video Codec SDK Video Encode and Decode GPU Support Matrix for details.

Note
  • An example on how to use the VideoWriter class can be found at opencv_source_code/samples/gpu/video_writer.cpp

Constructor & Destructor Documentation

◆ ~VideoWriter()

virtual cv::cudacodec::VideoWriter::~VideoWriter ( )
inlinevirtual

Member Function Documentation

◆ getEncoderParams()

virtual EncoderParams cv::cudacodec::VideoWriter::getEncoderParams ( ) const
pure virtual

Retrieve the encoding parameters.

◆ release()

virtual void cv::cudacodec::VideoWriter::release ( )
pure virtual

Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished().

◆ write()

virtual void cv::cudacodec::VideoWriter::write ( InputArray  frame)
pure virtual

Writes the next video frame.

Parameters
frameThe framet to be written.

The method encodes the specified image to a video stream. The image must have the same size and the same surface format as has been specified when opening the video writer.


The documentation for this class was generated from the following file: