Skip to content

Commit cdd616c

Browse files
add bbb download info fixes #34
1 parent d2622db commit cdd616c

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
clean:
22
@rm -rf ./build/*
33

4+
fetch_small_bunny_video:
5+
./fetch_bbb_video.sh
6+
47
make_hello: clean
58
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel \
69
gcc -L/opt/ffmpeg/lib -I/opt/ffmpeg/include/ /files/0_hello_world.c \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ The `AVCodec` will decode them into [`AVFrame`](https://ffmpeg.org/doxygen/trunk
289289

290290
### Requirements
291291

292-
Since some people were [facing issues while compiling or running the examples](https://github.com/leandromoreira/ffmpeg-libav-tutorial/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+compiling) **we're going to use [`Docker`](https://docs.docker.com/install/) as our development/runner environment.**
292+
Since some people were [facing issues while compiling or running the examples](https://github.com/leandromoreira/ffmpeg-libav-tutorial/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+compiling) **we're going to use [`Docker`](https://docs.docker.com/install/) as our development/runner environment,** we'll also use the big buck bunny video so if you don't have it locally just run the command `make fetch_small_bunny_video`.
293293

294294
### Chapter 0 - code walkthrough
295295

fetch_bbb_video.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
read -p "WARNING: You're about to download 340MB, are you sure? (yN) " -n 1 -r
2+
echo # (optional) move to a new line
3+
if [[ ! $REPLY =~ ^[Yy]$ ]]
4+
then
5+
echo "n"
6+
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 # handle exits from shell or function but don't exit interactive shell
7+
fi
8+
9+
check_cmd()
10+
{
11+
if ! which $1 &>/dev/null; then
12+
error "$1 command not found, you must install it before."
13+
fi
14+
}
15+
16+
check_cmd wget
17+
check_cmd ffmpeg
18+
19+
wget -O bunny_1080p_60fps.mp4 http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4
20+
ffmpeg -y -i bunny_1080p_60fps.mp4 -ss 00:01:24 -t 00:00:10 small_bunny_1080p_60fps.mp4

0 commit comments

Comments
 (0)