Add files via upload
This commit is contained in:
parent
c951691b1c
commit
52565748a3
3 changed files with 58 additions and 0 deletions
|
@ -3,3 +3,4 @@ TITLE=$(ollama run "sparksammy/samantha-v3-uncensored" "create exactly 1 topic f
|
||||||
./keywords2images.sh
|
./keywords2images.sh
|
||||||
espeak -f script.txt -w voice.wav
|
espeak -f script.txt -w voice.wav
|
||||||
./renderer_personal.sh "$TITLE"
|
./renderer_personal.sh "$TITLE"
|
||||||
|
./renamer_personal.sh
|
||||||
|
|
30
renamer_personal.sh
Normal file
30
renamer_personal.sh
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
# Directory path (replace with your actual directory)
|
||||||
|
directory="/home/sbaka/yt-drive"
|
||||||
|
|
||||||
|
|
||||||
|
cd $directory
|
||||||
|
# Check if there are any .mp4 files in the directory
|
||||||
|
if [[ ! *.mp4 ]]; then
|
||||||
|
echo "No .mp4 files found in $directory"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Loop through .mp4 files with parameter expansion
|
||||||
|
for file in *.mp4; do
|
||||||
|
# Get base filename and remove extension in one step
|
||||||
|
base_filename=${file%.*}
|
||||||
|
|
||||||
|
# Limit base filename to 17 characters (use parameter expansion)
|
||||||
|
trimmed_filename=${base_filename[1,47]}
|
||||||
|
|
||||||
|
# Create new filename
|
||||||
|
new_filename="${trimmed_filename}.mp4"
|
||||||
|
|
||||||
|
# Rename the file (optional, uncomment to rename files)
|
||||||
|
mv "$file" "$directory/$new_filename"
|
||||||
|
|
||||||
|
# Print the new filename (optional)
|
||||||
|
echo "$new_filename"
|
||||||
|
done
|
27
upload-50-personal.sh
Normal file
27
upload-50-personal.sh
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Generate 50 videos
|
||||||
|
for ((i = 1; i <= 50; i++)); do
|
||||||
|
# Replace 'make_video_personal.sh' with the name of your script and any arguments it may need
|
||||||
|
./make_video_personal.sh
|
||||||
|
done
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Directory path (replace with your actual directory)
|
||||||
|
directory="~/yt-drive"
|
||||||
|
|
||||||
|
# Iterate over files in the directory
|
||||||
|
for file in "$directory"/*; do
|
||||||
|
# Get the base filename
|
||||||
|
filename=$(basename "$file")
|
||||||
|
|
||||||
|
# Limit filename to 17 characters
|
||||||
|
trimmed_filename="${filename:0:17}"
|
||||||
|
|
||||||
|
# Add .mp4 extension
|
||||||
|
new_filename="${trimmed_filename}.mp4"
|
||||||
|
|
||||||
|
# Print the new filename (optional, you can remove this line if not needed)
|
||||||
|
echo "$new_filename"
|
||||||
|
done
|
Loading…
Reference in a new issue