Skip to content

🎥 Make videos programmatically with React

update

Jonny Burgerda159ced766b
diff --git a/packages/template-audiogram/README.md b/packages/template-audiogram/README.md
index 745e8430dc..1ce629d3a9 100644
--- a/packages/template-audiogram/README.md
+++ b/packages/template-audiogram/README.md
@@ -8,11 +8,20 @@ This template is for creating "audiograms". In other words, video clips from pod
<img src="https://github.com/marcusstenbeck/remotion-template-audiogram/raw/main/Promo.png">
</p>
+## Getting started
+
+```
+npm i
+```
+
+```
+npx remotion studio
+```
+
Start changing things like this:
-- Adjust size and length in `src/Root.tsx`
+- Adjust parameters in `src/Root.tsx` or in the Studio sidebar
- Replacing audio, cover and subtitles in the `public` folder
-- Tweak `src/Audioframe.tsx`
## How do I render my video?
@@ -26,14 +35,15 @@ Or check out the [Remotion docs](/docs/render/). There are lots of ways to rende
## Where to get a transcript?
-You can supply a .srt file or a .json file that follows the [`@remotion/captions`](https://remotion.dev/docs/captions/caption) format. Examples for both are included.
+You can generate the captions or supply a .srt file or a .json file that follows the [`@remotion/captions`](https://remotion.dev/docs/captions/caption) format.
-**Generate them:**
+### Generate captions
-- Use the built-in transcription script:
+- With the built-in transcription script using [`@remotion/install-whisper-cpp`](https://www.remotion.dev/docs/install-whisper-cpp/):
```console
- npm run transcribe
+ bun transcribe.ts
+ # With Node.js: `npx tsx transcribe.ts`
```
This will:
@@ -54,40 +64,10 @@ If you supply a .srt, make sure to export subtitles that are segmented by word r
## Optimizing for long audio files
-If your audio is long, pass a `.wav` file instead of another format. The template will use [`useWindowedAudioData()`](/docs/use-windowed-audio-data) to only fetch the data around the current time.
-Otherwise, the audio visualization may become a heavy duty for the browser or during rendering.
-
-## Commands
-
-**Install Dependencies**
-
-```console
-npm install
-```
-
-**Start Preview**
-
-```console
-npm run dev
-```
-
-**Render video**
-
-```console
-npx remotion render
-```
+If your audio is long, make sure to pass a `.wav` file as audio.
+The template will use [`useWindowedAudioData()`](/docs/use-windowed-audio-data) to only fetch the data around the current time.
-**Generate Transcript**
-
-```console
-npm run transcribe
-```
-
-**Upgrade Remotion**
-
-```console
-npx remotion upgrade
-```
+Otherwise, the waveform of the whole audio needs to be fetched, which may be slow.
## Docs
@@ -101,6 +81,11 @@ We provide help [on our Discord server](https://discord.gg/6VzzNDwUwV).
Found an issue with Remotion? [File an issue here](https://github.com/remotion-dev/remotion/issues/new).
+## Contributing
+
+The source of this template is in the [Remotion Monorepo](https://github.com/remotion-dev/remotion/tree/main/packages/template-audiogram).
+Don't send pull requests here, this is only a mirror.
+
## License
Note that for some entities a company license is needed. Read [the terms here](https://github.com/remotion-dev/remotion/blob/main/LICENSE.md).
diff --git a/packages/template-audiogram/package.json b/packages/template-audiogram/package.json
index 75e6a3f096..c4a633b481 100644
--- a/packages/template-audiogram/package.json
+++ b/packages/template-audiogram/package.json
@@ -3,7 +3,6 @@
"version": "1.0.0",
"description": "My Remotion video",
"scripts": {
- "transcribe": "npx tsx transcribe.ts",
"dev": "remotion studio",
"build": "remotion bundle",
"upgrade": "remotion upgrade",
diff --git a/packages/template-audiogram/src/Audiogram/Captions.tsx b/packages/template-audiogram/src/Audiogram/Captions.tsx
index 33abb9e68f..ed00c29e41 100644
--- a/packages/template-audiogram/src/Audiogram/Captions.tsx
+++ b/packages/template-audiogram/src/Audiogram/Captions.tsx
@@ -95,7 +95,6 @@ export const PaginatedCaptions: React.FC<{
const currentFrameSentences = currentAndFollowingSentences.filter((word) => {
return msToFrame(word.startMs) < frame;
});
- console.log(currentFrameSentences);
return (
<div