diff --git a/make_video.sh b/make_video.sh index 559db03..7eb0e4c 100644 --- a/make_video.sh +++ b/make_video.sh @@ -1,4 +1,4 @@ ./scripter.sh "$1" ./keywords2images.sh espeak -f script.txt -w voice.wav -./renderer.sh +./renderer.sh "$1" diff --git a/renderer.sh b/renderer.sh index fbe1fa7..2cb2b54 100644 --- a/renderer.sh +++ b/renderer.sh @@ -7,5 +7,5 @@ duration=$(echo "$voice_length / $total_frames" | bc) fps=$(echo "scale=2; $total_frames / $voice_length" | bc) # Use the corrected duration in the FFmpeg command -ffmpeg -r $fps -f concat -safe 0 -i concat.txt -i voice.wav -c:v libx264 -c:a aac -vf "setpts=PTS/1" -pix_fmt yuv420p -shortest output_video.mp4 +ffmpeg -r $fps -f concat -safe 0 -i concat.txt -i voice.wav -c:v libx264 -c:a aac -vf "setpts=PTS/1" -pix_fmt yuv420p -shortest "$1.mp4" diff --git a/renderer_personal.sh b/renderer_personal.sh index 0bf716d..02b012a 100644 --- a/renderer_personal.sh +++ b/renderer_personal.sh @@ -7,5 +7,5 @@ duration=$(echo "$voice_length / $total_frames" | bc) fps=$(echo "scale=2; $total_frames / $voice_length" | bc) # Use the corrected duration in the FFmpeg command -ffmpeg -r $fps -f concat -safe 0 -i concat.txt -i voice.wav -c:v libx264 -c:a aac -vf "setpts=PTS/1" -pix_fmt yuv420p -shortest mv output_video.mp4 ~/yt-drive/"$1.mp4" +ffmpeg -r $fps -f concat -safe 0 -i concat.txt -i voice.wav -c:v libx264 -c:a aac -vf "setpts=PTS/1" -pix_fmt yuv420p -shortest ~/yt-drive/"$1.mp4"