Giter Site home page Giter Site logo

ffmpeg-youtube-live's Introduction

https://travis-ci.org/scivision/ffmpeg-youtube-live.svg?branch=master https://coveralls.io/repos/github/scivision/ffmpeg-youtube-live/badge.svg?branch=master Python versions (PyPI) Distribution format (PyPI) Maintainability

FFmpeg can easily be used to stream to YouTube Live for streaming broadcasts. These Python scripts compute the optimal parameters. Should work on any OS (Mac, Linux, Windows).

Linux:requires X11, not Wayland (choose at login)
FFmpeg:>= 3.0 required
Python:>= 3.6 required

From PyPi:

python -m pip install YouTubeLiveFFmpeg

Or for the latest copy from Github:

python -m pip install -e .

In all cases, you must first configure YouTube Live. Then your chosen input will stream live on YouTube Live.

In the non-file streaming scripts, you can specify your video/audio device if desired at the top of the script. You can find device names with commands like:

  • Windows: ffmpeg -list_devices true -f dshow -i dummy
  • Mac: ffmpeg -f avfoundation -list_devices true -i ""
  • Linux: v4l2-ctl --list-devices

Audio is included:

python Webcam2YouTubeLive.py

Audio is included:

python Screenshare2YouTubeLive.py
-fps set frames/second
-res set resolution XxY of your screen
-o set origin (upper left)

Glob list of video files to stream:

python FileGlob2YouTubeLive.py path pattern
-loop optionally loop endlessly the globbed file list
python FileGlob2YouTubeLive.py ~/Videos "*.avi"
python FileGlob2YouTubeLive.py ~/Videos "*.avi" -loop

Glob list of video files to stream. Note you must include a static image (could be your logo):

python FileGlob2YouTubeLive.py path pattern -i image

path path to where video files are pattern e.g. "*.avi" pattern matching video files -i filename of image to use as stream background

e.g. stream all .mp3 audio under ~/Library directory:

python FileGlob2YouTubeLive.py ~/Library "*.mp3" -i mylogo.jpg
FileLoop2YouTubeLive.py videofile

This is NOT streaming, just saves to a file on your disk, perhaps for upload as a standard non-live YouTube video:

python ScreenCapture2disk.py myvid.avi

ffmpeg-youtube-live's People

Contributors

scivision avatar

Watchers

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