alpha
Login
or
Join now
xcc.es
/
scripts
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/mrgnw/scripts.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
video previews
author
Morgan
date
2 years ago
(Oct 21, 2024, 12:27 AM +0200)
commit
fa3a03a6
fa3a03a66976ed264a0b6e66f3c00fc39818f209
parent
76a32b44
76a32b4421a7870ecf66cdf57563cae582722f62
+14
2 changed files
Expand all
Collapse all
Unified
Split
vprev
vprevs
+3
vprev
View file
Reviewed
···
1
1
+
#!/usr/bin/env zsh
2
2
+
3
3
+
ffmpeg -i "$1" -vf "scale=iw*min(1920/iw\,1080/ih):ih*min(1920/iw\,1080/ih),fps=5" -t 30 -c:v hevc_videotoolbox -b:v 1M -tag:v hvc1 -y "$(basename "$1").preview.mp4"
+11
vprevs
View file
Reviewed
···
1
1
+
#!/usr/bin/env zsh
2
2
+
setopt localoptions nocaseglob
3
3
+
4
4
+
extensions=(
5
5
+
"*.mp4" "*.mov" "*.avi" "*.mkv"
6
6
+
)
7
7
+
8
8
+
find . -maxdepth 1 -type f \( \
9
9
+
$(printf -- "-iname %s -o " "${extensions[@]}" | sed 's/ -o $//') \
10
10
+
\) -print0 | \
11
11
+
parallel --bar -0 -j "$(sysctl -n hw.ncpu)" vprev "{}"