Changes between Version 4 and Version 5 of EncodingForStreamingSites
- Timestamp:
- Mar 10, 2016, 7:07:50 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EncodingForStreamingSites
v4 v5 1 1 = Encoding for streaming sites = 2 2 3 Such as justin.tv,twitch.tv, ustream.tv, !YouTube Live, and other RTMP(E) streaming providers. Since FFmpeg development is very active it is recommend that you follow a [[CompilationGuide|compilation guide]] to take advantage of bug fixes and new features.3 Such as twitch.tv, ustream.tv, !YouTube Live, and other RTMP(E) streaming providers. Since FFmpeg development is very active it is recommend that you follow a [[CompilationGuide|compilation guide]] to take advantage of bug fixes and new features. 4 4 5 5 {{{ … … 49 49 $ ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -framerate 30 -video_size 1280x720 \ 50 50 -i :0.0+0,0 -vcodec libx264 -preset veryfast -maxrate 1984k -bufsize 3968k \ 51 -vf "format=yuv420p" -g 60 - acodec libmp3lame -b:a 96k -ar 44100 \52 -f flv rtmp://live. justin.tv/app/<stream key>51 -vf "format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100 \ 52 -f flv rtmp://live.twitch.tv/app/<stream key> 53 53 }}} 54 54 … … 60 60 $ ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -framerate 30 -video_size 1680x1050 \ 61 61 -i :0.0+0,0 -vcodec libx264 -preset veryfast -maxrate 3000k -bufsize 3000k \ 62 -vf "scale=1280:-1,format=yuv420p" -g 60 - acodec libmp3lame -b:a 96k -ar 44100 \63 -f flv rtmp://live. justin.tv/app/<stream key>62 -vf "scale=1280:-1,format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100 \ 63 -f flv rtmp://live.twitch.tv/app/<stream key> 64 64 }}} 65 65 … … 78 78 [bg][fg]overlay=W-w-10:10,format=yuv420p[out]" 79 79 -map "[out]" -map 2:a -vcodec libx264 -preset veryfast \ 80 -maxrate 3000k -bufsize 4000k - acodec libmp3lame -ar 44100 -b:a 128k\81 -f flv rtmp://live. justin.tv/app/<stream key>80 -maxrate 3000k -bufsize 4000k -c:a aac -b:a 160k -ar 44100 \ 81 -f flv rtmp://live.twitch.tv/app/<stream key> 82 82 }}} 83 83 … … 99 99 [bg2][3:v]overlay=W-w-10:H-h-10,format=yuv420p[out]" 100 100 -map "[out]" -map 2:a -vcodec libx264 -preset veryfast \ 101 -maxrate 3000k -bufsize 4000k - acodec libmp3lame-ar 44100 -b:a 128k \102 -f flv rtmp://live. justin.tv/app/<stream key>101 -maxrate 3000k -bufsize 4000k -c:a aac -b:a 160k -ar 44100 -b:a 128k \ 102 -f flv rtmp://live.twitch.tv/app/<stream key> 103 103 }}} 104 104 … … 109 109 {{{ 110 110 $ ffmpeg -re -i input.mkv -vcodec libx264 -preset veryfast -maxrate 3000k \ 111 -bufsize 6000k -pix_fmt yuv420p -g 50 - acodec libmp3lame -b:a 128k -ac 2 \112 -ar 44100 -f flv rtmp://live. justin.tv/app/<stream key>111 -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 \ 112 -ar 44100 -f flv rtmp://live.twitch.tv/app/<stream key> 113 113 }}} 114 114 … … 124 124 Then [http://ffmpeg.org/ffmpeg.html#Stream-copy stream copy] it to the streaming service: 125 125 {{{ 126 $ ffmpeg -re -i file.flv -codec copy -f flv rtmp://live. justin.tv/app/<stream key>126 $ ffmpeg -re -i file.flv -codec copy -f flv rtmp://live.twitch.tv/app/<stream key> 127 127 }}} 128 128
