diff --git a/Makefile b/Makefile index 45af38d..18915fe 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ docker.run: -e URL=https://www.youtube.com/watch?v=PBYKqvDK8d8 \ -e DURATION=20 \ -e OUTPUT_FILENAME=forever_tracey.mp4 \ + --shm-size=256m \ "${IMAGE}" .PHONY: docker.push diff --git a/README.md b/README.md index f589834..89b1aa0 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ docker run --rm \ -e URL=https://www.youtube.com/watch?v=PBYKqvDK8d8 \ -e DURATION=20 \ -e OUTPUT_FILENAME=forever_tracey.mp4 \ + --shm-size=256m \ cipheredbytes/url-to-video ``` This is a [sample](./samples/forever_tracey.mp4) output file. @@ -37,10 +38,10 @@ git https://github.com/OmarTrigui/url-to-video.git && cd url-to-video/ make docker.build docker.run ``` -## Todo list +## Roadmap - [ ] Add E2E tests -- [ ] Tweak recording performance +- [ ] Tune recording performance (reduce resource consumption) - [ ] Add Pub/Sub support (either [SQS](https://aws.amazon.com/sqs/) or [Kafka](https://kafka.apache.org/)) diff --git a/main.js b/main.js index 61eaaf6..c63459b 100644 --- a/main.js +++ b/main.js @@ -11,6 +11,8 @@ var opts = { tcpTimeout: 100 } +// List of Chromium Command Line Switches +// https://peter.sh/experiments/chromium-command-line-switches/ function getStartChromeCommand () { return 'DISPLAY=:1.0 /bin/sh -c ' + '"/opt/google/chrome/google-chrome ' +