Giter VIP home page Giter VIP logo

yt-dlp-chat-to-video's Introduction

yt-dlp - Live Chat JSON to MP4 Video

Converts .live_chat.json from yt-dlp to .mp4 video for overlaying live chats over recorded streams.


screenshot_1 screenshot_2

How to use

  1. Install Node.js

  2. Install FFmpeg
    (For Windows users: download ffmpeg.exe and place it next to the script file)

  3. Install dependencies

    npm install
  4. Download the YouTube stream with live chat replay using yt-dlp:

    yt-dlp --live-from-start --write-subs https://www.youtube.com/watch?v=CqnNp8kwE78
  5. After the stream download completes, a video_id.live_chat.json file will appear in the directory.
    Pass this file to the script:

    node ./chat-to-video.js video_id.live_chat.json

    When conversion is complete, the result will be in the output.mp4 file

Command line arguments

node ./chat-to-video.js [OPTIONS] video_id.live_chat.json -o output.mp4

Options

  • -o output.mp4 --output output.mp4 - Output filename
  • --width 385 - Video width
  • --height 400 - Video height
  • --frame-rate 10 - Video framerate
  • --font 'bold 16pt Arial' - Chat font
  • --background-color '#000000' - Chat background color
  • --author-color '#aaaaaa' - Author name color
  • --message-color '#ffffff' - Message text color
  • --from 0 - Start time in seconds
  • --to 60 - End time in seconds
  • --no-avatars - Skip downloading user avatars

yt-dlp-chat-to-video's People

Contributors

koshkokoshka 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.