thumbnailify, but it's not going great
This commit is contained in:
parent
46538aa259
commit
dc36c90901
@ -1,7 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
# NO SPACES, it's haaaard T_T
|
||||||
|
|
||||||
if [ ! -f "$@" ]; then
|
if [ ! -f "$@" ]; then
|
||||||
echo "file to thumbnailify plz"
|
echo "file to thumbnailify plz"
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fullfilename=$(basename -- "$@")
|
fullfilename=$(basename -- "$@")
|
||||||
@ -23,7 +27,7 @@ fi
|
|||||||
echo "file testframe.mp4" > thumbnailism.txt
|
echo "file testframe.mp4" > thumbnailism.txt
|
||||||
echo "file $fullfilename" >> thumbnailism.txt
|
echo "file $fullfilename" >> thumbnailism.txt
|
||||||
|
|
||||||
ffmpeg -i "$fullfilename" -ss 1.5 -to 1.51666 testframe.mp4
|
ffmpeg -i "$fullfilename" -ss 3 -t 0.01666 testframe.mp4
|
||||||
ffmpeg -f concat -i thumbnailism.txt -c copy output.mp4
|
ffmpeg -f concat -i thumbnailism.txt -c copy output.mp4
|
||||||
|
|
||||||
mv "$fullfilename" "$filename""_thumbless.$extension"
|
mv "$fullfilename" "$filename""_thumbless.$extension"
|
||||||
|
Loading…
Reference in New Issue
Block a user