-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8285c2
commit f19d1a3
Showing
7 changed files
with
8,526 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
assets/* | ||
.DS_Store |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |