Unfortunately the server keeps crashing instantly when I connect via OBS (am I doing something wrong?)
/usr/local/src/rtmp_relay/bin[master]# ./rtmp_relay --config /home/chaos/rtmp-config.cfg
2019.01.27 02:43:11: Server listening on 0.0.0.0:13005
2019.01.27 02:43:11: Server listening on 0.0.0.0:13004
2019.01.27 02:43:11: ----------------- RTMP Relay sn -----------------
2019.01.27 02:43:14: Client connected from X.X.X.98:59128 to 0.0.0.0:13004
2019.01.27 02:43:14: [CON:2 /] Create connection
2019.01.27 02:43:14: Socket received 1537 bytes from X.X.X.98:59128
2019.01.27 02:43:14: [CON:2 /] Got 1537 bytes
2019.01.27 02:43:14: [CON:2 /] Got version 3
2019.01.27 02:43:14: [CON:2 /] Sending reply version 3
2019.01.27 02:43:14: [CON:2 /] Got challenge message, time: 2392521100, version: 0.0.0.0
2019.01.27 02:43:14: [CON:2 /] Sending challange reply message
2019.01.27 02:43:14: [CON:2 /] Sending Ack message
2019.01.27 02:43:14: [CON:2 /] Remaining data 0
2019.01.27 02:43:14: Socket sent 3073 bytes to X.X.X.98:59128
2019.01.27 02:43:14: Socket received 1536 bytes from X.X.X.98:59128
2019.01.27 02:43:14: [CON:2 /] Got 1536 bytes
2019.01.27 02:43:14: [CON:2 /] Got Ack reply message, time: 0, version: 2.0.0.0
2019.01.27 02:43:14: [CON:2 /] Handshake done
2019.01.27 02:43:14: [CON:2 /] Remaining data 0
2019.01.27 02:43:14: Socket received 214 bytes from X.X.X.98:59128
2019.01.27 02:43:14: [CON:2 /] Got 214 bytes
2019.01.27 02:43:14: Header type: TWELVE_BYTE(0), channel: 2, ts: 0, data length: 4, message type: SET_CHUNK_SIZE(1), message stream ID: 0, final timestamp: 0
2019.01.27 02:43:14: [CON:2 /] Total packet size: 16
2019.01.27 02:43:14: [CON:2 /] Received SET_CHUNK_SIZE, parameter: 4096
2019.01.27 02:43:14: Header type: TWELVE_BYTE(0), channel: 3, ts: 0, data length: 186, message type: AMF0_INVOKE(20), message stream ID: 0, final timestamp: 0
2019.01.27 02:43:14: [CON:2 /] Total packet size: 198
2019.01.27 02:43:14: [CON:2 /] Received INVOKE, command: Type: String(5), value: connect
2019.01.27 02:43:14: [CON:2 /] Transaction ID: Type: Double(3), value: 1.000000
2019.01.27 02:43:14: [CON:2 /] Argument 1: Type: Object(6), values:
app: Type: String(5), value: app/chaos
flashVer: Type: String(5), value: FMLE/3.0 (compatible; FMSc/1.0)
swfUrl: Type: String(5), value: rtmp://xxx.xx:13004/app/chaos
tcUrl: Type: String(5), value: rtmp://xxx.xx:13004/app/chaos
type: Type: String(5), value: nonprivate
2019.01.27 02:43:14: Header type: TWELVE_BYTE(0), channel: 2, ts: 0, data length: 4, message type: SERVER_BANDWIDTH(5), message stream ID: 0, final timestamp: 0
2019.01.27 02:43:14: [CON:2 /] Sending SERVER_BANDWIDTH
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 2, ts: 0, data length: 5, message type: CLIENT_BANDWIDTH(6), final timestamp: 0
2019.01.27 02:43:14: [CON:2 /] Sending CLIENT_BANDWIDTH
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 2, ts: 0, data length: 6, message type: USER_CONTROL(4), final timestamp: 0
2019.01.27 02:43:14: [CON:2 /] Sending USER_CONTROL of type: CLEAR_STREAM, parameter 1: 0
2019.01.27 02:43:14: Header type: TWELVE_BYTE(0), channel: 3, ts: 0, data length: 4, message type: SET_CHUNK_SIZE(1), message stream ID: 0, final timestamp: 0
2019.01.27 02:43:14: [CON:2 /] Sending SET_CHUNK_SIZE
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 191, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: Header type: ONE_BYTE(3), channel: 3, final timestamp: 0
2019.01.27 02:43:14: [CON:2 /] Sending INVOKE _result
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 30, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: [CON:2 /] Sending INVOKE onBWDone, transaction ID: 1
2019.01.27 02:43:14: [CON:2 app/chaos/] Input from X.X.X.98:59128 sent connect, application: "app/chaos"
2019.01.27 02:43:14: [CON:2 app/chaos/] Remaining data 0
2019.01.27 02:43:14: Socket sent 297 bytes to X.X.X.98:59128
2019.01.27 02:43:14: Socket received 37 bytes from X.X.X.98:59128
2019.01.27 02:43:14: [CON:2 app/chaos/] Got 37 bytes
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 29, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Total packet size: 37
2019.01.27 02:43:14: [CON:2 app/chaos/] Received INVOKE, command: Type: String(5), value: releaseStream
2019.01.27 02:43:14: [CON:2 app/chaos/] Transaction ID: Type: Double(3), value: 2.000000
2019.01.27 02:43:14: [CON:2 app/chaos/] Argument 1: Type: Null(1)
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 20, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Sending INVOKE _result
2019.01.27 02:43:14: [CON:2 app/chaos/] Remaining data 0
2019.01.27 02:43:14: Socket sent 28 bytes to X.X.X.98:59128
2019.01.27 02:43:14: Socket received 92 bytes from X.X.X.98:59128
2019.01.27 02:43:14: [CON:2 app/chaos/] Got 92 bytes
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 25, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Total packet size: 33
2019.01.27 02:43:14: [CON:2 app/chaos/] Received INVOKE, command: Type: String(5), value: FCPublish
2019.01.27 02:43:14: [CON:2 app/chaos/] Transaction ID: Type: Double(3), value: 3.000000
2019.01.27 02:43:14: [CON:2 app/chaos/] Argument 1: Type: Null(1)
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 14, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Sending INVOKE onFCPublish
2019.01.27 02:43:14: Header type: ONE_BYTE(3), channel: 3, final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Total packet size: 26
2019.01.27 02:43:14: [CON:2 app/chaos/] Received INVOKE, command: Type: String(5), value: createStream
2019.01.27 02:43:14: [CON:2 app/chaos/] Transaction ID: Type: Double(3), value: 4.000000
2019.01.27 02:43:14: [CON:2 app/chaos/] Argument 1: Type: Null(1)
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 29, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Sending INVOKE _result
2019.01.27 02:43:14: Header type: TWELVE_BYTE(0), channel: 3, ts: 0, data length: 21, message type: AMF0_INVOKE(20), message stream ID: 0, final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Total packet size: 33
2019.01.27 02:43:14: [CON:2 app/chaos/] Received INVOKE, command: Type: String(5), value: _checkbw
2019.01.27 02:43:14: [CON:2 app/chaos/] Transaction ID: Type: Double(3), value: 5.000000
2019.01.27 02:43:14: [CON:2 app/chaos/] Argument 1: Type: Null(1)
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 20, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Sending INVOKE _result
2019.01.27 02:43:14: [CON:2 app/chaos/] Remaining data 0
2019.01.27 02:43:14: Socket sent 87 bytes to X.X.X.98:59128
2019.01.27 02:43:14: Socket received 42 bytes from X.X.X.98:59128
2019.01.27 02:43:14: [CON:2 app/chaos/] Got 42 bytes
2019.01.27 02:43:14: Header type: TWELVE_BYTE(0), channel: 4, ts: 0, data length: 30, message type: AMF0_INVOKE(20), message stream ID: 1, final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Total packet size: 42
2019.01.27 02:43:14: [CON:2 app/chaos/] Received INVOKE, command: Type: String(5), value: publish
2019.01.27 02:43:14: [CON:2 app/chaos/] Transaction ID: Type: Double(3), value: 6.000000
2019.01.27 02:43:14: [CON:2 app/chaos/] Argument 1: Type: Null(1)
2019.01.27 02:43:14: [CON:2 app/chaos/] Argument 2: Type: String(5), value:
2019.01.27 02:43:14: Application "app/chaos", stream "" matched endpoint application "app/chaos", stream ""
2019.01.27 02:43:14: Address 0.0.0.0:13004 matched address 0.0.0.0:13004
2019.01.27 02:43:14: Application: "app/chaos", stream: "" did not match endpoint application: "app/live_XXX?bandwidthtest=true", stream: "twitch"
2019.01.27 02:43:14: Header type: ONE_BYTE(3), channel: 2, final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Sending USER_CONTROL of type: CLEAR_STREAM, parameter 1: 0
2019.01.27 02:43:14: Header type: EIGHT_BYTE(1), channel: 3, ts: 0, data length: 141, message type: AMF0_INVOKE(20), final timestamp: 0
2019.01.27 02:43:14: Header type: ONE_BYTE(3), channel: 3, final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Sending INVOKE onStatus
2019.01.27 02:43:14: [ST:3 app/chaos/] Create
2019.01.27 02:43:14: [CON:2 app/chaos/] Input from X.X.X.98:59128 published stream ""
2019.01.27 02:43:14: [ST:3 app/chaos/] Stream start [CON:2 app/chaos/]
2019.01.27 02:43:14: [CON:4 app/live_XXX?bandwidthtest=true/twitch] Create connection
2019.01.27 02:43:14: Connecting to 185.42.205.245:1935
2019.01.27 02:43:14: [CON:2 app/chaos/] Remaining data 0
2019.01.27 02:43:14: Socket sent 157 bytes to X.X.X.98:59128
2019.01.27 02:43:14: Socket connected to 185.42.205.245:1935
2019.01.27 02:43:14: [CON:4 app/live_XXX?bandwidthtest=true/twitch] Connected to 185.42.205.245:1935
2019.01.27 02:43:14: [CON:4 app/live_XXX?bandwidthtest=true/twitch] Sending version message 3
2019.01.27 02:43:14: [CON:4 app/live_XXX?bandwidthtest=true/twitch] Sending challenge message
2019.01.27 02:43:14: Socket sent 1537 bytes to 185.42.205.245:1935
2019.01.27 02:43:14: Socket received 411 bytes from X.X.X.98:59128
2019.01.27 02:43:14: [CON:2 app/chaos/] Got 411 bytes
2019.01.27 02:43:14: Header type: TWELVE_BYTE(0), channel: 4, ts: 0, data length: 399, message type: AMF0_DATA(18), message stream ID: 1, final timestamp: 0
2019.01.27 02:43:14: [CON:2 app/chaos/] Total packet size: 411
2019.01.27 02:43:14: [CON:2 app/chaos/] Received NOTIFY, command: Type: String(5), value: @setDataFrame
2019.01.27 02:43:14: [CON:2 app/chaos/] Argument 1: Type: String(5), value: onMetaData
2019.01.27 02:43:14: [CON:2 app/chaos/] Argument 2: Type: Dictionary(8), values:
2.1: Type: Boolean(4), value: false
3.1: Type: Boolean(4), value: false
4.0: Type: Boolean(4), value: false
4.1: Type: Boolean(4), value: false
5.1: Type: Boolean(4), value: false
7.1: Type: Boolean(4), value: false
audiochannels: Type: Double(3), value: 2.000000
audiocodecid: Type: String(5), value: mp4a
audiodatarate: Type: Double(3), value: 160.000000
audiosamplerate: Type: Double(3), value: 44100.000000
audiosamplesize: Type: Double(3), value: 16.000000
duration: Type: Double(3), value: 0.000000
encoder: Type: String(5), value: obs-output module (libobs version 22.0.3)
fileSize: Type: Double(3), value: 0.000000
framerate: Type: Double(3), value: 60.000000
height: Type: Double(3), value: 800.000000
stereo: Type: Boolean(4), value: true
videocodecid: Type: String(5), value: avc1
videodatarate: Type: Double(3), value: 2500.000000
width: Type: Double(3), value: 1280.000000
rtmp_relay: src/Amf.hpp:210: uint32_t relay::amf::Node::asUInt32() const: Assertion `type == Type::Integer || type == Type::Double' failed.
Aborted