Mark
/
celeste-ai
Archived
1
0
Fork 0

Updated paths

master
Mark 2023-02-18 19:50:31 -08:00
parent 16cbe5f23e
commit 36c5fcac7c
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 13 additions and 7 deletions

View File

@ -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