Commit | Line | Data |
---|---|---|
473a4431 CAW |
1 | .. MediaGoblin Documentation |
2 | ||
3 | Written in 2011, 2012 by MediaGoblin contributors | |
4 | ||
5 | To the extent possible under law, the author(s) have dedicated all | |
6 | copyright and related and neighboring rights to this software to | |
7 | the public domain worldwide. This software is distributed without | |
8 | any warranty. | |
9 | ||
10 | You should have received a copy of the CC0 Public Domain | |
11 | Dedication along with this software. If not, see | |
12 | <http://creativecommons.org/publicdomain/zero/1.0/>. | |
13 | ||
9bc2fc6c CAW |
14 | .. _media-types-chapter: |
15 | ||
16 | ==================== | |
17 | Enabling Media Types | |
18 | ==================== | |
19 | ||
20 | In the future, there will be all sorts of media types you can enable, | |
21 | but in the meanwhile there's only one additional media type: video. | |
22 | ||
23 | First, you should probably read ":doc:`configuration`" to make sure | |
24 | you know how to modify the mediagoblin config file. | |
25 | ||
26 | Video | |
27 | ===== | |
28 | ||
29 | To enable video, first install gstreamer and the python-gstreamer | |
30 | bindings (as well as whatever gstremaer extensions you want, | |
e91a4dcb | 31 | good/bad/ugly). On Debianoid systems:: |
9bc2fc6c CAW |
32 | |
33 | sudo apt-get install python-gst0.10 | |
34 | ||
e91a4dcb WKG |
35 | Next, modify (and possibly copy over from ``mediagoblin.ini``) your |
36 | ``mediagoblin_local.ini``. Uncomment this line in the ``[mediagoblin]`` | |
37 | section:: | |
9bc2fc6c CAW |
38 | |
39 | media_types = mediagoblin.media_types.image, mediagoblin.media_types.video | |
40 | ||
41 | Now you should be able to submit videos, and mediagoblin should | |
42 | transcode them. | |
43 | ||
44 | Note that you almost certainly want to separate Celery from the normal | |
45 | paste process or your users will probably find that their connections | |
46 | time out as the video transcodes. To set that up, check out the | |
47 | ":doc:`production-deployments`" section of this manual. |