mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-23 15:08:13 +02:00
feat(reels): add video stabilization, quality improvements and processing monitoring
This commit is contained in:
1 parent
4e20a84836
commit
aac776777a
7 files changed
+289
-11
No files matched your search
@@ -17,6 +17,7 @@ interface FFmpegReelRequest {
|
||||
font_size?: number; // Taille police (default: 24)
|
||||
music_volume?: number; // Volume musique (default: 0.25)
|
||||
draw_text?: boolean; // Dessiner le texte sur la vidéo (default: true)
|
||||
stabilize?: boolean; // Stabilisation vidéo via vidstab (default: false)
|
||||
}
|
||||
|
||||
interface FFmpegReelResponse {
|
||||
@@ -71,6 +72,7 @@ export class FFmpegService {
|
||||
fontSize?: number;
|
||||
musicVolume?: number;
|
||||
drawText?: boolean;
|
||||
stabilize?: boolean;
|
||||
} = {}
|
||||
): Promise<{ success: boolean; videoBase64?: string; duration?: number; error?: string }> {
|
||||
const config = this.ensureConfigured();
|
||||
@@ -86,6 +88,7 @@ export class FFmpegService {
|
||||
font_size: options.fontSize ?? 16,
|
||||
music_volume: options.musicVolume ?? 0.25,
|
||||
draw_text: options.drawText ?? true,
|
||||
stabilize: options.stabilize ?? false,
|
||||
};
|
||||
|
||||
// Remove undefined values
|
||||
@@ -164,6 +167,7 @@ export class FFmpegService {
|
||||
fontSize?: number;
|
||||
musicVolume?: number;
|
||||
drawText?: boolean;
|
||||
stabilize?: boolean;
|
||||
} = {}
|
||||
): Promise<{ success: boolean; videoBase64?: string; duration?: number; error?: string }> {
|
||||
const config = this.ensureConfigured();
|
||||
@@ -179,6 +183,7 @@ export class FFmpegService {
|
||||
font_size: options.fontSize ?? 16,
|
||||
music_volume: options.musicVolume ?? 0.25,
|
||||
draw_text: options.drawText ?? true,
|
||||
stabilize: options.stabilize ?? false,
|
||||
};
|
||||
|
||||
// Remove undefined values
|
||||
|
||||
Reference in new issue
Block a user