@plyaz/types 1.16.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/storage/plugins.d.ts +60 -0
- package/package.json +1 -1
|
@@ -994,3 +994,63 @@ export interface StorageVideoProcessingPluginStatistics {
|
|
|
994
994
|
variantsGenerated: number;
|
|
995
995
|
averageVariantsPerVideo?: number;
|
|
996
996
|
}
|
|
997
|
+
/**
|
|
998
|
+
* FFmpeg/FFprobe Types
|
|
999
|
+
* Types for video processing using FFmpeg
|
|
1000
|
+
*/
|
|
1001
|
+
/**
|
|
1002
|
+
* FFprobe stream information
|
|
1003
|
+
*/
|
|
1004
|
+
export interface FFprobeStream {
|
|
1005
|
+
codec_type?: string;
|
|
1006
|
+
codec_name?: string;
|
|
1007
|
+
width?: number;
|
|
1008
|
+
height?: number;
|
|
1009
|
+
duration?: string;
|
|
1010
|
+
bit_rate?: string;
|
|
1011
|
+
r_frame_rate?: string;
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* FFprobe format information
|
|
1015
|
+
*/
|
|
1016
|
+
export interface FFprobeFormat {
|
|
1017
|
+
duration?: number;
|
|
1018
|
+
bit_rate?: number | string;
|
|
1019
|
+
size?: string;
|
|
1020
|
+
format_name?: string;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* FFprobe output data
|
|
1024
|
+
*/
|
|
1025
|
+
export interface FFprobeData {
|
|
1026
|
+
streams: FFprobeStream[];
|
|
1027
|
+
format: FFprobeFormat;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* FFmpeg progress information
|
|
1031
|
+
*/
|
|
1032
|
+
export interface FFmpegProgress {
|
|
1033
|
+
percent?: number;
|
|
1034
|
+
currentTime?: number;
|
|
1035
|
+
targetSize?: number;
|
|
1036
|
+
timemark?: string;
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* FFmpeg command options
|
|
1040
|
+
*/
|
|
1041
|
+
export interface FFmpegOptions {
|
|
1042
|
+
input: string;
|
|
1043
|
+
output: string;
|
|
1044
|
+
args: string[];
|
|
1045
|
+
onProgress?: (progress: FFmpegProgress) => void;
|
|
1046
|
+
onStart?: (command: string) => void;
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Screenshot options for FFmpeg
|
|
1050
|
+
*/
|
|
1051
|
+
export interface ScreenshotOptions {
|
|
1052
|
+
timestamps: number[];
|
|
1053
|
+
folder: string;
|
|
1054
|
+
filename: string;
|
|
1055
|
+
size?: string;
|
|
1056
|
+
}
|
package/package.json
CHANGED