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
''' Get video attributes and thumbnail ''' | |
import tempfile | |
from subprocess import getstatusoutput | |
def get_video_attributes(file: str): | |
''' Returns video duration, width, height ''' | |
class FFprobeAttributesError(Exception): |
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
ffmpeg -i video.mp4 -r 1 img/frames_%04d.png | |
montage -tile 34x1 -geometry 640x960 *.png background.jpg |