-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTMP: Nginx-rtmp streaming to SRS failed for dropping AMF0 message. #958
Comments
Other logs to add: [2017-08-19 20:55:15.940][trace][2693][107] RTMP client ip=127.0.0.1
|
Summary of the following four usage scenarios, recorded here:
|
The aforementioned issues, two of which cannot be played, have been identified with approximate reasons. Regarding the aforementioned issue 3, the reason is that nginx-rtmp is configured with the option "idle_streams on," which causes the origin request to fail when nginx-rtmp is used as an edge server. This option should not be used in this scenario. As for the aforementioned issue 4, the reason is that the user added first frame caching in nginx-rtmp (added by the user themselves), which caused compatibility issues. There is no problem with SRS and nginx-rtmp pushing and pulling streams from each other.
|
When pushing the stream from nginx-rtmp to srs, the flash publish mode is used. This mode works fine in version 3.0 but has issues in version 2.0. Commenting out the "return ERROR_CONTROL_REPUBLISH;" in the following code can make it compatible.
|
Reopen this issue for it may exists in 5.0, see #3620 |
The origin server uses Nginx-rtmp to push the stream to SRS, but an error occurs and the video cannot be played. However, if SRS pulls the stream from Nginx-rtmp, there is no problem and it can be played.
SRS version related information:
server:SRS/2.0.243(ZhouGuowen)
server_version:2.0.243
Video related information:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.18.100
Duration: 00:09:56.50, start: 0.021333, bitrate: 598 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 464 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
The following is the error log:
[2017-08-18 23:04:01.927][trace][5327][2198] identify ignore messages except AMF0/AMF3 command message. type=0x8
[2017-08-18 23:04:01.927][trace][5327][2198] identify ignore messages except AMF0/AMF3 command message. type=0x9
[2017-08-18 23:04:01.927][trace][5327][598] identify ignore messages except AMF0/AMF3 command message. type=0x8
[2017-08-18 23:04:01.927][trace][5327][598] identify ignore messages except AMF0/AMF3 command message. type=0x9
[2017-08-18 23:04:01.927][trace][5327][598] identify ignore messages except AMF0/AMF3 command message. type=0x8
[2017-08-18 23:04:01.927][trace][5327][598] identify ignore messages except AMF0/AMF3 command message. type=0x9
[2017-08-18 23:04:01.927][trace][5327][570] identify ignore messages except AMF0/AMF3 command message. type=0x8
[2017-08-18 23:04:01.927][trace][5327][570] identify ignore messages except AMF0/AMF3 command message. type=0x9
[2017-08-18 23:04:01.927][trace][5327][570] identify ignore messages except AMF0/AMF3 command message. type=0x8
[2017-08-18 23:04:01.927][trace][5327][570] identify ignore messages except AMF0/AMF3 command message. type=0x9
[2017-08-18 23:04:01.927][trace][5327][542] identify ignore messages except AMF0/AMF3 command message. type=0x8
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: