✨ feat(subtitle_rendering): WIP: 添加视频字幕样式和导出功能
This commit is contained in:
@@ -23,8 +23,8 @@ export interface SubtitleEmbeddingOptions {
|
||||
blur: number;
|
||||
color: string;
|
||||
};
|
||||
videoWidth: number;
|
||||
videoHeight: number;
|
||||
videoWidth?: number;
|
||||
videoHeight?: number;
|
||||
}
|
||||
|
||||
export const useVideoSubtitleEmbedding = async (
|
||||
@@ -50,12 +50,14 @@ export const useVideoSubtitleEmbedding = async (
|
||||
videoHeight: 1080,
|
||||
fontSize: 36,
|
||||
fontFamily: "Noto Sans SC",
|
||||
strokeStyle: "none",
|
||||
textShadow: {
|
||||
offsetX: 2,
|
||||
offsetY: 2,
|
||||
blur: 4,
|
||||
color: "rgba(0, 0, 0, 0.25)",
|
||||
},
|
||||
...options,
|
||||
})
|
||||
);
|
||||
srtSprite.time = { duration: 10e6, offset: 0 };
|
||||
|
||||
Reference in New Issue
Block a user