diff --git a/FFmpeg-recording-and-live-streaming.md b/FFmpeg-recording-and-live-streaming.md index d47f7bd..cc27603 100644 --- a/FFmpeg-recording-and-live-streaming.md +++ b/FFmpeg-recording-and-live-streaming.md @@ -39,4 +39,25 @@ The recognized config options are: audio_bit_rate = # Audio bit rate (CBR). This is in bit/s, so use e.g. 192000 for 192 kb/s. video_{option} = # Sets generic video option {option} to . This is codec specific. Mostly useful for libx264. - audio_{option} = # Sets generic audio option {option} to . This is codec specific. \ No newline at end of file + audio_{option} = # Sets generic audio option {option} to . This is codec specific. + +## Live streaming + +RetroArch can live stream to RTMP services like [twitch](http://www.twitch.tv/). +To live stream there. Create a config that is tailored for twitch. Example: + + vcodec = libx264 + acodec = libmp3lame + pix_fmt = yuv420p + scale_factor = 2 + threads = 3 + video_crf = 25 + video_preset = superfast + video_tune = animation + audio_global_quality = 75 + sample_rate = 44100 + format = flv + +Now you can stream to twitch with a command like: + + retroarch --record rtmp://live.twitch.tv/app/$YOUR_TWITCH_ID --recordconfig twitch.cfg \ No newline at end of file