Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to force the video codec when reading a video using FFMpeg backend #11480

Closed
dapicard opened this issue May 8, 2018 · 2 comments
Closed

Comments

@dapicard
Copy link
Contributor

dapicard commented May 8, 2018

System information (version)
  • OpenCV => 3.4.1
Detailed description

After trying unsuccessfully to use cuvid h264 decoder using the FFMpeg backend, I think that it could be useful to allow to force the video codec used to decode the video.

I see in the source code that the FFMpeg backend can already be configured using an environment variable named "OPENCV_FFMPEG_CAPTURE_OPTIONS", but this one cannot actually be used to force the codec.

So I propose to add an entry to this envvar that would be use to force the codec ; example :
export OPENCV_FFMPEG_CAPTURE_OPTIONS="video_codec;h264_cuvid"

@dapicard
Copy link
Contributor Author

dapicard commented May 8, 2018

I'm working on :
https://github.com/dapicard/opencv

@dapicard
Copy link
Contributor Author

released with OpenCV 3.4.2

sdvillal added a commit to loopbio/opencv-feedstock that referenced this issue Aug 5, 2018
- move to jinja2 syntax
- move contrib download to meta.yaml
- expose thread_type, together with codec_name added in 3.4.2 makes it easier to tune ffmpeg captures
  opencv/opencv#11480
- use CF pins, ensure proper pinnings otherwise
- bump turbo to 2.0.0
- add some more modules to test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants