10000 Update README.md · ruanbl/ffmpeg-python@bf87179 · GitHub
[go: up one dir, main page]

Skip to content

Commit bf87179

Browse files
authored
Update README.md
1 parent ef39004 commit bf87179

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
# 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

Comments
 (0)
0