Giter Club home page Giter Club logo

video-thumbnail-generator's People

Contributors

bradleyfalzon avatar davidsonfellipe avatar flavioribeiro avatar leeaandrob avatar phloxic avatar s0lesurviv0r avatar vphilipnyc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

video-thumbnail-generator's Issues

ImportError: No module named docopt

$pip2 install docopt
Requirement already satisfied: docopt in /usr/local/lib/python2.7/site-packages
$ ./generator
Traceback (most recent call last):
File "./generator", line 21, in
from docopt import docopt
ImportError: No module named docopt

How to force output sprite image to only have one single row and no columns

Hi, I have a php script that parses the sprite image I create with your awesome script... it is focused to generate image coordinates based on a single row of sprite images.

Is it possible for force your script to do that without knowing or calculating the number of total frames from the source video file?

Thanks

Do we need freetype2?

In build it makes a symlink of /usr/local/include/freetype2, but I don't have this file.

Also, since it creates symlinks, it'd be nice to provide a way to remove them.

Error occured with file

Running Python 3.8.10
Installation went ok, trying to generate thumbnails with ./generator BigBuckBunny.mp4 30 320 180 4 ../video/sprites/test.png I get

[BigBuckBunny.mp4] Extracting frame 1/19
[BigBuckBunny.mp4] Error occurred with file

off by 1 total_frames reported

generator output always ends like this:

[sample.mp4] Extracting frame 100/101
[sample.jpg] Saved

The actual generated frame count is correct. Easily fixed by correcting the print loop.

Handle sorting limit of generated frames

Currently there is a hidden hardcoded limit of 100000 (from 00000 to 99999) up to which sorting of the generated temporary png files works via zero padding:
https://github.com/flavioribeiro/video-thumbnail-generator/blob/master/generator#L142

The script should handle the cases where this breaks. 2 alternatives come to mind:

  1. abort if total frame count exceeds the limit
  2. make amount of zero padding of the png filenames dependent on the calculated total of frames

With the second alternative one could limit the amount of allowed frames in a transparent and configurable fashion via a max option. Which arguably would make sense anyway, because loading a huge sprite could interfere with video playback over slow connections.

Option to allow overwrite

Currently the CLI will error out if the file already exists, would be great if we could pass a flag to overwrite. Useful for development purposes.

fatal: Could not read from remote repository.

git clone [email protected]:flavioribeiro/video-thumbnail-generator.git

Cloning into 'video-thumbnail-generator'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Build Error: Could not find a version that satisfies the requirement PIL

I follow the instructions:

chmod a+x build && ./build

it show me the following error:

DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Collecting docopt==0.6.1 (from -r requirements.txt (line 1))
  Using cached docopt-0.6.1.tar.gz
Collecting moviepy (from -r requirements.txt (line 2))
  Using cached moviepy-0.2.3.2-py2.py3-none-any.whl
Collecting PIL (from -r requirements.txt (line 5))
  Could not find a version that satisfies the requirement PIL (from -r requirements.txt (line 5)) (from versions: )

I am using python 2.7 on Mac

Temporary directory not cleaned up (regression)

With recent changes shutil now tries (and fails silently) to remove a tree with path generated here: https://github.com/flavioribeiro/video-thumbnail-generator/blob/master/generator#L195 which is actually the so-called 'prefix' of the temporary png filenames.

shutil instead should try to remove TMP_FRAMES_PATH presumably.

However I am not sure how this fares with the new directory processing feature.
I also don't know in which scenario the TMP_FRAMES_PATH is recreated: https://github.com/flavioribeiro/video-thumbnail-generator/blob/master/generator#L193-L194 (instead of creating a new temporary directory safely).

SyntaxError on script run

HI. I am getting a syntaxerror when running the script:

[desarrollo-01@centos-d01 video-thumbnail-generator]$ ./generator --help File "./generator", line 42 print "Extracting", int(videoFileClip.duration / interval), "frames" ^ SyntaxError: invalid syntax
I am using python 3.6 on centos 8. pip dependence's install looks normal.

Thanks you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.