I have a container file, for eg a.mp4. How do I read the audio codec and video codec info of this file using Python. I just need to find out the codec info. Can anyone please help me?
You can use MediaInfo .
There is a Python wrapper for it. You can also use the dll directly
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.