opencv/modules/videoio/misc
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
..
java/test test: Added tests for VideoCapture constructors in java 2020-04-15 14:12:31 +03:00
objc Merge pull request #25584 from dkurt:videocapture_from_buffer 2024-12-26 12:48:49 +03:00
plugin_ffmpeg Merge pull request #22706 from kallaballa:libavdevice_for_ffmpeg_v4l2 2022-11-11 22:28:02 +00:00
plugin_gstreamer core(parallel): plugins support 2021-02-15 17:07:36 +00:00
python Merge pull request #25584 from dkurt:videocapture_from_buffer 2024-12-26 12:48:49 +03:00
build_plugins.sh Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2019-04-19 15:43:58 +03:00
gen_dict.json videoio: do not mix CV_CAP and CAP_ APIs enum values 2017-06-25 23:35:33 +03:00