opencv/modules/videoio/test
cudawarped 38bc519e4a
Merge pull request #24363 from cudawarped:videoio_ffmpeg_add_stream_encapsulation
videoio: Add raw encoded video stream muxing to cv::VideoWriter with CAP_FFMPEG #24363

Allow raw encoded video streams (e.g. h264[5]) to be encapsulated by `cv::VideoWriter` to video containers (e.g. mp4/mkv).

Operates in a similar way to https://github.com/opencv/opencv/pull/15290 where encapsulation is enabled by setting the `VideoWriterProperties::VIDEOWRITER_PROP_RAW_VIDEO` flag when constructing `cv::VideoWriter` e.g.
```
VideoWriter container(fileNameOut, api, fourcc, fps, { width, height }, { VideoWriterProperties::VIDEOWRITER_PROP_RAW_VIDEO, 1 });
```
and each raw encoded frame is passed as single row of a `CV_8U` `cv::Mat`.

The main reason for this PR is to allow `cudacodec::VideoWriter` to output its encoded streams to a suitable container, see https://github.com/opencv/opencv_contrib/pull/3569.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2023-10-25 13:21:01 +03:00
..
test_audio.cpp Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
test_camera.cpp Added test with V4L CAP_PROP_CONVERT_RGB=false. 2023-10-16 10:20:18 +03:00
test_container_avi.cpp Framework for dynamic videoio backends, FFmpeg and GStreamer plugins 2019-02-26 13:50:30 +03:00
test_dynamic.cpp Merge pull request #14156 from mshabunin:videowriter-bad-test 2019-03-29 17:52:22 +03:00
test_ffmpeg.cpp Merge pull request #24363 from cudawarped:videoio_ffmpeg_add_stream_encapsulation 2023-10-25 13:21:01 +03:00
test_gstreamer.cpp Merge pull request #22919 from asmorkalov:as/gstreamer_read_timeout 2022-12-15 12:53:22 +03:00
test_images.cpp videoio: tests for CAP_IMAGES 2023-07-03 10:33:16 +03:00
test_main.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2020-12-17 21:05:34 +00:00
test_mfx.cpp Merge pull request #20614 from mshabunin:use-onevpl-load 2021-10-21 13:56:11 +00:00
test_microphone.cpp Merge pull request #19721 from MaximMilashchenko:Audio 2021-10-20 16:18:24 +03:00
test_orientation.cpp add support for CAP_PROP_ORIENTATION_AUTO to AVFoundation backend 2022-11-25 17:25:13 +01:00
test_plugins.cpp videoio(plugin): add query API for plugins 2021-04-19 14:25:45 +00:00
test_precomp.hpp Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
test_v4l2.cpp videoio: fix V4L compilation for older kernels 2023-08-01 14:11:14 +03:00
test_video_io.cpp Merge pull request #23172 from lilohuang:master 2023-01-25 04:49:08 +00:00