Commit | Line | Data |
---|---|---|
9bc2fc6c CAW |
1 | .. _media-types-chapter: |
2 | ||
3 | ==================== | |
4 | Enabling Media Types | |
5 | ==================== | |
6 | ||
7 | In the future, there will be all sorts of media types you can enable, | |
8 | but in the meanwhile there's only one additional media type: video. | |
9 | ||
10 | First, you should probably read ":doc:`configuration`" to make sure | |
11 | you know how to modify the mediagoblin config file. | |
12 | ||
13 | Video | |
14 | ===== | |
15 | ||
16 | To enable video, first install gstreamer and the python-gstreamer | |
17 | bindings (as well as whatever gstremaer extensions you want, | |
18 | good/bad/ugly). On Debianoid systems: | |
19 | ||
20 | sudo apt-get install python-gst0.10 | |
21 | ||
22 | Next, modify (and possibly copy over from mediagoblin.ini) your | |
23 | mediagoblin_local.ini. Uncomment this line in the [mediagoblin] | |
24 | section: | |
25 | ||
26 | media_types = mediagoblin.media_types.image, mediagoblin.media_types.video | |
27 | ||
28 | Now you should be able to submit videos, and mediagoblin should | |
29 | transcode them. | |
30 | ||
31 | Note that you almost certainly want to separate Celery from the normal | |
32 | paste process or your users will probably find that their connections | |
33 | time out as the video transcodes. To set that up, check out the | |
34 | ":doc:`production-deployments`" section of this manual. |