1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

videoio(plugins): support VideoCaptureParameters, CAPTURE_API_VERSION=1

- example: ffmpeg
This commit is contained in:
Alexander Alekhin
2021-01-28 06:00:38 +00:00
parent 467870415b
commit e705414bea
8 changed files with 154 additions and 92 deletions
+3 -5
View File
@@ -509,12 +509,10 @@ TEST(videoio_ffmpeg, create_with_property_badarg)
throw SkipTestException("FFmpeg backend was not found");
string video_file = findDataFile("video/big_buck_bunny.mp4");
EXPECT_ANY_THROW(
{
VideoCapture cap(video_file, CAP_FFMPEG, {
CAP_PROP_FORMAT, -2 // invalid
});
VideoCapture cap(video_file, CAP_FFMPEG, {
CAP_PROP_FORMAT, -2 // invalid
});
EXPECT_FALSE(cap.isOpened());
}