mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 07:19:52 +00:00
style: apply oxfmt baseline formatting across all source files (#25)
## Summary - Run `oxfmt .` across the entire codebase to establish formatted baseline - 299 files changed — mechanical formatting only, no logic changes - Double quotes, semicolons, 2-space indent, trailing commas, 100 print width Part 3/4 of [VA-851](https://linear.app/heygen/issue/VA-851/pre-migration-configure-eslint-prettier-and-conventional-commits) ## Test plan - [x] `pnpm format:check` — all 426 files pass - [x] `pnpm -r typecheck` — all packages pass - [x] `pnpm build` — all packages build - [x] All 348 tests pass
This commit is contained in:
@@ -59,7 +59,15 @@ export async function extractVideoMetadata(filePath: string): Promise<VideoMetad
|
||||
}
|
||||
|
||||
const probePromise = new Promise<VideoMetadata>((resolve, reject) => {
|
||||
const args = ["-v", "quiet", "-print_format", "json", "-show_format", "-show_streams", filePath];
|
||||
const args = [
|
||||
"-v",
|
||||
"quiet",
|
||||
"-print_format",
|
||||
"json",
|
||||
"-show_format",
|
||||
"-show_streams",
|
||||
filePath,
|
||||
];
|
||||
|
||||
const ffprobe = spawn("ffprobe", args);
|
||||
let stdout = "";
|
||||
@@ -87,7 +95,8 @@ export async function extractVideoMetadata(filePath: string): Promise<VideoMetad
|
||||
}
|
||||
|
||||
const hasAudio = output.streams.some((s) => s.codec_type === "audio");
|
||||
const fps = parseFrameRate(videoStream.avg_frame_rate) || parseFrameRate(videoStream.r_frame_rate);
|
||||
const fps =
|
||||
parseFrameRate(videoStream.avg_frame_rate) || parseFrameRate(videoStream.r_frame_rate);
|
||||
const durationSeconds = output.format.duration ? parseFloat(output.format.duration) : 0;
|
||||
|
||||
const metadata: VideoMetadata = {
|
||||
@@ -100,7 +109,11 @@ export async function extractVideoMetadata(filePath: string): Promise<VideoMetad
|
||||
};
|
||||
resolve(metadata);
|
||||
} catch (parseError: unknown) {
|
||||
reject(new Error(`[FFmpeg] Failed to parse ffprobe output: ${parseError instanceof Error ? parseError.message : parseError}`));
|
||||
reject(
|
||||
new Error(
|
||||
`[FFmpeg] Failed to parse ffprobe output: ${parseError instanceof Error ? parseError.message : parseError}`,
|
||||
),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -128,7 +141,15 @@ export async function extractAudioMetadata(filePath: string): Promise<AudioMetad
|
||||
}
|
||||
|
||||
const probePromise = new Promise<AudioMetadata>((resolve, reject) => {
|
||||
const args = ["-v", "quiet", "-print_format", "json", "-show_format", "-show_streams", filePath];
|
||||
const args = [
|
||||
"-v",
|
||||
"quiet",
|
||||
"-print_format",
|
||||
"json",
|
||||
"-show_format",
|
||||
"-show_streams",
|
||||
filePath,
|
||||
];
|
||||
|
||||
const ffprobe = spawn("ffprobe", args);
|
||||
let stdout = "";
|
||||
|
||||
Reference in New Issue
Block a user