8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef39004 commit bf87179Copy full SHA for bf87179
examples/README.md
@@ -1 +1,10 @@
1
# Examples
2
+
3
+## [Get video info](https://github.com/kkroening/ffmpeg-python/blob/master/examples/video_info.py)
4
5
+```python
6
+probe = ffmpeg.probe(args.in_filename)
7
+video_stream = next((stream for stream in probe['streams'] if stream['codec_type'] == 'video'), None)
8
+width = int(video_stream['width'])
9
+height = int(video_stream['height'])
10
+```
0 commit comments