ffprobe-python
ffprobe-python copied to clipboard
A wrapper of ffprobe command to extract metadata from media files.
I would like FFProbe to tell me the duration in milliseconds. I created a workaround as follows, but would like native support: ``` mp4_data = FFProbe(mp4_file) duration_s = mp4_data.__dict__['metadata']['Duration'] #...
Chapters
When I try to run against a MKV with chapters I get a error from line 75: AttributeError: 'NoneType' object has no attribute 'groups'
I have an issue - The below code works fine when run locally on a Compute Instance (NC6 GPU Series Compute). #!/usr/bin/env python from ffprobe import FFProbe from pydub import...
The following improvements have been made: - Return the number of seconds from metadata tags if original method fails - Calculate the number of frames from duration and framerate if...
``` Traceback (most recent call last): ...line 2, in from ffprobe import FFProbe File "C:\Users\Andrea\Apps\Scoop\apps\python\current\Lib\site-packages\ffprobe\__init__.py", line 1, in from .ffprobe import FFProbe File "C:\Users\Andrea\Apps\Scoop\apps\python\current\Lib\site-packages\ffprobe\ffprobe.py", line 7, in import pipes ModuleNotFoundError:...
Implemented len() for audio and video streams - Falls back to 0 for valid streams missing duration data - Raises expected TypeError if len() is called on a stream not...
pipes breaks with the following error when given a Path object: `TypeError: expected string or bytes-like object, got 'PosixPath'` This change addes a check for, and handles that case so...