![]() ![]() The line above will return "true" if ffmpeg is capable of both decoding and encoding Dirac streams.Įxplanation: if you run ffmpeg with the -codec switch, you will get an output of all codecs it understands. ^ name of codec you would enter on command lineįor instance, in BaSH you could have something like this in a script: if ] then echo "true" fi in a script), it's possible to check for both the codec function(s) and codec name in a similar manner: ffmpeg -v quiet -codecs | grep '.*DE.*opus' If you don't know whether a codec has the capabilities you need (e.g. ![]() ![]() However, the technique can still be applied, with a bit more effort. It's not a good method if you need to differentiate between similarly named codecs. Keep in mind, this is a crude solution, and therefore false positives are plausible. Decode or Encode), then a very basic search is all you need, such as this: ffmpeg -v quiet -codecs | grep diracĪbove will return a result if the codec support exists, and null if it isn't. For instance, if you know that if a codec is available, that it has the capability you need (e.g. There are a few ways to do it, depending on how high of a level of confidence you require in terms of accuracy. Actually, if you are on a Linux platform, yes there is a simple way to verify. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |