Excellent software and practical tutorials
DPlayer-thumbnails batch generation script
Project address:https://github.com/MoePlayer/DPlayer-thumbnails
Make sure NPM is installed
DPlayer-thumbnails
Generate thumbnails for DPlayer
Install
After entering the command, it may be a bit slow to wait for the bar to be read.
$ npm install -g dplayer-thumbnails
Usage
Command structure:
Command parameters (output) Thumbnail path parameters (quality, default 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 you can use it.
Conditions of use:
The script is in the same folder as the file
The video file name is pure digital.mp4, for example, 01.mp4 02.mp4, and 0 is required if the file is less than 10.
Have read and write permissions on the directory
Directions:
./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
Use in DPlayer
Generated for DPlayerProgress bar thumbnail, when loading the video, just add the thumbnails parameter!