gocv
gocv copied to clipboard
expose apiPreference in VideoWriter
This pull request adds VideoWriter_OpenCap that accepts apiPrefrence.
To create a VideoWriter with apiPreference, the function VideoWriterCap has been exposed to accept the apiPreference. A test has been added to videoio_test to test gstreamer caps.
I am going to make some updates to this PR. I will look at gstreamer pipeline elements that are provided in the default install of gstreamer and remove the need for the h264 encoder.
The test I added does require gstreamer. Is this an issue in the AppVeyor configuration?
I think that opencv is not built with gstreamer inside appveyor. It uses appveyor.yml
which calls appveyor_build_opencv.cmd
for compiling opencv, and there is nothing about gstreamer.
one question , can this pr still be merged?
Is there other way to achive this visbility to create VideoWriters to gstreamer?