DPlayer progress bar thumbnail generation script

DPlayer-thumbnails batch generation script

project address:https://github.com/MoePlayer/DPlayer-thumbnails

Make sure NPM is installed

-thumbnails
Generate thumbnails for DPlayer

Install
It may be a bit slow after entering the command and waiting for the text to be read.

$ npm install -g dplayer-thumbnails
Usage
Command structure:
Command parameters (output) Thumbnail path parameters (quality, the default is 60) Video path

$ dplayer-thumbnails --help
$ dplayer-thumbnails -o ./thumbnails.jpg -q 60 demo.mp4
script (batch generation script)
Copy the following code and save it as thumbs.sh, then use chmod +x thumbs.sh to change the permissions and it will be ready to use.
Conditions of Use:

The script and file are in the same folder
Video file names are purely numeric., for example 01.MP4 02.mp4, if less than 10, you need to add 0
Have read and write permissions on the directory
Instructions:
./thumbs 1 12: Script path parameter 1 (starting number) Parameter 2 (ending number)

#!/bin/bash for i in `seq $1 $2` do if [ "$i" -lt "10" ];then dplayer-thumbnails -o ./0$i.jpg -q 60 ./0$i.mp4 echo "Video " $i".mp4 Done" echo "10! " fi done

Used in DPlayer

Generated for DPlayer, the video can have the thumbnails parameter when loading!

score

Leave a Reply

Your email address will not be published. Required fields are marked *