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
# single video file | |
./screenshotter.sh video.mp4 250 | |
# directory of files | |
find . -type f -maxdepth 1 -printf '"%f"\n' -exec screenshots.sh {} 250 \; |
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
import Colour from './Colour'; | |
import Resample from './Resample'; | |
/** | |
* Average hash for images | |
* | |
* @author John Noel <[email protected]> | |
* @see http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html | |
* @see https://github.com/jenssegers/imagehash/blob/master/src/Implementations/AverageHash.php | |
*/ |
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
<?php | |
$videoFiles = array(); | |
if ($_SERVER['argc'] <= 1) { | |
die('No files passed in command line'); | |
} | |
array_shift($_SERVER['argv']); | |
$videoFiles = $_SERVER['argv']; |
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
<?php | |
define('DS', DIRECTORY_SEPARATOR); | |
$ssCount = 250; | |
$cmdMplayer = "e:\downloads\mplayer\mplayer\mplayer.exe"; | |
$argsInfo = " -vo null -nosound -frames 0 -identify"; | |
$argsCapture = " -quiet -nosound -vo jpeg:quality=90 -vf framestep=i{framestep} -fps 360 -lavdopts threads=4"; | |
if($_SERVER['argc'] > 1) | |
{ |