Skip to content

Commit

Permalink
Upgrade to release/3.0 - Merge pull request #10 from complistic-gaff/…
Browse files Browse the repository at this point in the history
…release/3.0

Upgrade to release/3.0
  • Loading branch information
DavidBennettPIO authored Aug 26, 2017
2 parents 89901fc + 484a54e commit ea1fc00
Show file tree
Hide file tree
Showing 44 changed files with 4,700 additions and 2,399 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.dub/
.idea/
ffmpeg-d.iml
ffmpeg-d
__test__source
dub.userprefs
libffmpeg-d.a
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@
[![Join the chat at https://gitter.im/ljubobratovicrelja/ffmpeg-d](https://badges.gitter.im/ljubobratovicrelja/ffmpeg-d.svg)](https://gitter.im/ljubobratovicrelja/ffmpeg-d?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Dub package](https://img.shields.io/badge/dub-package-FF4081.svg)](http://code.dlang.org/packages/ffmpeg-d)


This is a D port of the FFmpeg C headers. Please check [FFmpeg website](https://www.ffmpeg.org/) for more information on the application and libraries


## Usage

_NOTE: This branch is compatible with ffmpeg 3.0.x, for other versions please see the other branches for usage information._

### Adding to DUB

To include `ffmpeg-d` in your dub project add the following dependency to your dub.json file.

```
"ffmpeg-d": "~>3.0.0"
```

---

The main configuration of the project is set up as a source library. Linking to FFmpeg libraries is defined
in the dub.json. If FFmpeg libraries are not visible in your build system, provide the library directory with ```ldflags```
argument in your project's configuration as:
Expand All @@ -17,7 +28,20 @@ argument in your project's configuration as:
"lflags": ["-L/path/to/ffmpegLibs"],
```

### OS X

### Examples

There are a few examples in the examples directory, these can be compiled to working executables using DUB:

```
dub build -c remux_example
```

Other examples written in C can be found on the main FFMpeg site: https://www.ffmpeg.org/doxygen/3.0/examples.html


### OS X

It is noted that FFmpeg compiled on OS X with clang fails linking with DMD. Workaround is to install the FFmpeg libraries using **Homebrew**. See the [issue #1](https://github.com/ljubobratovicrelja/ffmpeg-d/issues/1) for more info.


Expand All @@ -30,10 +54,14 @@ dub test

... will print the associated FFmpeg library versions. This is useful for checking versions expected by this binding and the actual library.


## FFmpeg Version

Currently the library is tested with FFmpeg 2.7.6 and 2.8.0 libraries. Newer versions should be tested in future. If you've
already tested this library with newer FFmpeg, please let us know in the gitter chat room!
Currently the library has been tested with FFmpeg 2.7.6, 2.8.0, 3.0.9 libraries.

Please use the branch of this repo that corresponds to the same major.minor version of FFmpeg. For example use `release/3.0` with FFmpeg 3.0.9.

Newer versions should be tested in future. If you've already tested this library with newer FFmpeg, please let us know in the gitter chat room!


## Contributing
Expand Down
15 changes: 14 additions & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"avutil",
"avfilter",
"avdevice",
"swscale"
"swscale",
"swresample"
],

"buildTypes": {
Expand All @@ -35,6 +36,18 @@
{
"name": "static",
"targetType": "staticLibrary"
},
{
"name": "remux_example",
"targetType": "executable",
"mainSourceFile": "examples/remux_example.d",
"targetName": "remux_example"
},
{
"name": "encode_example",
"targetType": "executable",
"mainSourceFile": "examples/encode_example.d",
"targetName": "encode_example"
}
]
}
Loading

0 comments on commit ea1fc00

Please sign in to comment.