mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 23:43:35 +00:00
chore(export): add ffmpeg mux timing breakdown
This commit is contained in:
1 parent
5ad4fee100
commit
3c1923178b
8 files changed
+137
-20
No files matched your search
@@ -1028,6 +1028,9 @@ export class ModernVideoExporter {
|
||||
audioPlan.audioMode === "none" ? "default" : "audio",
|
||||
),
|
||||
);
|
||||
if (result.metrics) {
|
||||
this.finalizationStageMs.ffmpegAudioMuxBreakdown = result.metrics;
|
||||
}
|
||||
this.nativeExportSessionId = null;
|
||||
|
||||
if (!result.success) {
|
||||
@@ -1109,6 +1112,9 @@ export class ModernVideoExporter {
|
||||
"audio",
|
||||
),
|
||||
);
|
||||
if (result.metrics) {
|
||||
this.finalizationStageMs.ffmpegAudioMuxBreakdown = result.metrics;
|
||||
}
|
||||
|
||||
if (!result.success || !result.data) {
|
||||
return {
|
||||
|
||||
@@ -41,6 +41,17 @@ export interface ExportFinalizationStageMetrics {
|
||||
ffmpegAudioMuxMs?: number;
|
||||
nativeExportFinalizeMs?: number;
|
||||
nativeEncoderFlushMs?: number;
|
||||
ffmpegAudioMuxBreakdown?: ExportFfmpegAudioMuxBreakdown;
|
||||
}
|
||||
|
||||
export interface ExportFfmpegAudioMuxBreakdown {
|
||||
tempVideoWriteMs?: number;
|
||||
tempEditedAudioWriteMs?: number;
|
||||
ffmpegExecMs?: number;
|
||||
muxedVideoReadMs?: number;
|
||||
tempVideoBytes?: number;
|
||||
tempEditedAudioBytes?: number;
|
||||
muxedVideoBytes?: number;
|
||||
}
|
||||
|
||||
export interface ExportMetrics {
|
||||
|
||||
@@ -781,6 +781,9 @@ export class VideoExporter {
|
||||
audioPlan.audioMode === "none" ? "default" : "audio",
|
||||
),
|
||||
);
|
||||
if (result.metrics) {
|
||||
this.finalizationStageMs.ffmpegAudioMuxBreakdown = result.metrics;
|
||||
}
|
||||
|
||||
if (!result.success || !result.data) {
|
||||
return {
|
||||
@@ -857,6 +860,9 @@ export class VideoExporter {
|
||||
"audio",
|
||||
),
|
||||
);
|
||||
if (result.metrics) {
|
||||
this.finalizationStageMs.ffmpegAudioMuxBreakdown = result.metrics;
|
||||
}
|
||||
|
||||
if (!result.success || !result.data) {
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user