Skip to content

Commit

Permalink
use rav1e-av as encoder
Browse files Browse the repository at this point in the history
Signed-off-by: gibix <[email protected]>
  • Loading branch information
gibix committed Aug 27, 2019
1 parent 18f38bd commit 676c374
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ libvpx = { git = "https://github.com/rust-av/vpx-rs", features=["codec-trait"] }
libopus = { git = "https://github.com/rust-av/opus-rs", features=["codec-trait"] }
libaom = { git = "https://github.com/rust-av/aom-rs", features=["codec-trait"] }
av-vorbis = { git = "https://github.com/rust-av/av-vorbis" }
rav1e-av = { git = "https://github.com/rust-av/rav1e-av" }

matroska = { git = "https://github.com/rust-av/matroska" }
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ extern crate libaom as aom;
extern crate libopus as opus;
extern crate libvpx as vpx;

extern crate rav1e_av;

// Command line interface
use std::path::PathBuf;
use structopt::StructOpt;
Expand Down Expand Up @@ -60,7 +62,8 @@ use codec::encoder::Context as EncoderCtx;

use format::stream::Stream;

use aom::encoder::AV1_DESCR;
// use aom::encoder::AV1_DESCR;
use rav1e_av::AV1_DESCR;
use opus::encoder::OPUS_DESCR;
use vpx::encoder::VP9_DESCR;

Expand Down Expand Up @@ -134,6 +137,7 @@ fn main() {
use codec::error::*;
match e {
Error::MoreDataNeeded => (),
Error::Unsupported(ref val) if val == "Encoded" => (),
_ => {
error!("flush ctx.receive_packet: {:?}", e);
}
Expand Down

0 comments on commit 676c374

Please sign in to comment.