Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = ['ffmpeg', '-i', fname,
- '-preset', 'fast', #change this
- '-threads', '0', #use all available cores
- '-vcodec', 'libx264',
- '-crf', '33', '-maxrate', '400k', #quantizer scale, 0-51; 18 lossless, 51 lossy(+6=~half bitrate)
- '-ar', '22050',
- '-f', 'flv',
- 'rtmp://live.twitch.tv/app/' + stream_key]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement