rivet-transcoder 0.2.0

Modular GPU-accelerated video transcoding library, CLI, and HTTP/IPC service (AV1 + Opus, MP4/CMAF-HLS). Imported as `rivet`; CLI is `rivet`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Implementation of `rivet serve` (HTTP transcode API server).

use anyhow::{Context, Result};

pub(crate) fn run(addr: String) -> Result<()> {
    let addr: std::net::SocketAddr = addr.parse().context("parsing --addr")?;
    let rt = tokio::runtime::Builder::new_multi_thread()
        .enable_all()
        .build()
        .context("building tokio runtime")?;
    eprintln!("rivet transcode API on http://{addr} (POST media to /v1/transcode)");
    rt.block_on(rivet::server::serve(addr))
}