Skip to content

Commit

Permalink
WIP: ffmpeg example (#19)
Browse files Browse the repository at this point in the history
Unfortunately, the images don't look right! I don't know yet what's
wrong.
  • Loading branch information
scottlamb committed Jul 19, 2022
1 parent bb3baf0 commit c4b83f1
Show file tree
Hide file tree
Showing 6 changed files with 408 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
components: ${{ matrix.extra_components }}
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install libavcodec-dev libavformat-dev libavutil-dev libswscale-dev pkgconf
- name: Build
run: cargo build --all-features --all-targets --workspace
- name: Test
Expand Down
133 changes: 132 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = [".", "examples/client", "examples/webrtc-proxy"]
members = [".", "examples/client", "examples/ffmpeg-decode", "examples/webrtc-proxy"]
default-members = ["."]

[package]
Expand Down
18 changes: 18 additions & 0 deletions examples/ffmpeg-decode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "ffmpeg-decode"
version = "0.0.0"
edition = "2021"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.41"
ffmpeg-next = { version = "5.0.3", default-features=false, features = ["codec", "format", "software-scaling"] }
futures = "0.3.14"
log = "0.4.8"
mylog = { git = "https://github.com/scottlamb/mylog" }
retina = { path = "../../" }
structopt = "0.3.21"
tokio = { version = "1.5.0", features = ["macros", "rt-multi-thread", "signal"] }
url = "2.2.1"
Loading

0 comments on commit c4b83f1

Please sign in to comment.