vidmerger 0.4.4

A wrapper around FFmpeg which simplifies merging multiple videos and adds chapters from the file names
1
2
3
4
5
6
7
8
9
10
use std::path::{Path, PathBuf};

use crate::commander::_cmd::adjust_fps_by_ffmpeg;

pub fn adjust_fps(file_to_merge: PathBuf, fps_goal: &f32, tmp_dir: &Path) -> PathBuf {
  let file_name = file_to_merge.file_name().unwrap().to_string_lossy();
  let new_file_location = tmp_dir.join(file_name.to_string());

  adjust_fps_by_ffmpeg(file_to_merge, fps_goal, new_file_location)
}