Skip to content

videoio(test): update PSNR check for H264/265#22942

Merged
alalek merged 2 commits intoopencv:4.xfrom
alalek:videoio_test_update_hw_checks
Dec 12, 2022
Merged

videoio(test): update PSNR check for H264/265#22942
alalek merged 2 commits intoopencv:4.xfrom
alalek:videoio_test_update_hw_checks

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Dec 11, 2022

Nightly build: http://pullrequest.opencv.org/buildbot/builders/master-win64-vc16/builds/100005 (sporadic on i7-11800H)

[ RUN      ] videoio/videocapture_acceleration.read/74, where GetParam() = (sample_322x242_15frames.yuv420p.libx264.mp4, FFMPEG, ANY, false)
VideoCapture FFMPEG:D3D11
VideoCapture with acceleration = D3D11  @ FFMPEG     on sample_322x242_15frames.yuv420p.libx264.mp4 with PSNR-original = 20.7884
C:\build\master-win64-vc16\opencv\modules\videoio\test\test_video_io.cpp(789): error: Expected: (min_psnr_original) >= (psnr_threshold), actual: 20.7884 vs 23
[  FAILED  ] videoio/videocapture_acceleration.read/74, where GetParam() = (sample_322x242_15frames.yuv420p.libx264.mp4, FFMPEG, ANY, false) (61 ms)

[ RUN      ] videoio/videocapture_acceleration.read/78, where GetParam() = (sample_322x242_15frames.yuv420p.libx264.mp4, FFMPEG, D3D11, false)
[ERROR:0@87.262] global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1272) open VIDEOIO/FFMPEG: Failed to initialize VideoCapture
VideoCapture FFMPEG:D3D11
VideoCapture with acceleration = D3D11  @ FFMPEG     on sample_322x242_15frames.yuv420p.libx264.mp4 with PSNR-original = 20.7884
C:\build\master-win64-vc16\opencv\modules\videoio\test\test_video_io.cpp(789): error: Expected: (min_psnr_original) >= (psnr_threshold), actual: 20.7884 vs 23
[  FAILED  ] videoio/videocapture_acceleration.read/78, where GetParam() = (sample_322x242_15frames.yuv420p.libx264.mp4, FFMPEG, D3D11, false) (56 ms)

 RUN      ] videoio/videocapture_acceleration.read/98, where GetParam() = (sample_322x242_15frames.yuv420p.libx265.mp4, FFMPEG, ANY, false)
VideoCapture FFMPEG:D3D11
VideoCapture with acceleration = D3D11  @ FFMPEG     on sample_322x242_15frames.yuv420p.libx265.mp4 with PSNR-original = 20.78
C:\build\master-win64-vc16\opencv\modules\videoio\test\test_video_io.cpp(789): error: Expected: (min_psnr_original) >= (psnr_threshold), actual: 20.78 vs 23
[  FAILED  ] videoio/videocapture_acceleration.read/98, where GetParam() = (sample_322x242_15frames.yuv420p.libx265.mp4, FFMPEG, ANY, false) (73 ms)

[ RUN      ] videoio/videocapture_acceleration.read/102, where GetParam() = (sample_322x242_15frames.yuv420p.libx265.mp4, FFMPEG, D3D11, false)
[ERROR:0@87.711] global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1272) open VIDEOIO/FFMPEG: Failed to initialize VideoCapture
VideoCapture FFMPEG:D3D11
VideoCapture with acceleration = D3D11  @ FFMPEG     on sample_322x242_15frames.yuv420p.libx265.mp4 with PSNR-original = 20.78
C:\build\master-win64-vc16\opencv\modules\videoio\test\test_video_io.cpp(789): error: Expected: (min_psnr_original) >= (psnr_threshold), actual: 20.78 vs 23
[  FAILED  ] videoio/videocapture_acceleration.read/102, where GetParam() = (sample_322x242_15frames.yuv420p.libx265.mp4, FFMPEG, D3D11, false) (74 ms)

4096x4096 encoding issue in FFmpeg big_size tests on Win32:

[OPENCV:FFMPEG:24] Cannot allocate worst case packet size, the encoding could fail
[OPENCV:FFMPEG:16] Failed to allocate packet of size 2147483551
[ERROR:0@0.054] global /build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (2277) icv_av_write_frame_FFMPEG Error sending frame to encoder (avcodec_send_frame)
force_builders=Win64,Win64 OpenCL,Win32,Custom Win
Xtest_modules=videoio

@asmorkalov asmorkalov self-requested a review December 12, 2022 11:30
@asmorkalov asmorkalov self-assigned this Dec 12, 2022
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alalek alalek merged commit 39087fe into opencv:4.x Dec 12, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
…ecks

* videoio(test): update PSNR check for H264/265

* videoio(test): reduce size for ffmpeg tests on 32-bit platforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants