mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge pull request #15290 from cudawarped:ffmpeg_raw_retrieve
Add retrieve encoded frame to VideoCapture * Add capacity to retrieve the encoded frame from a VideoCapture object. * Correct raw codec and pixle format output from ffmpeg capture. * Remove warnings from build. * Added VideoCaptureRaw subclass. * Include abstract base class VideoCaptureBase and rename new subclass VideoContainer as suggested by mshabunin. * Remove using. * Change base class name for compatibility with jave bindings generator. * Move grab and retrieve and add override specifier * Add setRaw and readRaw to IVideoCapture interface -setRaw to disable video decoding and enable bitstream filters from mp4 to h254 and h265. -readRaw to return the raw undecoded/filtered bitstream. Add createRawCapture to initiate a backend with setRaw enabled. Remove inheritance and use an independant VideoContainer subclass with IVideoCapture member. * Address unused parameter warings. Remove VideoContainer from python bindings as it no longer returns a Mat. Use opencv type uchar instead of unsigned char. Add missing destructor to VideoContainer class. * Address build warnings and include all params in documentation. * Include deprecated bitstream filtering API. * Update codec_id query to work with older ffmpeg api's. Change api version defines to be consistent - most recent api version first. * Fix typo. * Update test to work with naming of new files in the extra repo * Investigate test failure * Check bytes read by ffmpeg * Removed mp4 video container test * Applied suggested changes. * videoio: rework API for extraction of RAW video streams - FFmpeg only * address review comments
This commit is contained in:
committed by
Alexander Alekhin
parent
af230ec133
commit
0867e3188d
@@ -137,7 +137,8 @@ enum VideoCaptureProperties {
|
||||
CAP_PROP_FPS =5, //!< Frame rate.
|
||||
CAP_PROP_FOURCC =6, //!< 4-character code of codec. see VideoWriter::fourcc .
|
||||
CAP_PROP_FRAME_COUNT =7, //!< Number of frames in the video file.
|
||||
CAP_PROP_FORMAT =8, //!< Format of the %Mat objects returned by VideoCapture::retrieve().
|
||||
CAP_PROP_FORMAT =8, //!< Format of the %Mat objects (see Mat::type()) returned by VideoCapture::retrieve().
|
||||
//!< Set value -1 to fetch undecoded RAW video streams (as Mat 8UC1).
|
||||
CAP_PROP_MODE =9, //!< Backend-specific value indicating the current capture mode.
|
||||
CAP_PROP_BRIGHTNESS =10, //!< Brightness of the image (only for those cameras that support).
|
||||
CAP_PROP_CONTRAST =11, //!< Contrast of the image (only for cameras).
|
||||
@@ -174,6 +175,7 @@ enum VideoCaptureProperties {
|
||||
CAP_PROP_CHANNEL =43, //!< Video input or Channel Number (only for those cameras that support)
|
||||
CAP_PROP_AUTO_WB =44, //!< enable/ disable auto white-balance
|
||||
CAP_PROP_WB_TEMPERATURE=45, //!< white-balance color temperature
|
||||
CAP_PROP_CODEC_PIXEL_FORMAT =46, //!< (read-only) codec's pixel format. 4-character code - see VideoWriter::fourcc . Subset of [AV_PIX_FMT_*](https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/raw.c) or -1 if unknown
|
||||
#ifndef CV_DOXYGEN
|
||||
CV__CAP_PROP_LATEST
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user