mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-23 06:58:12 +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
@@ -188,6 +188,7 @@ reelsRouter.post('/reels/preview', async (req: Request, res: Response) => {
|
||||
fontSize = 16,
|
||||
musicVolume = 0.25,
|
||||
drawText = true,
|
||||
stabilize = false,
|
||||
} = req.body;
|
||||
|
||||
// Récupérer le média vidéo
|
||||
@@ -321,6 +322,7 @@ reelsRouter.post('/reels', async (req: Request, res: Response) => {
|
||||
ttsEnabled: ttsEnabled,
|
||||
ttsVoice: ttsVoice,
|
||||
drawText: drawText,
|
||||
stabilize: stabilize,
|
||||
pageCount: pageIds.length,
|
||||
});
|
||||
|
||||
|
||||
@@ -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