return position of thumbnail in video
- youtube-dl
- ffmpeg
npm install
./bin/thumbseek <videoUrl>
npm run cleanup
youtube-dl --write-thumbnail -f 160 <video_url> -o video.mp4
ffmpeg -i video.jpg -vf scale=256:144 thumb.jpg
ffmpeg -i video.mp4 -r 2 "./frames/thumb_%05d.jpg"
try a different
threshold
for better results
pixelmatch(thumb.data, frame.data, null, width, height, {threshold: 0.1});