-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconvert_script.fish
56 lines (46 loc) · 1.12 KB
/
convert_script.fish
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
# Convert from
for f in *.png;
echo $f;
convert -flip $f "conv_$f" && rm $f && mv "conv_$f" $f;
end
# Delete the first frame if it exists
[ -f "00000.png" ] && rm "00000.png";
# Make a movie
ffmpeg -y -framerate 60 \
# -start_number 1 \
-i %05d.png \
-vcodec libx264 -r 60 -pix_fmt yuv420p \
-color_range 2 -vf scale=in_range=full:out_range=full \
-movflags +write_colr \
# -frames:v 1 \
"./output.mp4"
# Also make a gif
# Take every other
convert -delay 3 -flip -verbose (ls -1 *{0,2,4,6,8}.png) "output.gif"
# gifsicle -O1 --lossy=80 output.gif "#0-1200" -o web-output.gif
exit 0
# convert -verbose -delay 6 -quality 95 *.png "output.gif";
ffmpeg -y -framerate 60 -start_number 1 -i %05d.bmp \
-vcodec libx264 -r 60 -pix_fmt yuv420p \
-color_range 2 -vf scale=in_range=full:out_range=full \
-movflags +write_colr \
# -frames:v 1 \
"./output.mp4"
ffmpeg -y -framerate 60 \
# -start_number 1 \
-f image2 \
-i %05d.png \
-r 60 \
-c:v libx264rgb \
-crf 1 \
# -frames:v 1 \
"./output.mp4"
ffmpeg -y -framerate 60 \
# -start_number 1 \
# -f image2 \
-i %05d.png \
-r 60 \
-c:v libx264rgb \
# -crf 1 \
# -frames:v 1 \
"./output.mkv"