mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 02:21:23 +00:00
refactor
This commit is contained in:
1 parent
964d1049af
commit
b5b61983a9
12 files changed
+12
-4
No files matched your search
Generated
+2
@@ -5955,6 +5955,7 @@ dependencies = [
|
||||
"easyenv",
|
||||
"enums",
|
||||
"errors",
|
||||
"ffmpeg_utils",
|
||||
"filesys",
|
||||
"google_drive_common",
|
||||
"hashing",
|
||||
@@ -11575,6 +11576,7 @@ dependencies = [
|
||||
"enums_public",
|
||||
"errors",
|
||||
"fal_client",
|
||||
"ffmpeg_utils",
|
||||
"filesys",
|
||||
"futures 0.1.31",
|
||||
"futures 0.3.31",
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1 @@
|
||||
pub mod ffmpeg_timestamp_from_duration;
|
||||
Whitespace-only changes.
@@ -17,3 +17,6 @@
|
||||
// Always allow
|
||||
#![allow(dead_code)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
pub mod ffmpeg;
|
||||
pub mod ffprobe;
|
||||
@@ -26,6 +26,7 @@ errors.workspace = true
|
||||
# External
|
||||
ffprobe = "0.4.0"
|
||||
log.workspace = true
|
||||
|
||||
# TODO(bt,2024-08-08): We might drop `mp4` crate because it crashes on reading
|
||||
# some videos with the message "avcc not found"
|
||||
mp4 = "0.14.0"
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#![allow(dead_code)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
pub mod ffmpeg_timestamp_from_duration;
|
||||
pub mod ffprobe_get_dimensions;
|
||||
pub mod ffprobe_get_info;
|
||||
pub mod get_mp4_info;
|
||||
@@ -49,6 +49,7 @@ subprocess_common = { path = "../../../lib/subprocess_common" }
|
||||
thumbnail_generator = { path = "../../../api_clients/thumbnail_generator"}
|
||||
tokens.workspace = true
|
||||
tts_common = { path = "../../../lib/tts_common" }
|
||||
ffmpeg_utils.workspace = true
|
||||
videos = { path = "../../../lib/files/videos" }
|
||||
|
||||
# External
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ use log::debug;
|
||||
use std::path::Path;
|
||||
use std::time::Duration;
|
||||
use subprocess_common::command_runner::command_args::CommandArgs;
|
||||
use videos::ffmpeg_timestamp_from_duration::ffmpeg_timestamp_from_duration;
|
||||
use ffmpeg_utils::ffmpeg::ffmpeg_timestamp_from_duration::ffmpeg_timestamp_from_duration;
|
||||
|
||||
/// Trim a video's duration
|
||||
/// See: https://shotstack.io/learn/use-ffmpeg-to-trim-video/
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ use log::debug;
|
||||
use std::path::Path;
|
||||
use std::time::Duration;
|
||||
use subprocess_common::command_runner::command_args::CommandArgs;
|
||||
use videos::ffmpeg_timestamp_from_duration::ffmpeg_timestamp_from_duration;
|
||||
use ffmpeg_utils::ffmpeg::ffmpeg_timestamp_from_duration::ffmpeg_timestamp_from_duration;
|
||||
|
||||
/// Resample a video's frame rate
|
||||
/// See: https://trac.ffmpeg.org/wiki/ChangingFrameRate
|
||||
|
||||
@@ -82,6 +82,7 @@ url_config = { path = "../../../lib/url_config" }
|
||||
url_utils = { path = "../../../lib/url_utils" }
|
||||
user_input_common = { path = "../../../lib/user_input_common" }
|
||||
users.workspace = true
|
||||
ffmpeg_utils.workspace = true
|
||||
videos = { path = "../../../lib/files/videos" }
|
||||
world_labs_api.workspace = true
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ use std::process::Command;
|
||||
use std::time::Duration;
|
||||
|
||||
use errors::AnyhowResult;
|
||||
use videos::ffmpeg_timestamp_from_duration::ffmpeg_timestamp_from_duration;
|
||||
use ffmpeg_utils::ffmpeg::ffmpeg_timestamp_from_duration::ffmpeg_timestamp_from_duration;
|
||||
|
||||
pub struct Args<'a> {
|
||||
pub video_input_path: &'a Path,
|
||||
|
||||
Reference in new issue
Block a user