55 Commits

Author SHA1 Message Date
1079d1cee4
Add plyr as player default and remove NodeJS, npm and videojs 2022-02-28 07:51:38 +08:00
Ben Sturmfels
2badff23a8
Fix references to non-existant package.json [trac#5615]. 2021-09-19 23:06:44 +10:00
Ben Sturmfels
612a21de6b
Remove extlib/flask-wtf - seems to be unused.
This code appears to be unused. I've checked by grepping for "html5" and also by
manually adding an `assert` in the file and running the test suite, just in case
something particularly weird is going on.
2021-04-23 13:36:37 +10:00
Ben Sturmfels
1f4ac7249f Say git submodule update --init - it's shorter. 2021-03-09 22:21:58 +11:00
Fernando Gutierrez
c2e93da0ce Reinstate audio spectrograms on Python 3 [#5610].
The `audiotospectrogram` module is a complete rewrite of the existing spectrogram
code with support for Python 3. This allows us to drop the bundled `freesound`
library and Python 2-only `audioprocessing` and `spectrogram` modules.

Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
2021-03-03 22:21:11 +11:00
Ben Sturmfels
1038aea822
Fix audio thumbnailing once and for all.
This change adds a Python 3-specific audio thumbnailer that side-steps the
bundled Python 2-only `audioprocessing` module. Instead of an audio spectrogram,
Python 3 users will get a static image.

This also allows me to remove my ineffective customisations to
`audioprocessing`, returning it to the upstream version as should always be the
case for vendored code in "extlib".
2020-04-01 16:52:05 +11:00
Ben Sturmfels
97dcfe3725
Work around lack of scikits.audiolab support on Python 3. 2019-09-12 19:59:11 +10:00
Boris Bobrov
45aa5360d6 Make freesound compatible with python3
Freesound is a lib used for audio processing. Unfortunately, it doesn't
work with python3.

It lives in extlib, so we don't own the code. But, since the patch is
pretty trivial, it was decided to merge it anyway and propose the fix to
upstream. Which was done in https://github.com/MTG/freesound/pull/700 .
Also, a bugreport was opened to use upstream version instead of our
local, when it gets merged, ticket 5403.
2016-01-22 01:36:27 +03:00
Boris Bobrov
525e851e17 Fix an occurence of print ... to print(...) 2016-01-21 23:19:31 +03:00
Christopher Allan Webber
0e780d1453 Back to pdf.js from git submodules... 2015-02-17 15:48:28 -06:00
Christopher Allan Webber
9ec05187f7 We're now installing through bower, so we can ignore package.json 2015-02-17 15:48:28 -06:00
Christopher Allan Webber
9252fc8484 Remove extlib deps moved into bower 2015-02-17 15:48:28 -06:00
Asheesh Laroia
5c0cd1bf11 wip 2015-02-17 15:47:39 -06:00
Asheesh Laroia
bb12604eae Add initial package.json file with two dependencies 2015-02-17 15:47:39 -06:00
Asheesh Laroia
1a7d401c32 Remove html5slider Javascript helper
This helper was originally added as a "polyfill"
(backward-compatibility shim) for Firefox version 23 and older, so
that <input type="range"> that audio.js uses could render nicely in
those versions of Firefox.

Chromium did not need this shim, and Firefox 23 (released on Aug 6,
2013) added support for this. Therefore, let us remove this
dependency. By current metrics at caniuse.com
<http://caniuse.com/#feat=input-range>, 88.14% of web users support
this attribute. Opera Mini and old versions of Internet Explorer (6-8)
are the only holdouts.

Note also that the html5slider.js is uninterested in adding this to
the npm package manager (or any package manager) repository
<https://github.com/fryn/html5slider/issues/5>, meaning that keeping
it in the mediagoblin extlib section would mean manual
maintenance/updating by the GNU MediaGoblin team.

This commit also removes GMG's use of the shim.
2015-02-13 15:55:16 -06:00
Jessica Tallon
1b22d51a5d Fixes navbar for sandyseventiesspeedboat 2014-09-05 16:00:06 +01:00
Jessica Tallon
59ff4790c9 Add JPope's sandy 70s speedboat theme 2014-07-20 09:51:04 +01:00
Christopher Allan Webber
052d3d985a Removing extlib submodule and switching it to being a package.
Much nicer!

This commit sponsored by Cameron Merkel.  Thanks Cameron!  Good luck
with yer projects!
2014-03-27 15:05:25 -05:00
Alon Levy
5e262d8bf5 make exif a submodule
Updates it to latest which includes a fix for a 100% hang on a jpg without any EXIF data:
https://www.dropbox.com/s/m5l185qxq9w5mzk/raspberry-pi-gpio-cheat-sheet.jpg

Signed-off-by: Alon Levy <alon@pobox.com>
2014-03-02 01:07:13 +02:00
jpope777
da77b8e913 initial skeleton push 2014-01-05 19:04:44 -06:00
Aditi Mittal
bca32cd474 Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin 2013-09-18 22:23:36 +05:30
Christopher Allan Webber
a7fc4ecf40 Updating the video.js that we use to avoid an XSS attack. Yikes! ;\
This commit sponsored by Daniel Valentine.  Thank you!
2013-09-15 09:46:01 -05:00
Aditi
e5c7e10f02 Create symbolic link for tinymce. 2013-08-10 16:14:04 +05:30
Alon Levy
d0e9f843e2 PIL: Support systems with Pillow and without
Fixes for systems with Pillow, but leaves a "try: except ImportError" to
support anything that doesn't have a PIL top level import.

Signed-off-by: Alon Levy <alon@pobox.com>
2013-04-17 12:54:54 +03:00
Christopher Allan Webber
24b1683b0d Switch to an apparently newer version of pdf.js per irc.mozilla.org #pdfjs recommendations 2013-04-16 16:09:57 -05: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
Alon Levy
3cadb4a6cd document submodule usage
Signed-off-by: Alon Levy <alon@pobox.com>
2013-04-14 22:46:44 +03:00
Christopher Allan Webber
0d656f44a1 Open Source -> Free Software from the borrowed extlib repositories
We're a GNU project, gotta get with the GNU world order ;)
2013-04-10 16:08:08 -05:00
Christopher Allan Webber
8db7eed3bc Removing html5shiv for not complying with its own licenses and racism
Issues of racism seem to have been resolved and removed from upstream,
but make having this as a dependency somewhat uncomfortable:
  https://github.com/aFarkas/html5shiv/issues/91

Regardless, at the time of writing the project doesn't comply with its
own license... it states to be dual licensed under MIT and GPLv2 but
distributes neither of these licenses with its source.
2013-02-26 17:50:11 -06:00
Christopher Allan Webber
443dcf867c Copying the license from the jquery repository rather than the generic MIT one.
Damned MIT and BSD licenses encouraging modification by every project
makes compliance annoying.
2013-02-26 17:17:27 -06:00
Odin Hørthe Omdal
6e60238b6c Bug #584, upgrade EXIF.py from master to read Nikon data 2012-12-26 18:42:37 +01:00
Sebastian Spaeth
ab7281fe24 Fix up symlinks in exif bump
Previous exif bump copied the newer version into
mediagoblin/tools/extlib/exif but not in extlib/exif. Fix this by
bumping extlib/exif and symlinking to tools/extlib/exif.

Do note that this is still the version fetched from http://sourceforge.net/projects/exif-py/
while the upstream maintainer seems to be active on:
https://github.com/ianare/exif-py

(The sf.net download is quite new though)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-12-26 10:26:06 +01:00
Sebastian Spaeth
565d01a09a Bump bundled video.js to v3.2.3 (#512)
There is nothing inherently wrong with the currently bundled version,
but the last one was uploaded in March 2012 and there have been
upstream releases since. So bump to the latest available release 3.2.3.

Might help with the reported issue 512 of an unresponsive video player.

Do note that the Flash fallback option is removed. If we decide
this should be added it is easy to add it back.

We still use our own customized theme.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-12-25 19:16:03 +01:00
Christopher Allan Webber
78d932e792 Moving thingiview.js into extlib/ 2012-12-03 14:57:52 -06:00
Joar Wandborg
0e21b2342f Added flask-wtf html5 fields to extlib 2012-09-21 13:16:24 +02:00
Joar Wandborg
1d83cf8a81 Added html5slider to support range inputs in Firefox 2012-04-18 12:06:10 +02:00
Joar Wandborg
352a180765 Changed audio.* Image* imports
so that they no longer import from PIL explicitly.
This is due to explicit PIL.Image* imports failing
on a Ubuntu machine within virtualenv.

PIL is a mystery I have yet to find the energy to unravel.

The 'implicit' approach works both for the affected
machine and my local machine and I've seen it more often
out in the wild, so I'm assuming it is the right way.
2012-03-27 23:43:15 +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
Sacha De'Angeli
560e22e7d2 adding the video.js wrapper 2012-03-12 19:44:55 -05: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
Will Kahn-Greene
7f4ebeed76 Fix copyright statements; add LICENSE for EXIF.py 2012-02-08 10:47:08 -05:00
Joar Wandborg
184dbcdacc Adding previously erroneously gitignored extlib/leaflet/{lib,dist,build}/ files 2012-01-27 01:55:50 +01:00
Joar Wandborg
9bf7563d4c Installed EXIF.py in extlibs/ 2012-01-25 23:42:04 +01:00
Joar Wandborg
c5ba5b0456 Installed leaflet in extlib 2012-01-25 23:42:04 +01:00
Jef van Schendel
7945cd21ba * Rename mediagoblin_header, mediagoblin_body, mediagoblin_footer, mediagoblin_header_right, mediagoblin_logo
* Add html5shiv for older browsers
* Small size fix (940px instead of 960pgx)
2012-01-05 23:36:16 +01:00
Jef van Schendel
d2fce291b5 Fix merge conflicts 2012-01-05 21:42:56 +01:00
Joar Wandborg
a246ccca69 ASCII media type support & fix a bug in file submission error handling
* Added ASCII media processing
* Added ASCII media display
* Added ASCII media type

Rebased from Joar Wandborg's ascii art branch (squashed to remove the
commits borrowing code of dubious license)

Fixed a bug in file submission error handling:
 - Moved file-extension condition out of loop (what did it do there?)
 - Updated file submission tests
 - Changed error handling in file submission, should now report more
   than absolutely necessary.
2011-12-31 10:32:52 -06:00
Jef van Schendel
4fe9c9b99f Move reset.css to extlib and symlink it 2011-12-18 01:41:01 +01:00
Jef van Schendel
436b13bb3e Remove 960.gs stylesheets, add Eric Meyer's reset.css 2011-12-18 01:31:06 +01:00
Jef van Schendel
92417fc535 First push with jQuery library 2011-12-02 21:17:55 +01:00