You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could we specify the codec used for decoding? #1530
PS. I know that you yourself are not using /usr/bin/ffmpeg in the package on pypi but I am integrating this with conda-forge's ffmpeg, where we do have some control over the number of shipped codecs. Most specifically, I am interested in playing with the intel QSV decoder! Thanks!
Oh ok. That's not my problem then. I am just trying to get PyAV to use NVIDIA CUDA hardware decoding but can't find any recent examples of how to do it.
Oh ok. That's not my problem then. I am just trying to get PyAV to use NVIDIA CUDA hardware decoding but can't find any recent examples of how to do it.
yes, this is what i was trying to do. you need to likely ask ffmpeg to do.
I don't think it is being done, you can likely force the h264_nvenc in the line I pointed to.
The question from a library perspective, is how do you do this nicely?
MP4 is a container, you don't know what the codec is until you open it. you don't know if your hardware decoder can handle it until you read the metadata (think super tiny image).
Activity
hmaarrfk commentedon Sep 18, 2024
PS. I know that you yourself are not using
/usr/bin/ffmpegin the package onpypibut I am integrating this with conda-forge's ffmpeg, where we do have some control over the number of shipped codecs. Most specifically, I am interested in playing with the intel QSV decoder! Thanks!jonathanhoskin commentedon Oct 7, 2024
@hmaarrfk did you ever figure this out? I am trying to solve the same problem.
hmaarrfk commentedon Oct 7, 2024
the question for me is how to specify a good API for this.
I think a good start would be get to a point wherey ou can compile PyAV yourself, and suggest a patch.
jonathanhoskin commentedon Oct 7, 2024
Oh ok. That's not my problem then. I am just trying to get PyAV to use NVIDIA CUDA hardware decoding but can't find any recent examples of how to do it.
hmaarrfk commentedon Oct 7, 2024
yes, this is what i was trying to do. you need to likely ask ffmpeg to do.
I don't think it is being done, you can likely force the
h264_nvencin the line I pointed to.The question from a library perspective, is how do you do this nicely?
MP4 is a container, you don't know what the codec is until you open it. you don't know if your hardware decoder can handle it until you read the metadata (think super tiny image).
hmaarrfk commentedon Oct 7, 2024
mind you, your ffmpeg must have been compiled with nvenc support, not sure how you are installing PyAV, but not all ffmpeg's are built equal ;)
jonathanhoskin commentedon Oct 7, 2024
Oh - I'm definitely working with a special ffmpeg build that supports cuda. If I pass the same options to PyAV it ignores them.
This CLI works:
This Python doesn't:
Am I doing it wrong?
hmaarrfk commentedon Oct 7, 2024
this is probably best for a discussion. start one. and ping me there.
please discuss how you installed both
ffmpegcommand line andpyav