-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathffmpeg-scripts.bash
More file actions
executable file
·29 lines (21 loc) · 921 Bytes
/
ffmpeg-scripts.bash
File metadata and controls
executable file
·29 lines (21 loc) · 921 Bytes
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
#!/usr/bin/env bash
rm -rf output frames output_10x10.mp4 badapple.mp4
ffmpeg -i badapple-orig.mp4 -t 45 -c copy badapple.mp4
mkdir frames
mkdir output
ffmpeg -i badapple.mp4 -vf "scale=10:10" -an output_10x10.mp4
ffmpeg -i output_10x10.mp4 -vf fps=20 -an frames/out%d.png
bun index.ts frames
# TOP LEFT
#ffmpeg -i output_10x10.mp4 -vf "crop=iw/2:ih/2:0:0" top_left.mp4
#ffmpeg -i top_left.mp4 -vf fps=20 frames_tl/out%d.png
# TOP RIGHT
#ffmpeg -i output_10x10.mp4 -vf "crop=iw/2:ih/2:iw/2:0" top_right.mp4
#ffmpeg -i top_right.mp4 -vf fps=20 frames_tr/out%d.png
# BOTTOM LEFT
#ffmpeg -i output_10x10.mp4 -vf "crop=iw/2:ih/2:0:ih/2" bottom_left.mp4
#ffmpeg -i bottom_left.mp4 -vf fps=20 frames_bl/out%d.png
# BOTTOM RIGHT
#ffmpeg -i output_10x10.mp4 -vf "crop=iw/2:ih/2:iw/2:ih/2" bottom_right.mp4
#ffmpeg -i bottom_right.mp4 -vf fps=20 frames_br/out%d.png
#ffmpeg -i output_10x10.mp4 -vf fps=15 frames/out%d.png