Skip to content

Commit b02b78a

Browse files
authored
Merge pull request #32 from mutablelogic/ffmpeg61
Ffmpeg61
2 parents bc5b6f0 + d14921d commit b02b78a

26 files changed

+1156
-344
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BUILD_DIR := "build"
2222
CMD_DIR := $(filter-out cmd/ffmpeg/README.md, $(wildcard cmd/ffmpeg/*))
2323
BUILD_TAG := ${DOCKER_REGISTRY}/go-media-${OS}-${ARCH}:${VERSION}
2424

25-
all: clean cli cmds
25+
all: clean cmds
2626

2727
cmds: $(CMD_DIR)
2828

README.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,46 @@ you are interested in, please see below "Contributing & Distribution" below.
1616

1717
## Requirements
1818

19-
In order to build the examples, you'll need the library and header files for [FFmpeg 6](https://ffmpeg.org/download.html) installed.The `chromaprint` library is also required for fingerprinting audio files. On Macintosh with [homebrew](http://bew.sh/), for example:
19+
In order to build the examples, you'll need the library and header files
20+
for [FFmpeg 6](https://ffmpeg.org/download.html) installed.The `chromaprint` library is also
21+
required for fingerprinting audio files and SDL2 for the video player.
22+
23+
### MacOS
24+
25+
On Macintosh with [homebrew](http://bew.sh/), for example:
2026

2127
```bash
2228
brew install ffmpeg@6 chromaprint make
29+
brew link ffmpeg@6
30+
```
31+
32+
### Debian
33+
34+
If you're using Debian you may not be able to get the ffmpeg 6 unless you first of all add the debi-multimedia repository.
35+
You can do this by adding the following line to your `/etc/apt/sources.list` file:
36+
37+
```bash
38+
# Run commands as privileged user
39+
echo "deb https://www.deb-multimedia.org $(lsb_release -sc) main" >> /etc/apt/sources.list
40+
apt update -y -oAcquire::AllowInsecureRepositories=true
41+
apt install -y --force-yes deb-multimedia-keyring
42+
```
43+
44+
Then you can proceed to install the ffmpeg 6 and the other dependencies:
45+
46+
```bash
47+
# Run commands as privileged user
48+
apt install -y libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
49+
apt install -y libchromaprint-dev
50+
apt install -y libsdl2-dev
2351
```
2452

53+
### Docker Container
54+
55+
TODO
56+
57+
## Examples
58+
2559
There are some examples in the `cmd` folder of the main repository on how to use
2660
the package. The various make targets are:
2761

@@ -43,8 +77,6 @@ cd go-media
4377
DOCKER_REGISTRY=ghcr.io/mutablelogic make docker
4478
```
4579

46-
## Examples
47-
4880
There are a variety of types of object needed as part of media processing.
4981
All examples require a `Manager` to be created, which is used to enumerate all supported formats
5082
and open media files and byte streams.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)