Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- python3 script.py | # run python script and pipe it's stdout to ffmpeg
- ffmpeg # ffmpeg binary path
- -f rawvideo # input container is rawvideo
- -vcodec rawvideo # input codec is rawvideo
- -s 640x360 # size of input frame
- -pix_fmt rgba # input pixel format
- -r 30 # framerate
- -i - # input is coming from stdin through pipe
- -f lavfi # dummy audio
- -i anullsrc # dummy audio
- -c:v libx264 # encode output as h264
- -b:v 1M # bitrate for output 1Mbit
- -f flv # output container flv
- rtmp://x.rtmp.youtube.com/live2/LIVE_STREAM_KEY \ # YouTube RTMP address followed by key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement