this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

🚧 Leave code in for tacking audio stream to video file

authored by

Gwenn Le Bihan and committed by
Gwen Le Bihan
e84512fc 23974955

+14
+1
Cargo.lock
··· 1896 1896 "console", 1897 1897 "docopt", 1898 1898 "env_logger", 1899 + "ffmpeg-next", 1899 1900 "getrandom", 1900 1901 "handlebars", 1901 1902 "hound",
+1
Cargo.toml
··· 66 66 ndarray = "0.16.1" 67 67 rgb2yuv420 = "0.2.3" 68 68 video-rs = { version = "0.10.3", features = ["ndarray"] } 69 + ffmpeg-next = "7.1.0" 69 70 70 71 71 72 [dev-dependencies]
+12
src/video.rs
··· 7 7 path::{Path, PathBuf}, 8 8 }; 9 9 10 + use ffmpeg::{codec, format, media, Packet}; 11 + use ffmpeg_next::encoder; 12 + use std::path::Path; 13 + extern crate ffmpeg_next as ffmpeg; 10 14 use anyhow::Result; 11 15 use chrono::{DateTime, NaiveDateTime}; 12 16 use indicatif::{ProgressBar, ProgressIterator}; ··· 603 607 &format!("{} frames to {}", frames_written, output_file), 604 608 ); 605 609 610 + self.progress_bar.set_position(0); 611 + self.progress_bar.set_prefix("Adding"); 612 + self.progress_bar.set_message("audio track"); 613 + 606 614 Ok(()) 615 + } 616 + 617 + fn add_audio_track(&mut self, output_file: String) -> Result<()> { 618 + todo!("Look into https://github.com/zmwangx/rust-ffmpeg/blob/master/examples/transcode-x264.rs and maybe contribute to video-rs (see https://github.com/oddity-ai/video-rs/issues/44)"); 607 619 } 608 620 } 609 621