Add files via upload

This commit is contained in:
Sam Sneed 2024-06-15 20:38:40 +00:00 committed by GitHub
parent 6046aec61a
commit a07698278c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
./scripter.sh "$1"
./keywords2images.sh
espeak -f script.txt -w voice.wav
./renderer.sh
./renderer.sh "$1"

View file

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

View file

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