hotfix #290, use iformat only for rtmp input. 2.0.95
正在显示
3 个修改的文件
包含
10 行增加
和
1 行删除
| @@ -510,6 +510,7 @@ Supported operating systems and hardware: | @@ -510,6 +510,7 @@ Supported operating systems and hardware: | ||
| 510 | 510 | ||
| 511 | ## History | 511 | ## History |
| 512 | 512 | ||
| 513 | +* v2.0, 2015-01-17, hotfix [#290](https://github.com/winlinvip/simple-rtmp-server/issues/290), use iformat only for rtmp input. 2.0.95 | ||
| 513 | * v2.0, 2015-01-08, hotfix [#281](https://github.com/winlinvip/simple-rtmp-server/issues/281), fix hls bug ignore type-9 send aud. 2.0.93 | 514 | * v2.0, 2015-01-08, hotfix [#281](https://github.com/winlinvip/simple-rtmp-server/issues/281), fix hls bug ignore type-9 send aud. 2.0.93 |
| 514 | * v2.0, 2015-01-03, fix [#274](https://github.com/winlinvip/simple-rtmp-server/issues/274), http-callback support on_dvr when reap a dvr file. 2.0.89 | 515 | * v2.0, 2015-01-03, fix [#274](https://github.com/winlinvip/simple-rtmp-server/issues/274), http-callback support on_dvr when reap a dvr file. 2.0.89 |
| 515 | * v2.0, 2015-01-03, hotfix to remove the pageUrl for http callback. 2.0.88 | 516 | * v2.0, 2015-01-03, hotfix to remove the pageUrl for http callback. 2.0.88 |
| @@ -564,6 +565,7 @@ Supported operating systems and hardware: | @@ -564,6 +565,7 @@ Supported operating systems and hardware: | ||
| 564 | * v2.0, 2014-10-18, remove supports for OSX(darwin). 2.0.1. | 565 | * v2.0, 2014-10-18, remove supports for OSX(darwin). 2.0.1. |
| 565 | * v2.0, 2014-10-16, revert github srs README to English. 2.0.0. | 566 | * v2.0, 2014-10-16, revert github srs README to English. 2.0.0. |
| 566 | 567 | ||
| 568 | +* v1.0, 2015-01-17, hotfix [#290](https://github.com/winlinvip/simple-rtmp-server/issues/290), use iformat only for rtmp input. 1.0.22 | ||
| 567 | * <strong>v1.0, 2015-01-15, [1.0r1 release(1.0.21)](https://github.com/winlinvip/simple-rtmp-server/releases/tag/1.0r1) released. 59472 lines.</strong> | 569 | * <strong>v1.0, 2015-01-15, [1.0r1 release(1.0.21)](https://github.com/winlinvip/simple-rtmp-server/releases/tag/1.0r1) released. 59472 lines.</strong> |
| 568 | * v1.0, 2015-01-08, hotfix [#281](https://github.com/winlinvip/simple-rtmp-server/issues/281), fix hls bug ignore type-9 send aud. 1.0.20 | 570 | * v1.0, 2015-01-08, hotfix [#281](https://github.com/winlinvip/simple-rtmp-server/issues/281), fix hls bug ignore type-9 send aud. 1.0.20 |
| 569 | * v1.0, 2015-01-03, hotfix to remove the pageUrl for http callback. 1.0.19 | 571 | * v1.0, 2015-01-03, hotfix to remove the pageUrl for http callback. 1.0.19 |
| @@ -209,6 +209,13 @@ int SrsFFMPEG::initialize_transcode(SrsConfDirective* engine) | @@ -209,6 +209,13 @@ int SrsFFMPEG::initialize_transcode(SrsConfDirective* engine) | ||
| 209 | return ret; | 209 | return ret; |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | + // for not rtmp input, donot append the iformat, | ||
| 213 | + // for example, "-f flv" before "-i udp://192.168.1.252:2222" | ||
| 214 | + // @see https://github.com/winlinvip/simple-rtmp-server/issues/290 | ||
| 215 | + if (input.find("rtmp://") != 0) { | ||
| 216 | + iformat = ""; | ||
| 217 | + } | ||
| 218 | + | ||
| 212 | return ret; | 219 | return ret; |
| 213 | } | 220 | } |
| 214 | 221 |
| @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 31 | // current release version | 31 | // current release version |
| 32 | #define VERSION_MAJOR 2 | 32 | #define VERSION_MAJOR 2 |
| 33 | #define VERSION_MINOR 0 | 33 | #define VERSION_MINOR 0 |
| 34 | -#define VERSION_REVISION 94 | 34 | +#define VERSION_REVISION 95 |
| 35 | 35 | ||
| 36 | // server info. | 36 | // server info. |
| 37 | #define RTMP_SIG_SRS_KEY "SRS" | 37 | #define RTMP_SIG_SRS_KEY "SRS" |
-
请 注册 或 登录 后发表评论