Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Remotion promotion
Search
White-Green
November 16, 2025
Programming
0
69
Remotion promotion
AkarengaLT vol.39
で話したスライドです
Remotion
の紹介をしています
White-Green
November 16, 2025
Tweet
Share
More Decks by White-Green
See All by White-Green
Ruby as a Frontend for Programming Language Implementations (RubyKaigi 2025 LT)
whitegreen
0
74
U-22 プログラミング・コンテスト 2021登壇資料
whitegreen
0
320
技育展2021登壇資料
whitegreen
0
55
Compile Time Mathematics in Rust
whitegreen
0
99
Other Decks in Programming
See All in Programming
AIと協働し、イベントソーシングとアクターモデルで作る後悔しないアーキテクチャ Regret-Free Architecture with AI, Event Sourcing, and Actors
tomohisa
5
16k
WebRTC、 綺麗に見るか滑らかに見るか
sublimer
1
110
Herb to ReActionView: A New Foundation for the View Layer @ San Francisco Ruby Conference 2025
marcoroth
0
230
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
190
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
170
最新のDirectX12で使えるレイトレ周りの機能追加について
projectasura
0
330
「文字列→日付」の落とし穴 〜Ruby Date.parseの意外な挙動〜
sg4k0
0
340
競馬で学ぶ機械学習の基本と実践 / Machine Learning with Horse Racing
shoheimitani
14
14k
エディターってAIで操作できるんだぜ
kis9a
0
540
AIコードレビューがチームの"文脈"を 読めるようになるまで
marutaku
0
250
sbt 2
xuwei_k
0
130
複数人でのCLI/Infrastructure as Codeの暮らしを良くする
shmokmt
5
2k
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Why Our Code Smells
bkeepers
PRO
340
57k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
990
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Designing for humans not robots
tammielis
254
26k
The Invisible Side of Design
smashingmag
302
51k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
Transcript
Remotion https://www.npmjs.com/package/remotion 1
Remotion is 何 • 昔は 「Write Videos in React」 みたいなコピーだった
• Write+Video? • Video+Reactjs? 2 https://remotion.dev
Remotion is 何 • Reactjsで動画を作れます 3
Remotion is 何 • 普通のReact Component • useCurrentFrame hook •
「今レンダリングしようとしているフレー ムが何フレーム目なのか」がとれるフック • フレーム番号を増やしながらレンダリ ング • ChromeのAPIでスクリーンショット • 連番画像からffmpegでmp4に • これをサポートするAPIがいっぱい (e.g. イージング) 4 https://www.remotion.dev/docs/the-fundamentals から抜粋および編集
Remotion pros • Web資産が使い放題 • スクリプト制御が楽 5
Remotion cons • デザインが大変 • レンダリングが重い • テキストは本質的に1次元 6
Pros: Web資産が使い放題 • css filter • blur、drop-shadowなど • 数式、Syntax Highlighting
• react-katex、highlightjs • svgをframeでアニメーション • svg pathの先頭n%のみを取得するAPIがある • .psdを組み替えてpngにするwasmプログラム(Rust製) • 逆に、Web需要が無い機能は無い • 文字の縁取り • トーンカーブ(filterだと線形変換しかできない) • Remotionの処理方法と合わず利用不可の機能(cssアニメーション) 7
Pros:スクリプト制御が楽 • y=abs(sin(frame)) ← 自明 • [x,y]=[random(),random()] ← 自明(randomが専用品) •
音声合成ソフトウェアで音声と同時に音素情報を作っておき、 パースして「あ」「い」「う」「え」「お」に対応する画像を出し分ける 8
Cons: デザインが大変 • 「マージンを1px単位で調整」みたいなことがWebページより高 頻度で発生 • 編集→Ctrl+S→確認→編集… • visualControl APIでだいぶマシに
9 https://www.remotion.dev/docs/studio/visual-control より抜粋
Cons: レンダリングが重い • 1フレームをレンダリングするのに200msぐらいかかってそう • 60fpsだと16.7ms/フレームなので12倍 • 私の使いかたが悪いか? • 10分ちょっとの動画レンダリングに2時間
• AWS Lambdaで動かす力技(試してない) • https://www.remotion.dev/docs/lambda/api • プレビュー画面も重い(ちゃんとしたソフトならレンダリング結果 のキャッシュとかがあるが…) 10
Cons: テキストは本質的に1次元 • 現代の動画編集ソフトのUIはこんな感じ • 横軸が時間、縦軸がオブジェクト同士の重なり • これはClipchamp • (収斂進化とかでもなんでもなく、フィルムを切
り貼りする操作のGUIへの射影から一切進化 してないだけという別の文句) • 字幕1、2、3と画像をタイミングをずらして 表示 11
Cons: テキストは本質的に1次元 • fromとdurationInFramesを手計 算するんですか? 12
Cons: テキストは本質的に1次元 • コンポーネントが細切れになってつらい • コンポーネントだからまだマシだが、設定をべ た書きしてたりすると… • 「ゲーム文脈ではあまりアグレッシブな共通化はす るべきではない」みたいな話ありましたよね
13
Cons: テキストは本質的に1次元 • タイムラインを縦か横に輪切りにして1次元に直して記述する必要 がある • 実現したい表現によって向き不向きがあるのでうまく選べば多少 マシになる 14
まとめ • Remotionというパッケージを紹介 • Reactjsで動画を書ける • Pros: Web資産が使い放題 • Pros:
スクリプト制御が楽 • Cons: デザインが大変 • Cons: レンダリングが重い • Cons: テキストは本質的に1次元 • ブラウザ、Reactエコシステムの変な活用方法としておもしろい 15