opencv/modules/videoio
Dmitry Kurtaev e9982e856f
Merge pull request #25584 from dkurt:videocapture_from_buffer
Open VideoCapture from data stream #25584

### Pull Request Readiness Checklist

Add VideoCapture option to read a raw binary video data from `std::streambuf`.

There are multiple motivations:
1. Avoid disk file creation in case of video already in memory (received by network or from database).
2. Streaming mode. Frames decoding starts during sequential file transfer by chunks.

Suppoted backends:
* FFmpeg
* MSMF (no streaming mode)

Supporter interfaces:
* C++ (std::streambuf)
* Python (io.BufferedIOBase)

resolves https://github.com/opencv/opencv/issues/24400

- [x] test h264
- [x]  test IP camera like approach with no metadata but key frame only?
- [x] C API plugin

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
2024-12-26 12:48:49 +03:00
..
cmake Fix path to 3rdparty cmake. 2024-08-02 10:07:36 +02:00
doc Merge pull request #25042 from mshabunin:doc-upgrade 2024-03-05 16:19:45 +03:00
include/opencv2 Merge pull request #25584 from dkurt:videocapture_from_buffer 2024-12-26 12:48:49 +03:00
misc Merge pull request #25584 from dkurt:videocapture_from_buffer 2024-12-26 12:48:49 +03:00
perf Merge pull request #15100 from Volskig:cam_multiplexing_function_v 2019-11-15 19:42:12 +03:00
src Merge pull request #25584 from dkurt:videocapture_from_buffer 2024-12-26 12:48:49 +03:00
test Merge pull request #25584 from dkurt:videocapture_from_buffer 2024-12-26 12:48:49 +03:00
CMakeLists.txt Exclude cap_ios.h from installation where it's not needed. 2024-06-28 14:11:25 +03:00