正在显示
3 个修改的文件
包含
20 行增加
和
17 行删除
| @@ -31,8 +31,11 @@ step 4: publish live stream <br/> | @@ -31,8 +31,11 @@ step 4: publish live stream <br/> | ||
| 31 | FMS URL: rtmp://127.0.0.1:1935/live | 31 | FMS URL: rtmp://127.0.0.1:1935/live |
| 32 | Stream: livestream | 32 | Stream: livestream |
| 33 | For example, use ffmpeg to publish: | 33 | For example, use ffmpeg to publish: |
| 34 | - ffmpeg -re -i source.flv -vcodec copy -acodec copy \ | ||
| 35 | - -f flv -y rtmp://127.0.0.1:1935/live/livestream | 34 | + for((;;)); do \ |
| 35 | + ./objs/ffmpeg/bin/ffmpeg -re -i doc/source.flv -vcodec copy -acodec copy \ | ||
| 36 | + -f flv -y rtmp://127.0.0.1:1935/live/livestream; \ | ||
| 37 | + sleep 1; \ | ||
| 38 | + done | ||
| 36 | </pre> | 39 | </pre> |
| 37 | step 5: play live stream <br/> | 40 | step 5: play live stream <br/> |
| 38 | <pre> | 41 | <pre> |
| @@ -41,8 +44,8 @@ m3u8 url: http://127.0.0.1:80/live/livestream.m3u8 | @@ -41,8 +44,8 @@ m3u8 url: http://127.0.0.1:80/live/livestream.m3u8 | ||
| 41 | </pre> | 44 | </pre> |
| 42 | step 6: play live stream auto transcoded<br/> | 45 | step 6: play live stream auto transcoded<br/> |
| 43 | <pre> | 46 | <pre> |
| 44 | -rtmp url: rtmp://127.0.0.1:1935/live/livestream_fast | ||
| 45 | -m3u8 url: http://127.0.0.1:80/live/livestream_fast.m3u8 | 47 | +rtmp url: rtmp://127.0.0.1:1935/live/livestream_ld |
| 48 | +m3u8 url: http://127.0.0.1:80/live/livestream_ld.m3u8 | ||
| 46 | rtmp url: rtmp://127.0.0.1:1935/live/livestream_sd | 49 | rtmp url: rtmp://127.0.0.1:1935/live/livestream_sd |
| 47 | m3u8 url: http://127.0.0.1:80/live/livestream_sd.m3u8 | 50 | m3u8 url: http://127.0.0.1:80/live/livestream_sd.m3u8 |
| 48 | </pre> | 51 | </pre> |
| @@ -20,7 +20,7 @@ vhost __defaultVhost__ { | @@ -20,7 +20,7 @@ vhost __defaultVhost__ { | ||
| 20 | enabled on; | 20 | enabled on; |
| 21 | ffmpeg ./objs/ffmpeg/bin/ffmpeg; | 21 | ffmpeg ./objs/ffmpeg/bin/ffmpeg; |
| 22 | #ffmpeg ./research/ffempty/ffempty; | 22 | #ffmpeg ./research/ffempty/ffempty; |
| 23 | - engine fast{ | 23 | + engine ld{ |
| 24 | enabled on; | 24 | enabled on; |
| 25 | vfilter { | 25 | vfilter { |
| 26 | #vf 'drawtext=text=SRS'; | 26 | #vf 'drawtext=text=SRS'; |
| @@ -31,7 +31,7 @@ vhost __defaultVhost__ { | @@ -31,7 +31,7 @@ vhost __defaultVhost__ { | ||
| 31 | vcodec libx264; | 31 | vcodec libx264; |
| 32 | vbitrate 300; | 32 | vbitrate 300; |
| 33 | vfps 20; | 33 | vfps 20; |
| 34 | - vwidth 480; | 34 | + vwidth 768; |
| 35 | vheight 320; | 35 | vheight 320; |
| 36 | vthreads 1; | 36 | vthreads 1; |
| 37 | vprofile baseline; | 37 | vprofile baseline; |
| @@ -45,7 +45,7 @@ vhost __defaultVhost__ { | @@ -45,7 +45,7 @@ vhost __defaultVhost__ { | ||
| 45 | aparams { | 45 | aparams { |
| 46 | profile:a aac_low; | 46 | profile:a aac_low; |
| 47 | } | 47 | } |
| 48 | - output rtmp://[vhost]:[port]/[app]/[stream]_fast; | 48 | + output rtmp://[vhost]:[port]/[app]/[stream]_ld; |
| 49 | } | 49 | } |
| 50 | engine sd{ | 50 | engine sd{ |
| 51 | enabled on; | 51 | enabled on; |
| @@ -55,8 +55,8 @@ vhost __defaultVhost__ { | @@ -55,8 +55,8 @@ vhost __defaultVhost__ { | ||
| 55 | vcodec libx264; | 55 | vcodec libx264; |
| 56 | vbitrate 500; | 56 | vbitrate 500; |
| 57 | vfps 20; | 57 | vfps 20; |
| 58 | - vwidth 720; | ||
| 59 | - vheight 480; | 58 | + vwidth 768; |
| 59 | + vheight 320; | ||
| 60 | vthreads 1; | 60 | vthreads 1; |
| 61 | vprofile main; | 61 | vprofile main; |
| 62 | vpreset fast; | 62 | vpreset fast; |
| @@ -85,7 +85,7 @@ vhost all.transcode.vhost.com { | @@ -85,7 +85,7 @@ vhost all.transcode.vhost.com { | ||
| 85 | # the transcode engine for matched stream. | 85 | # the transcode engine for matched stream. |
| 86 | # all matched stream will transcoded to the following stream. | 86 | # all matched stream will transcoded to the following stream. |
| 87 | # the transcode set name(ie. hd) is optional and not used. | 87 | # the transcode set name(ie. hd) is optional and not used. |
| 88 | - engine super{ | 88 | + engine ffsuper{ |
| 89 | # whether the engine is enabled | 89 | # whether the engine is enabled |
| 90 | # default: off. | 90 | # default: off. |
| 91 | enabled on; | 91 | enabled on; |
| @@ -143,9 +143,9 @@ vhost all.transcode.vhost.com { | @@ -143,9 +143,9 @@ vhost all.transcode.vhost.com { | ||
| 143 | # [port] the intput stream port. | 143 | # [port] the intput stream port. |
| 144 | # [app] the input stream app. | 144 | # [app] the input stream app. |
| 145 | # [stream] the input stream name. | 145 | # [stream] the input stream name. |
| 146 | - output rtmp://[vhost]:[port]/[app]/[stream]_super; | 146 | + output rtmp://[vhost]:[port]/[app]/[stream]_ffsuper; |
| 147 | } | 147 | } |
| 148 | - engine hd{ | 148 | + engine ffhd{ |
| 149 | enabled on; | 149 | enabled on; |
| 150 | vcodec libx264; | 150 | vcodec libx264; |
| 151 | vbitrate 1200; | 151 | vbitrate 1200; |
| @@ -163,9 +163,9 @@ vhost all.transcode.vhost.com { | @@ -163,9 +163,9 @@ vhost all.transcode.vhost.com { | ||
| 163 | achannels 2; | 163 | achannels 2; |
| 164 | aparams { | 164 | aparams { |
| 165 | } | 165 | } |
| 166 | - output rtmp://[vhost]:[port]/[app]/[stream]_hd; | 166 | + output rtmp://[vhost]:[port]/[app]/[stream]_ffhd; |
| 167 | } | 167 | } |
| 168 | - engine sd{ | 168 | + engine ffsd{ |
| 169 | enabled on; | 169 | enabled on; |
| 170 | vcodec libx264; | 170 | vcodec libx264; |
| 171 | vbitrate 800; | 171 | vbitrate 800; |
| @@ -183,9 +183,9 @@ vhost all.transcode.vhost.com { | @@ -183,9 +183,9 @@ vhost all.transcode.vhost.com { | ||
| 183 | achannels 2; | 183 | achannels 2; |
| 184 | aparams { | 184 | aparams { |
| 185 | } | 185 | } |
| 186 | - output rtmp://[vhost]:[port]/[app]/[stream]_sd; | 186 | + output rtmp://[vhost]:[port]/[app]/[stream]_ffsd; |
| 187 | } | 187 | } |
| 188 | - engine fast{ | 188 | + engine fffast{ |
| 189 | enabled on; | 189 | enabled on; |
| 190 | vcodec libx264; | 190 | vcodec libx264; |
| 191 | vbitrate 300; | 191 | vbitrate 300; |
| @@ -203,7 +203,7 @@ vhost all.transcode.vhost.com { | @@ -203,7 +203,7 @@ vhost all.transcode.vhost.com { | ||
| 203 | achannels 2; | 203 | achannels 2; |
| 204 | aparams { | 204 | aparams { |
| 205 | } | 205 | } |
| 206 | - output rtmp://[vhost]:[port]/[app]/[stream]_fast; | 206 | + output rtmp://[vhost]:[port]/[app]/[stream]_fffast; |
| 207 | } | 207 | } |
| 208 | } | 208 | } |
| 209 | } | 209 | } |
trunk/doc/source.flv
0 → 100644
不能预览此文件类型
-
请 注册 或 登录 后发表评论