Skip to main content

静音去除

当生成字幕时,会使用 Whisper.cpp 的时间戳来确定转录的开始和结束。

🌐 When captions are generated, the Whisper.cpp timestamps are taken to determine the start and end of the transcription.

因此,你应该确保在手动剪辑视频之前生成字幕。

🌐 Therefore, you should make sure captions are generated before you manually trim the video.

编辑文字记录以修复错误

🌐 Edit the transcript to fix mistakes

修复错误的最简单方法是点击字幕并编辑转录稿。
第一个非空令牌决定起始修剪。
最后一个非空令牌决定结束修剪。

🌐 The easiest way to fix mistakes is to click on a caption and edit the transcript.
The first non-empty token determines the start trim.
The last non-empty token determines the end trim.

应用偏移

🌐 Apply an offset

在右侧默认属性编辑器中,将 startOffset 应用于场景。 偏移量以帧为单位。

🌐 In the right hand side default props editor, apply a startOffset to the scene.
The offset is in frames.

负偏移将使视频提前开始,正偏移将使视频延迟开始。

🌐 A negative offset will start the video earlier, a positive offset will start the video later.

要更改结束修剪,请将 endOffset 应用于场景。它遵循与起始偏移相同的逻辑。

🌐 To change the end trim, apply a endOffset to the scene. It follows the same logic as the start offset.

自定义逻辑

🌐 Customizing the logic

确定开始和结束时间戳的逻辑在 remotion/calculate-metadata/add-metadata-to-scene.ts 中。

🌐 The logic for determining the start and end timestamp is in remotion/calculate-metadata/add-metadata-to-scene.ts.

默认的开始填充时间是0.25秒,默认的结束填充时间是0.5秒。

🌐 The default start padding is a 0.25 seconds and the default end padding is a 0.5 seconds.

这些值在 remotion/calculate-metadata/get-start-end-frame.ts 中定义

🌐 These values are defined in remotion/calculate-metadata/get-start-end-frame.ts