Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
correa-brian committed May 26, 2023
1 parent e8285c2 commit f19d1a3
Show file tree
Hide file tree
Showing 7 changed files with 8,526 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
assets/*
.DS_Store
2 changes: 0 additions & 2 deletions assets/.gitignore

This file was deleted.

2,842 changes: 2,842 additions & 0 deletions ffmpeg-20230526-112606.log

Large diffs are not rendered by default.

2,842 changes: 2,842 additions & 0 deletions ffmpeg-20230526-112703.log

Large diffs are not rendered by default.

2,815 changes: 2,815 additions & 0 deletions ffmpeg-20230526-112716.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "$#" -lt 2 ]; then
exit 1
fi

# Extract the command name and remove the file extension if present
# Extract the command name
command_name="$1"
command_script="./library/${command_name}.sh"

Expand Down
24 changes: 24 additions & 0 deletions library/video-to-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Check if the script is called with the correct number of arguments
if [ "$#" -eq 0 ]; then
echo "Error: No filenames provided."
echo "Usage: ./script.sh <filename1>"
exit 1
fi

if [ "$#" -lt 1 ]; then
echo "Error: Insufficient number of arguments for filenames. Need at least one file."
echo "Usage: ./script.sh <filename1>"
exit 1
fi

# Store the filenames
arguments=("$@")

# Extract filenames
video_file="${arguments[0]}"
fps="${arguments[1]:-1}"

echo "$fps"
ffmpeg -report -i "$video_file" -vf fps=1/$fps "${video_file%.*}"_%d.png

0 comments on commit f19d1a3

Please sign in to comment.