-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxsmooth
executable file
·92 lines (80 loc) · 2.95 KB
/
xsmooth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash -x
if [ "$1" = "" ]; then
cat << EOF
Missing parameter 1:
arg1 = <full path name> (required)
arg2 = "-d" debug on (optional)
EOF
exit
fi
DEBUG=""
if [ "$2" == "-d" ]; then
DEBUG=$2
fi
W=""
if [ "$3" == "W" ]; then
W=$3
fi
# xsmooth fullpath.mp4 -d W
SAVE="TRUE"
# -Q, --sequence select which processes to deployand in what order, default = 'SISCFM'
# -R, --cropto crop to <wwidth>@<ratio> Ex: 512@16:9
# -X, --xframes add x interpolated frames
# -T, --tfilter apply toss filter, values are 0.0 to 1.0, default = 0.5
# -V, --iversion choose which version if interpolation. Opensa are '1' or '2', default is 1
# '-V 1' uses JPG format (default)
# '-V 2' uses PNG format (and takes up massively more space)
# -K, --keep Keep ever nth frame when tossing
# -Y, --fps Extraction FPS
# -m, --usetmpdir tmpdir to use
# -A, --AVI use lossless AVI format
# -Z, --compress convert AVI to MP4
# -W, --rotcolor rotate colors
makeauto.py -v $1 -Q E${W}TIS -V 2 -K 2 -X 8 ${DEBUG} -A
if [ "${SAVE}" = "TRUE" ]
then
cp /fstmp/stitched.avi /fstmp/stitched_K2X8.avi
fi
#makeauto.py -v $1 -Q ETIS -V 2 -K 2 -X 8 ${DEBUG} -A
makeauto.py -v /fstmp/stitched.avi -Q ETIS -V 2 -K 3 -X 7 ${DEBUG} -A
if [ "${SAVE}" = "TRUE" ]
then
cp /fstmp/stitched.avi /fstmp/stitched_K3X7.avi
fi
makeauto.py -v /fstmp/stitched.avi -Q ETIS -V 2 -K 4 -X 6 ${DEBUG} -A
if [ "${SAVE}" = "TRUE" ]
then
cp /fstmp/stitched.avi /fstmp/stitched_K4X6.avi
fi
makeauto.py -v /fstmp/stitched.avi -Q ETIS -V 2 -K 5 -X 5 ${DEBUG} -A
if [ "${SAVE}" = "TRUE" ]
then
cp /fstmp/stitched.avi /fstmp/stitched_K5X5.avi
fi
makeauto.py -v /fstmp/stitched.avi -Q ETIS -V 2 -K 6 -X 4 ${DEBUG} -A
if [ "${SAVE}" = "TRUE" ]
then
cp /fstmp/stitched.avi /fstmp/stitched_K6X4.avi
fi
makeauto.py -v /fstmp/stitched.avi -Q ETIS -V 2 -K 7 -X 3 ${DEBUG} -A
if [ "${SAVE}" = "TRUE" ]
then
cp /fstmp/stitched.avi /fstmp/stitched_K2X3.avi
fi
makeauto.py -v /fstmp/stitched.avi -Q ETIS -V 2 -K 8 -X 2 ${DEBUG} -A
if [ "${SAVE}" = "TRUE" ]
then
cp /fstmp/stitched.avi /fstmp/stitched_K8X2.avi
fi
makeauto.py -v /fstmp/stitched.avi -Q EIS -V 2 -X 6 ${DEBUG} -A
if [ "${SAVE}" = "TRUE" ]
then
cp /fstmp/stitched.avi /fstmp/stitched_X6.avi
fi
ffmpegC -y -loglevel warning -hwaccel_output_format cuda -i /fstmp/stitched.avi -vcodec hevc_nvenc /fstmp/stitched.mp4
#ffmpeg -loglevel warning -i /tmp/stitched.mp4 -r 15/1 /tmp/images/%05d.png
#toss.py -v /tmp/images -k 4
#mv /tmp/filtered/* /tmp/images/
#/home/jw/src/rife/interpV2.py --ext png --input /tmp/images/ --output /tmp/frames/ --buffer 0 --multi 5 --change 0.01 --model /home/jw/src/rife/rife/flownet-v46.pkl
#ffmpeg -y -loglevel warning -framerate 15 -pattern_type glob -i /tmp/frames/*.png -c:v libx264 -pix_fmt yuv420p /tmp/out_1688765397.mp4
#cp /tmp/out_1688765397.mp4 /tmp/stitched.mp4