分镜支持视频功能
This commit is contained in:
@@ -57,16 +57,18 @@ class StoryboardFrame:
|
||||
"""Single storyboard frame"""
|
||||
index: int # Frame index (0-based)
|
||||
narration: str # Narration text
|
||||
image_prompt: str # Image generation prompt
|
||||
image_prompt: str # Image generation prompt (can be None for text-only or video)
|
||||
|
||||
# Generated resource paths
|
||||
audio_path: Optional[str] = None # Audio file path
|
||||
image_path: Optional[str] = None # Original image path
|
||||
composed_image_path: Optional[str] = None # Composed image path (with subtitles)
|
||||
video_segment_path: Optional[str] = None # Video segment path
|
||||
audio_path: Optional[str] = None # Audio file path (narration)
|
||||
media_type: Optional[str] = None # Media type: "image" or "video" (None if no media)
|
||||
image_path: Optional[str] = None # Original image path (for image type)
|
||||
video_path: Optional[str] = None # Original video path (for video type, before composition)
|
||||
composed_image_path: Optional[str] = None # Composed image path (with subtitles, for image type)
|
||||
video_segment_path: Optional[str] = None # Final video segment path
|
||||
|
||||
# Metadata
|
||||
duration: float = 0.0 # Audio duration (seconds)
|
||||
duration: float = 0.0 # Frame duration (seconds, from audio or video)
|
||||
created_at: Optional[datetime] = None
|
||||
|
||||
def __post_init__(self):
|
||||
|
||||
Reference in New Issue
Block a user