|
6 | 6 | Media decoder documentation
|
7 | 7 | ===========================
|
8 | 8 |
|
9 |
| -This library allows you to decode and render movies in Python. It is based on |
10 |
| -the (rather excellent) MoviePy_ module created by Zulko, which offers a convenient |
11 |
| -Python interface to ffmpeg. This library should hence be able to render any media |
12 |
| -format that ffmpeg supports. If ffmpeg is not found, moviepy will download it for |
13 |
| -you on first usage, which may take some time |
| 9 | +This library allows you to decode and render video files (and in the future also |
| 10 | +audio files) in Python. It provides an internal clock that determines which |
| 11 | +(video and/or audio) frame needs to be displayed at a specified time, and this frame |
| 12 | +can then (optionally) be passed on to a callback function that takes care of the |
| 13 | +actual rendering of the frame. In short, this library should help you get started |
| 14 | +when you want to implement your own video player and want to have full control over |
| 15 | +the way audio and video is rendered. |
| 16 | + |
| 17 | +It is based on the (rather excellent) MoviePy_ module created by Zulko, which offers |
| 18 | +a convenient Python interface to ffmpeg. This library should hence be able to |
| 19 | +render any media format that ffmpeg supports. If ffmpeg is not found, moviepy |
| 20 | +will download it for you on first usage, which may take some time |
14 | 21 | (so keep an eye on that terminal/command prompt to track the download progress).
|
15 | 22 |
|
16 | 23 | This library's main purpose is to decode video and/or audio files and supply the
|
17 | 24 | user with video and audio frames depending on the playtime of the media stream.
|
18 | 25 | The user thus has to take care of the rendering of these frames himself (although
|
19 |
| -modules for sound rendering are included in the package. |
| 26 | +modules for sound rendering are included in the package). |
20 | 27 | The ``play.py`` contains an example of how to play a video using OpenGL+pygame for
|
21 | 28 | the video rendering and pyaudio for audio playback (using pygame.mixer is also an
|
22 | 29 | option, but that doesn't work smoothly yet). You can play a video by calling
|
|
0 commit comments