Skip to content

Commit 024d87b

Browse files
committed
WIP: ffmpeg example (#19)
Unfortunately, the images don't look right! I don't know yet what's wrong.
1 parent bb3baf0 commit 024d87b

File tree

6 files changed

+408
-3
lines changed

6 files changed

+408
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
toolchain: ${{ matrix.rust }}
3636
override: true
3737
components: ${{ matrix.extra_components }}
38+
- name: Install dependencies
39+
run: sudo apt-get update && sudo apt-get install libavcodec-dev libavformat-dev libavutil-dev pkgconf
3840
- name: Build
3941
run: cargo build --all-features --all-targets --workspace
4042
- name: Test

Cargo.lock

Lines changed: 132 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = [".", "examples/client", "examples/webrtc-proxy"]
2+
members = [".", "examples/client", "examples/ffmpeg-decode", "examples/webrtc-proxy"]
33
default-members = ["."]
44

55
[package]

examples/ffmpeg-decode/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "ffmpeg-decode"
3+
version = "0.0.0"
4+
edition = "2021"
5+
publish = false
6+
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+
[dependencies]
10+
anyhow = "1.0.41"
11+
ffmpeg-next = { version = "5.0.3", default-features=false, features = ["codec", "format", "software-scaling"] }
12+
futures = "0.3.14"
13+
log = "0.4.8"
14+
mylog = { git = "https://github.com/scottlamb/mylog" }
15+
retina = { path = "../../" }
16+
structopt = "0.3.21"
17+
tokio = { version = "1.5.0", features = ["macros", "rt-multi-thread", "signal"] }
18+
url = "2.2.1"

0 commit comments

Comments
 (0)