73 Commits

Author SHA1 Message Date
Christopher Allan Webber
449863863a Merge remote-tracking branch 'remotes/npigeon/ticket-601' 2013-04-20 17:19:56 -05:00
Christopher Allan Webber
8aa18b6682 bumping image quality to 90, after conversation with Elrond 2013-04-20 11:03:48 -05:00
Christopher Allan Webber
7bb26613a3 Bumping the default image quality up to 85. 2013-04-20 10:54:13 -05:00
dunkyp
35f6d6a750 image quality can be set in config file
(cherry-picked from
 https://gitorious.org/~dunkyp/mediagoblin/dunkyps-mediagoblin/commits/image_quality)
2013-04-20 10:54:13 -05:00
nattily pigeonfowl
86bd1f3caf Changed the max character length for tags on media to 255. Only had to change one line in mediagoblin/config_spec.ini
in response to isses.mediagoblin.org/ticket/601
2013-04-16 16:25:59 -04:00
Alon Levy
a80ebf3b64 add pdf media type
The new media type supports pdf and a subset of media recognized by libreoffice via
unoconv.

Every document added goes through:
* conversion to pdf with unoconv if not already a pdf
* creation of thumbnail and medium sized image, and pdfinfo generates
 some information (even for unoconv produces docs - should fix this)

Poppler (pdftocairo, pdfinfo) is used.  http://poppler.freedesktop.org/

A working but uglified pdf.js integration exists, which is enabled by
setting pdf.pdf_js=true mediagoblin_local.ini (disabled in mediagoblin.ini)

Adds one test to the test_submission test suite, and another separate test_pdf suite.
The tests are only run if media_types.pdf.processing.check_prerequisites passes, so
the test suite will not require any extra package.

TODO: make test suite say 'skipped' in that case instead of just 'ok'

Signed-off-by: Alon Levy <alon@pobox.com>
2013-04-15 09:51:21 +03:00
Elrond
82a40cc4e1 Remove the last traces of beaker.
There were still some traces of beaker around:
- docs: replaced by reference to itsdangerous.
- paste configs: Wiped away.
- config_spec.ini: wiped.
- test_mgoblin_app.ini: also wiped.
2013-04-09 22:39:04 +02:00
Elrond
5907154a59 Basic itsdangerous infrastructure.
Implement the basic infrastructure for using itsdangerous
in mediagoblin. Usage instructions will follow.
2013-03-22 18:46:47 +01:00
Christopher Allan Webber
ed6344009a Merge branch 'master' into joar-skip_transcoding
Conflicts:
	mediagoblin/config_spec.ini
2013-03-01 16:29:22 -06:00
Christopher Allan Webber
a587492729 Merge remote-tracking branch 'refs/remotes/pythonsnake/629_autoplay' 2013-02-24 13:06:53 -06:00
pythonsnake
6f6471aa5e Fix bug 629 2013-02-10 15:08:15 +01:00
Aleksej
cd3058373c correct typo in a comment in config_spec.ini 2013-02-10 14:13:46 +04:00
Christopher Allan Webber
e9c3384b84 Removing unused geolocation_map_visible variable and turning geolocation on in default config 2013-01-30 13:22:18 -06:00
Joar Wandborg
124081040b Changed sampling filter default to AA 2013-01-22 23:28:17 +01:00
Joar Wandborg
7cd7db5af4 Made the image sampling filter configurable
- Changed the default to BICUBIC instead of previous ANTIALIAS
2013-01-22 23:28:17 +01:00
Joar Wandborg
5c754fdaee Added option to skip transcoding
- If the video input matches the configurable rules, just copy it to the
  output without transcoding it.
2013-01-22 23:03:14 +01:00
Elrond
c96c67ce9e Kill db_host, db_name, and db_port from config_spec.ini.
The last bits of mongo. Let me remove them.
2013-01-13 18:32:09 +01:00
Christopher Allan Webber
aed7474e88 Make the theme_linked_assets_dir config option point to the right place by default
Should be in user_dev...
2012-07-14 12:55:14 -05:00
Christopher Allan Webber
71eb457748 Serve and setup the mediagoblin "linked theme" assets directory 2012-07-14 12:55:14 -05:00
Christopher Allan Webber
9a422c1fd0 Add the theme domain to the application's staticdirector 2012-07-14 12:55:14 -05:00
Christopher Allan Webber
3b47da8eab Themes are now registered and can have their templates loaded properly 2012-07-14 12:55:13 -05:00
Jakob Kramer
b781c3c928 added support for original audio download; rename
Renamed `ogg' to `webm_audio' in core__file_keynames
2012-05-20 18:32:56 +02:00
Christopher Allan Webber
5d88f39875 Switching BROKER_HOST to sqlite:// instead of sqlalchemy+sqlite://
Okay, so if you run git master of kombu, this works.  And if you run
the older kombu + kombu-sqlalchemy, this also worked.  In the last
release of kombu (2.1.5) there's a bug, and sqlalchemy+sqlite://
worked for processes consuming tasks but not ones publishing tasks.

Aye aye aye.

I guess we might have to move our setup.py back to the old kombu +
kombu-sqlalchemy setup until they put out a new kombu release? :(
2012-04-22 10:02:04 -05:00
Christopher Allan Webber
ec05785089 Remove kombu-sqlalchemy and use database string in modern kombu-proper format
Previously we were using kombu-sqlalchemy the library for sqlalchemy
support.  Newer kombu has support for this internally, so we're using
that.  Requires changing a celery setting and also removing
kombu-sqlalchemy from your path.

I hope the process of removing kombu-sqlalchemy from one's path
doesn't confuse too many people...!
2012-04-21 20:29:02 -05:00
Joar Wandborg
196a518132 Media processing, transcoding, display fixes
- Added configurable options
  - Video
    - vp8_quality
    - vp8_threads
    - vorbis_quality
  - Audio
    - spectrogram_fft_size
  - ASCII
    - thumbnail_font
- Cleaned up ascii.asciitoimage
- Cleaned up video.transcoders
- Changed default video quality settings to better quality
- Changed default audio spectrogram solution to the double.
- Added a hacky notice for Firefox users instead of the broken range
  input.
2012-04-09 16:28:46 +02:00
Joar Wandborg
deea3f6661 Merge remote-tracking branch 'joar/audio+sniffing'
Conflicts:
	mediagoblin/media_types/image/processing.py
	mediagoblin/media_types/video/__init__.py
	mediagoblin/media_types/video/processing.py
	mediagoblin/tests/test_submission.py
2012-03-27 12:05:09 +02:00
Christopher Allan Webber
ff6933fa4c Provide a source link so we can comply with the AGPL 2012-03-14 12:38:55 -05:00
Joar Wandborg
4f4f2531ad Removed diaper patterns from audio/video sniffers, video preload set to 'metadata'
* mediagoblin.processing THUMB_/MEDIUM_ constants are now based on the ini settings
* Removed diaper patterns from audio and video sniffing
* Changed HTML5 video preload to 'metadata'
2012-03-07 22:48:23 +01:00
Joar Wandborg
10085b7739 Audio thumbnailing & spectrograms, media plugins use sniffing
* Added extlib/freesound/audioprocessing.py
* config_spec
  * Added create_spectrogram setting
  * Added media:medium and media:thumb max_{width,height} settings
* Added sniffing logic to
  - audio.processing:sniff_handler
  - video.processing:sniff_handler
* Changed audio.processing:sniff_handler logic
* Added audio thumbnailing functionality to audio.processing
  (works only with create_spectrogram enabled)
* Refractored contexts in audio.processing
* Added audio.transcoders:AudioThumbnailer
  Used for creating spectrograms and spectrogram thumbnails -
  Wadsworth's Constant, we meet again :)
* audio.transcoders:AudioTranscoder
  - Added mux_string kwarg
  - Delete self.pipeline on self.halt()
* Changed str.format formatting in image.processing:sniff_handler
  Had {1} without an {0}, changed to {0}
* Refractored VideoTranscoder to use transcode() for transcoding instead
  of __init__()
* Added discover() method to video.transcoders:VideoTranscoder
* Added spectrogram display to media_displays/audio.html
* Updated test_submission to reflect changes in media plugin delegation
2012-02-28 21:59:38 +01:00
Luke Slater
6bcdd4dc70 Changed celery config keys to upper case and removed upper casing of keys when initialising the config as per issue #214 2012-02-28 16:40:37 +00:00
Christopher Allan Webber
b8e1abf782 "database" is not the sqlalchemy kombu transport... should be "sqlalchemy" 2012-02-26 13:27:09 -06:00
Christopher Allan Webber
b2a7e44c9e Move mediagoblin dbs out of user_dev for race condition directory-creation reasons. 2012-02-26 08:20:17 -06:00
Christopher Allan Webber
b94dfe4cbf Give kombu its own db. Responding to Elrond "sqlite will lock all the time!" :) 2012-02-26 07:58:40 -06:00
Christopher Allan Webber
200abf856b Apparently an absolute path is three slashes after sqlite:. Thx elrond.
sqlite:///////////////////////////////////whaaaaaa.db
2012-02-26 07:46:23 -06:00
Christopher Allan Webber
e629cde0b3 Should be all that's needed to switch celery/kombu settings to sqlalchemy 2012-02-25 22:39:38 -06:00
Elrond
a45631e3f3 Start having useful defaults for SQL
Mostly this means: Havintg a config_spec.ini that has a
local (relative to mediagoblin.ini) sqlite db with the name
"mediagoblin.db".

Also:
- Add to .gitignore
- Add a notice to mediagoblin.ini about the db
2012-02-18 19:34:11 +01:00
Joar Wandborg
5a34a80d0a Audio media handler, media sniffing, video fixes
* Added audio processing code
* Added audio display template
* Added audio configuration setting
* Changed video docstring
2012-02-14 23:26:07 +01:00
Joar Wandborg
5907222c0b Added exif_visisble and geolocation_map_visible to config_spec 2012-01-25 23:44:59 +01:00
Michele Azzolari
bb025ebda1 As per spec, we permit to have more then 1 hub 2012-01-12 11:05:05 +01:00
Michele Azzolari
7f251b037b As suggested by Elrond, we use only one setting 2012-01-12 00:00:28 +01:00
Michele Azzolari
f502a89b6d Default is now PuSH disabled 2012-01-11 16:11:23 +01:00
Michele Azzolari
5b1a7bae3c Added PuSH capability 2012-01-11 15:48:37 +01:00
Christopher Allan Webber
23caf305f2 Allow administrators to disable keeping the original. That's the new default! 2011-12-12 08:10:10 -06:00
Elrond
6603b30041 Merge remote branch 'remotes/manolinux/671_spaces_in_tag_list_edit'
* remotes/manolinux/671_spaces_in_tag_list_edit:
  * Feature #678: Drop custom delimiters in tags   * Eliminate the definition of the tag delimiter for tests.   * Remove a test that was related to custom tags delimiter. * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read   * Modify a test to include this space.
  * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read : Make 'media_tags_as_string' function put a space after each comma. * Feature #678: Drop custom delimiters in tags : I declare a constant in the begining of text.py file.
2011-12-03 22:11:54 +01:00
Manuel Urbano Santos
3038ba87e4 * Bug #671: Tags list on Edit page is not seperated by spaces and hard to read : Make 'media_tags_as_string' function put a space after each comma.
* Feature #678: Drop custom delimiters in tags : I declare a constant in the begining of text.py file.
2011-11-27 13:49:47 +01:00
Christopher Allan Webber
f47a7a8c92 Remove old enable_video config option 2011-11-25 11:42:03 -06:00
Christopher Allan Webber
cfa96da734 Load multiple media types based on the media_types section of the config file 2011-11-25 11:41:24 -06:00
Joar Wandborg
8aeb673877 Video support is disabled by default, set enable_video to true to enable 2011-11-22 00:09:41 +01:00
Christopher Allan Webber
5bb37b9480 Merge remote branch 'remotes/inconexo/613_custom_title' 2011-11-19 14:04:56 -06:00
Christopher Allan Webber
7c378f2cd5 Allow user to set whether comments are ascending or descending 2011-11-19 14:01:38 -06:00