Add files via upload
This commit is contained in:
parent
6046aec61a
commit
a07698278c
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
./scripter.sh "$1"
|
./scripter.sh "$1"
|
||||||
./keywords2images.sh
|
./keywords2images.sh
|
||||||
espeak -f script.txt -w voice.wav
|
espeak -f script.txt -w voice.wav
|
||||||
./renderer.sh
|
./renderer.sh "$1"
|
||||||
|
|
|
@ -7,5 +7,5 @@ duration=$(echo "$voice_length / $total_frames" | bc)
|
||||||
fps=$(echo "scale=2; $total_frames / $voice_length" | bc)
|
fps=$(echo "scale=2; $total_frames / $voice_length" | bc)
|
||||||
|
|
||||||
# Use the corrected duration in the FFmpeg command
|
# 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"
|
||||||
|
|
||||||
|
|
|
@ -7,5 +7,5 @@ duration=$(echo "$voice_length / $total_frames" | bc)
|
||||||
fps=$(echo "scale=2; $total_frames / $voice_length" | bc)
|
fps=$(echo "scale=2; $total_frames / $voice_length" | bc)
|
||||||
|
|
||||||
# Use the corrected duration in the FFmpeg command
|
# 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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue