Created
December 2, 2013 22:05
-
-
Save jdiez17/7759922 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mediacrush.processing.invocations import * | |
from mediacrush.processing.processor import Processor | |
def validate_gif(file): | |
if not ffmpeg_valid_gif(file): | |
raise ProcessingException("invalid file") | |
class GIFProcessor(Processor): | |
sync = [validate_gif, mp4, webm, ogv] | |
async = [png_frame] | |
time = 300 | |
def extra(redis_file): | |
redis_file.resolution = 1234 | |
redis_file.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment