Spaces:
Sleeping
Sleeping
yt-wsp.sh : improve usage instructions
Browse files- examples/yt-wsp.sh +18 -3
examples/yt-wsp.sh
CHANGED
|
@@ -2,7 +2,15 @@
|
|
| 2 |
|
| 3 |
# Small shell script to more easily automatically download and transcribe live stream VODs.
|
| 4 |
# This uses YT-DLP, ffmpeg and the CPP version of Whisper: https://github.com/ggerganov/whisper.cpp
|
| 5 |
-
# Use `./yt-wsp help` to print help info.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# MIT License
|
| 8 |
|
|
@@ -43,7 +51,7 @@ cleanup() {
|
|
| 43 |
}
|
| 44 |
|
| 45 |
print_help() {
|
| 46 |
-
echo "Usage: ./yt-wsp <video_url>"
|
| 47 |
echo "See configurable env variables in the script"
|
| 48 |
echo "This will produce an MP4 muxed file called res.mp4 in the working directory"
|
| 49 |
echo "Requirements: ffmpeg yt-dlp whisper"
|
|
@@ -65,7 +73,14 @@ check_requirements() {
|
|
| 65 |
if ! command -v "$WHISPER_EXECUTABLE" &>/dev/null; then
|
| 66 |
WHISPER_EXECUTABLE="./main"
|
| 67 |
if ! command -v "$WHISPER_EXECUTABLE" &>/dev/null; then
|
| 68 |
-
echo "Whisper is required (https://github.com/ggerganov/whisper.cpp)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
exit 1
|
| 70 |
fi
|
| 71 |
fi
|
|
|
|
| 2 |
|
| 3 |
# Small shell script to more easily automatically download and transcribe live stream VODs.
|
| 4 |
# This uses YT-DLP, ffmpeg and the CPP version of Whisper: https://github.com/ggerganov/whisper.cpp
|
| 5 |
+
# Use `./examples/yt-wsp.sh help` to print help info.
|
| 6 |
+
#
|
| 7 |
+
# Sample usage:
|
| 8 |
+
#
|
| 9 |
+
# git clone https://github.com/ggerganov/whisper.cpp
|
| 10 |
+
# cd whisper.cpp
|
| 11 |
+
# make
|
| 12 |
+
# ./examples/yt-wsp.sh https://www.youtube.com/watch?v=1234567890
|
| 13 |
+
#
|
| 14 |
|
| 15 |
# MIT License
|
| 16 |
|
|
|
|
| 51 |
}
|
| 52 |
|
| 53 |
print_help() {
|
| 54 |
+
echo "Usage: ./examples/yt-wsp.sh <video_url>"
|
| 55 |
echo "See configurable env variables in the script"
|
| 56 |
echo "This will produce an MP4 muxed file called res.mp4 in the working directory"
|
| 57 |
echo "Requirements: ffmpeg yt-dlp whisper"
|
|
|
|
| 73 |
if ! command -v "$WHISPER_EXECUTABLE" &>/dev/null; then
|
| 74 |
WHISPER_EXECUTABLE="./main"
|
| 75 |
if ! command -v "$WHISPER_EXECUTABLE" &>/dev/null; then
|
| 76 |
+
echo "Whisper is required (https://github.com/ggerganov/whisper.cpp):"
|
| 77 |
+
echo "Sample usage:"
|
| 78 |
+
echo ""
|
| 79 |
+
echo " git clone https://github.com/ggerganov/whisper.cpp"
|
| 80 |
+
echo " cd whisper.cpp"
|
| 81 |
+
echo " make"
|
| 82 |
+
echo " ./examples/yt-wsp.sh https://www.youtube.com/watch?v=1234567890"
|
| 83 |
+
echo ""
|
| 84 |
exit 1
|
| 85 |
fi
|
| 86 |
fi
|