Skip to content

Instantly share code, notes, and snippets.

View fortunto2's full-sized avatar

Rustam Salavatov fortunto2

View GitHub Profile
@Zulko
Zulko / moviepy_time_accuracy.py
Created November 13, 2014 15:55
Checking MoviePy's time accuracy
"""
This script checks the time accuracy of MoviePy.
First, a one-hour video is generated, where the frame
at time t displays t (in seconds, e.g. '1200.50') in white
on a black baground.
Then we ask MoviePy to open this video file, fetch
different times (1200.5, 850.2, 2000.3, 150.25, 150.25),
extract the corresponding frame as a JPEG image file, and
@dreness
dreness / plotframetimes.py
Last active December 26, 2024 13:54
Graphical and statistical analysis of frame rate in a video
#!/usr/bin/env python
# dre at mac dot com
# Graphical and statistical analysis of frame rate in a video
# Requires ffmpeg and gnuplot
from sys import platform
from subprocess import check_output, DEVNULL
from os import path
import json
@Zulko
Zulko / rapunzel_moviepy.py
Last active May 1, 2023 21:22
Tangled + MoviePy
"""
This creates the following GIF, where the text appears to be "embedded"
in the video and "disappears" behind rapunzel.
http://i.imgur.com/gxEHfLX.gif
"""
from moviepy.editor import *
import numpy as np
import skimage.morphology as skm
@Zulko
Zulko / param_curves.py
Last active December 15, 2020 17:33
Parametric curve animation with Python/Matplotlib/MoviePy
# IMPORTS: THIS SCRIPT REQUIRES THE PACKAGES PYLAB AND MOVIEPY
# It produces this gif: http://i.imgur.com/LbU55oK.gif
from pylab import *
import moviepy.editor as mp
from moviepy.video.io.bindings import mplfig_to_npimage
# PARAMETERS OF THE CURVE AND THE GIF
@marcuslilja
marcuslilja / ubuntu-server-setup-16.04.md
Last active January 30, 2020 23:28
Server setup for Ubuntu 16.04 on Digital Ocean

Server setup for Ubuntu 16.04 on Digital Ocean

The setup installs the following software:

  • Nginx
  • MySQL
  • PHP
  • Node
  • Composer
@natronics
natronics / slitscan.sh
Created June 12, 2015 05:45
Oneliner to make a video slitscan
#!/usr/bin/env sh
ffmpeg -i $1 -vf "transpose=1","crop=2" -an -f image2pipe -vcodec ppm - | montage ppm:- -tile x1 -mode concatenate - | convert - -flop scanimage.jpg
@baraldilorenzo
baraldilorenzo / readme.md
Last active August 20, 2023 09:39
Deep Scene

A Deep Siamese Network for Scene Detection

This is a model from the paper:

A Deep Siamese Network for Scene Detection in Broadcast Videos
Lorenzo Baraldi, Costantino Grana, Rita Cucchiara
Proceedings of the 23rd ACM International Conference on Multimedia, 2015

Please cite the paper if you use the models.

@baraldilorenzo
baraldilorenzo / readme.md
Last active January 14, 2025 11:07
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

@pyr-revs
pyr-revs / launch-chainer_via_aws_lambda.js
Created October 6, 2015 09:15
Launch Chainer via AWS Lambda
Launch Chainer via AWS Lambda
console.log('Launch-Chainer: Start');
var ec2Region = 'us-east-1';
var s3Region = 'ap-northeast-1';
var snsRegion = 'ap-northeast-1';
var s3Bucket = 'mybucket';
@edouard-lopez
edouard-lopez / slides.md
Last active January 15, 2018 22:38
IPFS: InterPlanetary File System presentation http://slides.com/edouard-lopez/ipfs