使用界面进行记录
录音机自带录音界面。
通过它,你可以录制一个片段并将其作为场景添加到你的项目中。
🌐 The Recorder ships with its own recording interface.
From it, you can record a clip and add it as a scene to your project.
如果你尚未这样做,请启动 Remotion 录制器:
🌐 If you haven't done so, start the Remotion Recorder:
bun run devVite 应用将监听 http://localhost:4000。
在浏览器中打开此网址。
允许该页面访问摄像头和麦克风。
🌐 A Vite app will listen on http://localhost:4000.
Open this URL in the browser.
Give the page access to the webcam and microphone.
选择作文
🌐 Select the composition
录音需要存储在 public 的子文件夹中,文件夹名称为作品 ID。
例如,如果你想为作品 my-video 进行录音,录音将存储在 public/my-video 下。
🌐 Recordings need to be stored in a subfolder of public with the name of the composition ID.
For example, if you want to record for the composition my-video, recordings will be stored under public/my-video.
在右上角,使用下拉菜单选择“创建新文件夹”。 给它与你想要录制的作品 ID 相同的名称。 文件夹将被创建,你之后的录音将保存在此文件夹中。
🌐 In the top right corner, use the dropdown to "Create a new folder".
Give it the same name as the ID of the composition you want to record for.
The folder will be created and your subsequent recordings will be saved in this folder.
选择来源
🌐 Select sources
在左上方面板中,选择你的摄像头和麦克风。 在右上方面板中,可选择你想要录制的屏幕。
🌐 In the top left panel, select your webcam and microphone.
In the top right panel, optionally select the screen you want to record.
你可以录制更多来源,但开箱即用时,Remotion 记录器不会对它们做任何处理。
🌐 You can record more sources, but out of the box, the Remotion Recorder does not do anything with them.
在开始之前
🌐 Before starting
说“测试一二三”,并确保音量计没有进入红色区域。
🌐 Say "Test One Two Three" and ensure the volume meter is not going into the red zone.
确保你在视频中居中。你可以启用裁剪目标叠加层,以查看视频在缩小时将如何裁剪。
🌐 Make sure you are centered in the video. You can enable the crop target overlay to see how the video will crop when miniaturized.
倾向于制作短录音。你更不容易出错,而且可以很容易地将它们拼接在一起。
🌐 Prefer making short recordings. You're less likely to make a mistake and it's easy to stitch them together.
没有倒计时——录音将立即开始。
但是,录音机稍后会自动剪掉开头的静音部分。
🌐 There is no countdown – The recording will start immediately.
However, the Recorder will later automatically trim away the silence in the beginning.
深呼吸,思考你即将要说和展示的内容。
🌐 Take a deep breath and think of what you are about to say and show.
你准备好录音了!
🌐 You're ready to record!
开始录音
🌐 Start the recording
要开始录制,按 R 或点击
选择一个拍摄片段
🌐 Selecting a take
在你录制完一个场景并对拍摄满意后,点击“使用此拍摄”。
🌐 After you have recorded a scene and you are happy with your take, click "Use this take".
服务器随后将执行以下操作:
🌐 The server will then do the following:
- 将视频从 WebM 转换为 MP4
- 把它们放入你的项目的
public/[composition-id]下。 - 使用 Whisper.cpp 为文件添加字幕
丢弃一次拍摄
🌐 Discard a take
如果你录制了不想使用的录音,点击“丢弃并重新录制”以清除内存中的现有录音。
🌐 If you have taken a recording that you don't want to use, click "Discard and retake" to clear the existing recording from memory.
record.remotion.dev
你也可以使用托管版本的录制界面,网址为 record.remotion.dev。
🌐 You can also use the hosted version of the recoding interface at record.remotion.dev.
它不会允许你选择保存位置,而是将录音下载到你的 Downloads 文件夹。
🌐 It will not allow you to select a save destination, but instead download the recordings to your Downloads folder.
它们将有像 webcam171234567890.mp4 和 display171234567890.mp4 这样的名字。
🌐 They will have names like webcam171234567890.mp4 and display171234567890.mp4.
要将录音复制到你的 Remotion 项目中,首先在你的代码编辑器中打开 copy.ts。在文件顶部将 prefix 设置为你在首次创建新视频时给合成的 ID。
🌐 To copy the recordings to your Remotion project, first open copy.ts in your code editor. Set the prefix at the top of your file to the ID of the composition that you gave when you first created a new video.
copy.tsconst prefix = '<id-of-your-composition>';
然后在你想保存一次拍摄并立即生成字幕时运行 copy.ts 脚本:
🌐 Then run the copy.ts script whenever you want to save a take and immediately generate captions:
bun copy.ts
bun sub.ts如果你不想使用某个拍摄,只需再录制一次。copy.ts 脚本只会采用最新时间戳的录音。
🌐 If you want to not use a take, just make another recording. The copy.ts script will only take the recordings with the latest timestamp.