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