Skip to content

rakshith95/python-ffmpeg-youtube-live

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

python-ffmpeg-youtube-live

Simple code to stream from a python program using opencv to Youtube Live using ffmpeg

  • Run with: python capture.py <video path/camera device> <YOUTUBE_KEY>

  • The python code streams to stdout buffer, which ffmpeg reads in as a pipe input.

  • Change the ffmpeg parameters in the program to suit your requirements

  • The -f lavfi -i anullsrc -acodec libmp3lame -ar 44100 adds dummy audio to be able to stream to YouTube Live.

  • Pipe breaks without the cv2.imencode. I don't fully understand why

About

Simple code to stream from a python program using opencv to Youtube Live using ffmpeg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages