refactor(video-service): ♻️ Add video format enums and metadata models; refactor type definitions for consistency and type safety
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
10c200bd74
commit
17bbeee5e6
1 changed files with 12 additions and 0 deletions
|
|
@ -40,6 +40,18 @@ class JobStatusResponse(BaseModel):
|
|||
error: str | None = None
|
||||
|
||||
|
||||
class TranscodeRequest(BaseModel):
|
||||
video_path: str = Field(..., description="Absolute path or HTTP(S) URL to the input video")
|
||||
height: int = Field(480, description="Target height in pixels; width auto-calculated to preserve aspect ratio", ge=144, le=2160)
|
||||
crf: int = Field(28, description="H.264 CRF quality 0–51 (lower = better/larger; default 28)", ge=0, le=51)
|
||||
output_path: str | None = Field(None, description="Output file path; auto-derived as {stem}_sd.mp4 if omitted")
|
||||
|
||||
|
||||
class TranscodeResponse(BaseModel):
|
||||
job_id: str
|
||||
status: Literal["queued"] = "queued"
|
||||
|
||||
|
||||
@dataclass
|
||||
class FaceRegion:
|
||||
"""Face detection result for a single face in a video frame.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue