If you are using Media SDK decoder then you can check what are the supported codec and the different properties of a video in the code itself or the manual which comes with the media SDK. To know properties of your video you can use mediainfo tool, which is available online.
Let me know if I have got your question right and have answered it properly.
Thank you for your Question
Thank you for replying SURBHI M.
And no i want to check dynamically weather the file i am opening can be decoded using QuickSync. Like can the file be decoded or not and if yes then which codec does it use.
Currently we have don't have a way to choose the codec to decode the bitstream on the fly, but you can change the way the input parameters are parsed and include functionality of checking the bitstream and deciding which codec to use to decode. In the current Intel Media SDK we have to manually input the codec to decode the bitstream.
The application should call MFXVideoDECODE_Query function to check if decoding of the stream is supported. Also, MFXVideoDECODE_Init does extensive validation to determine whether the configuration is supported as specified in the input parameters.
Hope this helps!