Context::codec() returns None #45
Unanswered
Sciencentistguy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing some code where I want to get the codec profile (like "DTS-HD MA" is a profile for DTS, for example)
The only way I've found to do this is to use the
Codec::Context::profiles()
function.The issue is that
Codec::context()
is always None, and I'm not sure why.ffprobe
itself can see the streams and the profiles. The test file I'm using is a bluray rip produced with MakeMKV, and it definitely has streams which have codecs.Here's my code if that helps https://github.com/Sciencentistguy/VideoConverter/tree/rust
Beta Was this translation helpful? Give feedback.
All reactions