File tree 1 file changed +4
-19
lines changed
1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change 1
1
#! /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
9
5
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"
You can’t perform that action at this time.
0 commit comments