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
''' | |
evenly distributes n amount of numbers between x and y. | |
x and y are included in n's total | |
''' | |
def evenly_distribute(start, end, n): | |
step = (end - start) / (n - 1) | |
frames = [start + step * i for i in range(n)] | |
return (frames) |
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
# Meant to allow you to grab and save 1 minute videos at any given moment while watching something on Plex. | |
# This also saves it to Dropbox. It needs to be run locally. | |
# This has a few dependencies. Needs moviepy, ffmpeg, anddddddd I think that's it. | |
import os | |
import urllib | |
import urllib2 | |
import xml.etree.ElementTree as etree | |
from moviepy.editor import * |