The video media_type needs pygtk/gtk.
[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
582958e3
E
35Currently you need the gtk and pygtk modules::
36
37 sudo apt-get install python-gtk2
38
e91a4dcb
WKG
39Next, modify (and possibly copy over from ``mediagoblin.ini``) your
40``mediagoblin_local.ini``. Uncomment this line in the ``[mediagoblin]``
41section::
9bc2fc6c
CAW
42
43 media_types = mediagoblin.media_types.image, mediagoblin.media_types.video
44
45Now you should be able to submit videos, and mediagoblin should
46transcode them.
47
48Note that you almost certainly want to separate Celery from the normal
49paste process or your users will probably find that their connections
50time out as the video transcodes. To set that up, check out the
51":doc:`production-deployments`" section of this manual.
efd69313
CAW
52
53
54Ascii art
55=========
56
57To enable ascii art support, first install the
58`chardet <http://pypi.python.org/pypi/chardet>`_
59library, which is necessary for creating thumbnails of ascii art::
60
61 ./bin/easy_install chardet
62
63
64Next, modify (and possibly copy over from ``mediagoblin.ini``) your
65``mediagoblin_local.ini``. Uncomment or add to the media_types line
66'mediagoblin.media_types.ascii' like so::
67
68 media_types = mediagoblin.media_types.image, mediagoblin.media_types.ascii
69
70Now any .txt file you uploaded will be processed as ascii art!