Skip to content

Instantly share code, notes, and snippets.

@jdiez17
Created December 2, 2013 22:05
Show Gist options
  • Save jdiez17/7759922 to your computer and use it in GitHub Desktop.
Save jdiez17/7759922 to your computer and use it in GitHub Desktop.
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