-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yogesh
authored and
Yogesh
committed
Aug 3, 2021
0 parents
commit 7a6946f
Showing
135 changed files
with
47,322 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "@remotion" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
titleText: | ||
description: "Which text should it say?" | ||
required: true | ||
default: "Welcome to Remotion" | ||
titleColor: | ||
description: "Which color should it be in?" | ||
required: true | ||
default: "black" | ||
name: Render video | ||
jobs: | ||
render: | ||
name: Render video | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- uses: actions/setup-node@main | ||
- run: sudo apt update | ||
- run: sudo apt install ffmpeg | ||
- run: npm i | ||
- run: npm run build -- --props="$WORKFLOW_INPUT" | ||
env: | ||
WORKFLOW_INPUT: ${{ toJson(github.event.inputs) }} | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: out.mp4 | ||
path: out.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
node_modules | ||
dist | ||
.DS_Store | ||
|
||
# Ignore the output video from Git but not videos you import into src/. | ||
*.mp4 | ||
!src**/*.mp4 | ||
*.mp3 | ||
!src**/*.mp3 | ||
*.webm | ||
!src**/*.webm | ||
*.aac | ||
!src**/*.aac | ||
*.wav | ||
!src**/*.wav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"jsxBracketSameLine": false, | ||
"useTabs": true, | ||
"overrides": [ | ||
{ | ||
"files": ["*.yml"], | ||
"options": { | ||
"singleQuote": false | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": false, | ||
"source.fixAll": true | ||
}, | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This is a dockerized version of a server that you can easily deploy somewhere. | ||
# If you don't want server rendering, you can safely delete this file. | ||
|
||
FROM node:alpine | ||
|
||
# Installs latest Chromium (85) package. | ||
RUN apk add --no-cache \ | ||
chromium \ | ||
nss \ | ||
freetype \ | ||
freetype-dev \ | ||
harfbuzz \ | ||
ca-certificates \ | ||
ttf-freefont \ | ||
ffmpeg \ | ||
font-noto-emoji | ||
|
||
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package. | ||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ | ||
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser | ||
|
||
COPY package*.json ./ | ||
COPY tsconfig.json ./ | ||
COPY src src | ||
COPY *.ts . | ||
COPY *.tsx . | ||
|
||
RUN npm i | ||
|
||
# Add user so we don't need --no-sandbox. | ||
RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \ | ||
&& mkdir -p /home/pptruser/Downloads /app \ | ||
&& chown -R pptruser:pptruser /home/pptruser \ | ||
&& chown -R pptruser:pptruser /app | ||
# Run everything after as non-privileged user. | ||
USER pptruser | ||
|
||
EXPOSE 8000 | ||
|
||
CMD ["npm", "run", "server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Remotion video | ||
|
||
<p align="center"> | ||
<a href="https://github.com/remotion-dev/logo"> | ||
<img src="https://github.com/remotion-dev/logo/raw/main/withtitle/element-0.png"> | ||
</a> | ||
</p> | ||
|
||
Welcome to your Remotion project! | ||
|
||
## Commands | ||
|
||
**Start Preview** | ||
|
||
```console | ||
npm start | ||
``` | ||
|
||
**Render video** | ||
|
||
```console | ||
npm run build | ||
``` | ||
|
||
**Server render demo** | ||
|
||
```console | ||
npm run server | ||
``` | ||
|
||
See [docs for server-side rendering](https://www.remotion.dev/docs/ssr) here. | ||
|
||
**Upgrade Remotion** | ||
|
||
```console | ||
npm run upgrade | ||
``` | ||
|
||
## Docs | ||
|
||
Get started with Remotion by reading the [fundamentals page](https://www.remotion.dev/docs/the-fundamentals). | ||
|
||
## Issues | ||
|
||
Found an issue with Remotion? [File an issue here](https://github.com/remotion-dev/remotion/issues/new). | ||
|
||
## License | ||
|
||
Notice that for some entities a company license is needed. Read [the terms here](https://github.com/remotion-dev/remotion/blob/main/LICENSE.md). |
Oops, something went wrong.