-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
ec7176b
commit 18ef127
Showing
10 changed files
with
107 additions
and
65 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
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Omar Trigui | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
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 |
---|---|---|
@@ -1,37 +1,50 @@ | ||
## Url-to-Video | ||
|
||
## Overview | ||
url-to-video generator allows you to create a video from html source. | ||
Url-to-Video generator allows you to create a video from html source. | ||
|
||
## Features | ||
|
||
* Full **Docker** integration (Docker based). | ||
* K8s Job deployment. | ||
* **Xvfb** in-memory display server for UNIX-like operating system that enables you to run graphical applications without a display.. | ||
* Full **Docker** integration (based on [s6-overlay](https://github.com/just-containers/s6-overlay) hypervisor). | ||
* **Xvfb** in-memory display server for UNIX-like operating system that enables you to run graphical applications without a display. | ||
* **Ffmpeg** a complete, cross-platform solution to record, convert and stream audio and video. | ||
* **Google chrome** a cross-platform web browser | ||
* **Node.js®** is a JavaScript runtime built on Chrome's V8 JavaScript engine. | ||
* **Node.js®** is a JavaScript runtime built on Chrome's V8 JavaScript engine. | ||
* **Google chrome** a cross-platform web browser. | ||
* **Node.js®** a JavaScript runtime built on Chrome's V8 JavaScript engine. | ||
* **Pulseaudio** a sound server that provides a number of features on top of the low-level audio interface ALSA on Linux. | ||
|
||
## Comparison with the existing solutions | ||
Most of the existing open source solution render web pages badly and they mainly lack audio support. | ||
This solution rised to mitigate these issues. | ||
|
||
## How to test it | ||
|
||
```bash | ||
docker run --rm \ | ||
-v /tmp/:/recordings/ \ | ||
-e URL=https://www.youtube.com/watch?v=PBYKqvDK8d8 \ | ||
-e DURATION=20 \ | ||
-e OUTPUT_FILENAME=forever_tracey.mp4 \ | ||
cipheredbytes/url-to-video | ||
``` | ||
|
||
## How to test it | ||
You will notice a new file created in the following destination [/tmp/forever_tracey.mp4](https://github.com/OmarTrigui/url-to-video/raw/master/samples/forever_tracey.mp4). | ||
|
||
Go to the directory where you want to create your project and run: | ||
## Development | ||
|
||
Go to the project directory and run the following command: | ||
|
||
```bash | ||
git https://github.com/OmarTrigui/url-to-video.git && cd url-to-video/ | ||
make docker.build docker.run | ||
``` | ||
|
||
You will notice a new file created in the following destination `/tmp/forever_tracey.mp4` | ||
|
||
|
||
## TODO list | ||
|
||
- [ ] Support pub/sub pattern (SQS queue) | ||
- [ ] Add K8s deployments / docker compose | ||
- [ ] Add E2E tests | ||
- [ ] Tweak recording performance | ||
- [ ] Add Pub/Sub support (either [SQS](https://aws.amazon.com/sqs/) or [Kafka](https://kafka.apache.org/)) | ||
|
||
|
||
## Calling all contributors! | ||
Are you eager to use your skills to do good and aid humanity? We are building a very ambitious software and your contribution could make a huge difference. | ||
## Contributing | ||
Contributions are always welcome, whether adding/suggesting new features, bug fixes, | ||
documenting new file formats or simply editing some grammar. |
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,4 @@ | ||
# Contributors to html-to-video | ||
Includes all git commit authors. Aliases are GitHub user names. | ||
|
||
* OmarTrigui |
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
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
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
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
Binary file not shown.