简体   繁体   English

读取 python 中文件的编解码器信息

[英]reading codec info of a file in python

I have a container file, for eg a.mp4.我有一个容器文件,例如 a.mp4。 How do I read the audio codec and video codec info of this file using Python.如何使用 Python 读取此文件的音频编解码器和视频编解码器信息。 I just need to find out the codec info.我只需要找出编解码器信息。 Can anyone please help me?谁能帮帮我吗?

You can use MediaInfo .您可以使用MediaInfo

There is a Python wrapper for it.它有一个Python 包装器 You can also use the dll directly也可以直接使用 dll

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python openCV 编解码器信息 - python openCV codec info 通过Python读取txt文件时出现编解码器问题 - Codec issue while reading txt file via Python Python:从文件读取推文,无用户信息 - Python: Reading Tweets from file, no user info 读取 python 中的文件时出现编解码器错误 - “charmap”编解码器无法解码 position 中的字节 0x81 3124:字符映射到<undefined></undefined> - Codec error while reading a file in python - 'charmap' codec can't decode byte 0x81 in position 3124: character maps to <undefined> Python读取电子邮件信息 - Python reading email info &#39;utf-8&#39; 编解码器无法在 Python3.4 中解码字节读取文件,但不能在 Python2.7 中解码 - 'utf-8' codec can't decode byte reading a file in Python3.4 but not in Python2.7 使用Python读取XML DOCTYPE信息 - Reading XML DOCTYPE info with Python UnicodeDecodeError:'utf-8'编解码器无法解码 position 0 中的字节 0xff:读取 csv 时 python 中的无效起始字节错误 - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte error in python while reading a csv file UnicodeDecodeError when reading CSV file in Pandas with Python “'utf-8' codec can't decode byte 0xff in position 0: invalid start byte” - UnicodeDecodeError when reading CSV file in Pandas with Python “'utf-8' codec can't decode byte 0xff in position 0: invalid start byte” “utf-8”编解码器无法解码位置 2912 中的字节 0xd5:在 Python 中读取 csv 文件时出现无效的连续字节错误 - 'utf-8' codec can't decode byte 0xd5 in position 2912: invalid continuation byte Error when reading csv file in Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM