## build docker image with Dockerfile, and start a container of this image
## you should use this.
docker compose up --build -d
##----------other commands------------
## build image only
docker compose --build
## start container only
docker compose up -d
## stop and remove container
docker compose down
## check with ps
docker compose ps
-
Download FFmpeg source code to
src/ffmpeg
Clone n6.1.1(tag) version for example, to check all versions on Official FFmpeg reponote: target folder MUST be
src/ffmpeg
git clone -b n6.1.1 https://git.ffmpeg.org/ffmpeg.git ./src/ffmpeg
-
Connect docker container in VSCode (2 options, either 1 or 2 is OK)
- Dev Container: Reopen in dev container within VSCode
- Remote Explorer: Attach docker container created in last step in
VSCode
and then Open/app
folder as project root directory- Install VSCode extensions in dev container
- Install
C/C++
VSCode extension (for debugging) - Install
clangd
VSCode extension (for code navigation)
- Install
- Install VSCode extensions in dev container
-
Build FFmpeg
/app/src/build.sh
-
Debug -> "Debug ffmpeg_g"