正在显示
3 个修改的文件
包含
9 行增加
和
1 行删除
@@ -385,6 +385,7 @@ Supported operating systems and hardware: | @@ -385,6 +385,7 @@ Supported operating systems and hardware: | ||
385 | 385 | ||
386 | ## History | 386 | ## History |
387 | 387 | ||
388 | +* 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 | ||
388 | * <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> | 389 | * <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> |
389 | * 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 | 390 | * 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 |
390 | * v1.0, 2015-01-03, hotfix to remove the pageUrl for http callback. 1.0.19 | 391 | * 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 1 | 32 | #define VERSION_MAJOR 1 |
33 | #define VERSION_MINOR 0 | 33 | #define VERSION_MINOR 0 |
34 | -#define VERSION_REVISION 21 | 34 | +#define VERSION_REVISION 22 |
35 | // server info. | 35 | // server info. |
36 | #define RTMP_SIG_SRS_KEY "SRS" | 36 | #define RTMP_SIG_SRS_KEY "SRS" |
37 | #define RTMP_SIG_SRS_ROLE "origin/edge server" | 37 | #define RTMP_SIG_SRS_ROLE "origin/edge server" |
-
请 注册 或 登录 后发表评论