Skip to content

Commit c7cd5c5

Browse files
use only the provided asset
1 parent 1d3c302 commit c7cd5c5

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

fetch_bbb_video.sh

+4-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
#!/bin/bash
2-
read -p "WARNING: You're about to download 340MB, are you sure? (yN) " -n 1 -r
3-
echo # (optional) move to a new line
4-
if [[ ! $REPLY =~ ^[Yy]$ ]]
5-
then
6-
echo "n"
7-
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 # handle exits from shell or function but don't exit interactive shell
8-
fi
2+
# the link doesn't work anymore
3+
# wget -O bunny_1080p_60fps.mp4 http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4
4+
# ffmpeg -y -i bunny_1080p_60fps.mp4 -ss 00:01:24 -t 00:00:10 small_bunny_1080p_60fps.mp4
95

10-
check_cmd()
11-
{
12-
if ! which $1 &>/dev/null; then
13-
error "$1 command not found, you must install it before."
14-
fi
15-
}
16-
17-
check_cmd wget
18-
check_cmd ffmpeg
19-
20-
wget -O bunny_1080p_60fps.mp4 https://github.com/leandromoreira/big-buck-bunny/raw/main/Big-Buck-Bunny-1080p-h264-4mb-60fps-multi-ch-ac3.mp4
21-
ffmpeg -y -i bunny_1080p_60fps.mp4 -ss 00:01:24 -t 00:00:10 small_bunny_1080p_60fps.mp4
6+
echo "the small_bunny_1080p_60fps.mp4 is already provided"

0 commit comments

Comments
 (0)