Updating codebase.rst to reflect the modern mediagoblin world
[mediagoblin.git] / docs / source / media-types.rst
CommitLineData
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====================
17Enabling Media Types
18====================
19
20In the future, there will be all sorts of media types you can enable,
21but in the meanwhile there's only one additional media type: video.
22
23First, you should probably read ":doc:`configuration`" to make sure
24you know how to modify the mediagoblin config file.
25
26Video
27=====
28
29To enable video, first install gstreamer and the python-gstreamer
30bindings (as well as whatever gstremaer extensions you want,
e91a4dcb 31good/bad/ugly). On Debianoid systems::
9bc2fc6c
CAW
32
33 sudo apt-get install python-gst0.10
34
e91a4dcb
WKG
35Next, modify (and possibly copy over from ``mediagoblin.ini``) your
36``mediagoblin_local.ini``. Uncomment this line in the ``[mediagoblin]``
37section::
9bc2fc6c
CAW
38
39 media_types = mediagoblin.media_types.image, mediagoblin.media_types.video
40
41Now you should be able to submit videos, and mediagoblin should
42transcode them.
43
44Note that you almost certainly want to separate Celery from the normal
45paste process or your users will probably find that their connections
46time out as the video transcodes. To set that up, check out the
47":doc:`production-deployments`" section of this manual.