Updated paths
parent
16cbe5f23e
commit
36c5fcac7c
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SC_ROOT="screenshots"
|
# Where screenshots are saved
|
||||||
OUTPUT_DIR="out/video"
|
SC_ROOT="model_data/screenshots"
|
||||||
|
|
||||||
|
# WILL BE DELETED
|
||||||
|
mkdir out
|
||||||
|
OUTPUT_DIR="out/video_output"
|
||||||
|
|
||||||
render_dir () {
|
render_dir () {
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
|
@ -14,7 +18,7 @@ render_dir () {
|
||||||
$OUTPUT_DIR/${1##*/}.mp4
|
$OUTPUT_DIR/${1##*/}.mp4
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p $OUTPUT_DIR
|
mkdir $OUTPUT_DIR
|
||||||
|
|
||||||
echo "Making episode files..."
|
echo "Making episode files..."
|
||||||
for D in $SC_ROOT/*; do
|
for D in $SC_ROOT/*; do
|
||||||
|
@ -28,7 +32,7 @@ echo "Done."
|
||||||
|
|
||||||
# Generate video for each run
|
# Generate video for each run
|
||||||
for f in $OUTPUT_DIR/*.mp4; do
|
for f in $OUTPUT_DIR/*.mp4; do
|
||||||
echo file \'$f\' >> merge_list;
|
echo file \'$f\' >> $OUTPUT_DIR/merge_list;
|
||||||
done
|
done
|
||||||
|
|
||||||
# Merge videos
|
# Merge videos
|
||||||
|
@ -40,13 +44,15 @@ ffmpeg \
|
||||||
-c copy \
|
-c copy \
|
||||||
$OUTPUT_DIR/00-all.mp4
|
$OUTPUT_DIR/00-all.mp4
|
||||||
|
|
||||||
rm merge_list
|
rm $OUTPUT_DIR/merge_list
|
||||||
|
|
||||||
# Make accelerated video
|
# Make accelerated video
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
|
-loglevel quiet -stats -y \
|
||||||
-i $OUTPUT_DIR/00-all.mp4 -y \
|
-i $OUTPUT_DIR/00-all.mp4 -y \
|
||||||
-r 60 \
|
-r 60 \
|
||||||
-filter:v "setpts=0.125*PTS" \
|
-filter:v "setpts=0.125*PTS" \
|
||||||
8x.mkv
|
8x.mp4
|
||||||
|
|
||||||
|
|
||||||
|
echo "Cleaning up..."
|
||||||
|
rm -dr $OUTPUT_DIR
|
||||||
|
|
Reference in New Issue