Class cv::cudacodec::VideoWriter#

Video writer interface, see createVideoWriter(). View details

Collaboration diagram for cv::cudacodec::VideoWriter:

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

Examples
samples/hog_tapi.cpp, samples/cpp/tutorial_code/videoio/video-write/video-write.cpp, and samples/cpp/videowriter.cpp.

Constructor & Destructor Documentation#

~VideoWriter()#

cv::cudacodec::VideoWriter::~VideoWriter()

Member Function Documentation#

getEncoderParams()#

EncoderParams cv::cudacodec::VideoWriter::getEncoderParams()

Retrieve the encoding parameters.

release()#

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

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

write()#

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

Writes the next video frame.

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.

Parameters

  • frame — The framet to be written.

Source file#

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