Code Monkey home page Code Monkey logo

url-to-video's Introduction

Url-to-Video

Overview

Url-to-Video generator allows you to create a video from html source. This project aims mainly to convert HTML content into video which could be useful in several use cases.

Features

  • Full Docker integration (based on 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® 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.

Brief insights about the existing solutions

Nowadays, the existing open source solutions are either based on casperjs or puppeteer. As a result, the generated videos doesn't cover well rendered web pages and they mainly lack audio support. Fortunately, this project rised to mitigate these issues and fill the gap.

How to test it

After executing the following command, you will notice a new file created in the following destination /tmp/forever_tracey.mp4.

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

This is a sample output file.

Development

Run the following commands to build and run the project:

git https://github.com/OmarTrigui/url-to-video.git && cd url-to-video/
make docker.build docker.run

Todo list

  • Add E2E tests
  • Tweak recording performance
  • Add Pub/Sub support (either SQS or Kafka)

Contributing

Contributions are always welcome, whether adding/suggesting new features, bug fixes, documenting new file formats or simply editing some grammar.

License

This project is licensed under the MIT license - check the LICENSE file for details.

url-to-video's People

Contributors

omartrigui avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.