Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbstack/ffprobe-python
A wrapper of ffprobe command to extract metadata from media files.
https://github.com/gbstack/ffprobe-python
Last synced: 3 months ago
JSON representation
A wrapper of ffprobe command to extract metadata from media files.
- Host: GitHub
- URL: https://github.com/gbstack/ffprobe-python
- Owner: gbstack
- License: other
- Created: 2019-11-05T02:36:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T01:25:55.000Z (over 1 year ago)
- Last Synced: 2024-05-06T09:09:27.037Z (6 months ago)
- Language: Python
- Size: 102 MB
- Stars: 56
- Watchers: 6
- Forks: 54
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
ffprobe-python module
=====================A wrapper around the ffprobe command to extract metadata from media files or streams.
Usage:
```python
#!/usr/bin/env pythonfrom ffprobe import FFProbe
# Local file
metadata=FFProbe('test-media-file.mov')# Video stream
# metadata=FFProbe('http://some-streaming-url.com:8080/stream')for stream in metadata.streams:
if stream.is_video():
print('Stream contains {} frames.'.format(stream.frames()))```
This software is now maintained by Mark Ma <[email protected]>.
---
(The MIT License)
Copyright 2013 Simon Hargreaves
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.