James Smith
New Member
Hello, we would like to use OBS as the video source to publish to a stream. How can we do this?
Thank you!
Thank you!
rtmp://192.168.88.59:1935/live
12345
keep_alive.algorithm=HIGH_LEVEL
keep_alive.algorithm=NONE
Make sureI've followed the instructions but we are receiving "Could not access the specified channel or stream key, please double-check your stream key. If it is correct, there may be a problem connecting to the server." from OBS.
ps aux | grep Flashphoner
netstat -nlp | grep 1935
telnet 192.168.1.88 1935
rtmp://192.168.88.59:1935/live?login=alice&password=1234
rtmp://192.168.88.59:1935/live?token=1234
rtmp://192.168.88.59:1935/live?login=alice&password=123
rtmp://192.168.88.59:1935/live?id=1&group=33&login=alice&password=123
etc
URL:http://localhost:9091/EchoApp/connect
OBJECT:
{
"nodeId" : "H4gfHeULtX6ddGGUWwZxhUNyqZHUFH8j@192.168.1.59",
"appKey" : "flashStreamingApp",
"sessionId" : "d84c47f9-d3ca-464d-ba44-44a0e3970e72",
"useWsTunnel" : false,
"useWsTunnelPacketization2" : false,
"useBase64BinaryEncoding" : false,
"custom" : {
"password" : "1234",
"login" : "alice"
}
}
"custom" : {
"password" : "1234",
"login" : "alice"
}
12:37:13,069 INFO agerRemoteRmiService - RMI TCP Connection(438)-host SEND REST OBJECT ==>
URL:http://localhost:9091/EchoApp/connect
OBJECT:
{
"nodeId" : "DbnxXbU4HjGDDasKOHLUpHEaG895Za1A@127.0.0.1",
"appKey" : "flashStreamingApp",
"sessionId" : "457032a3-6b9a-487b-a4c5-f3d0090e0631",
"useWsTunnel" : false,
"useWsTunnelPacketization2" : false,
"useBase64BinaryEncoding" : false,
"custom" : {
"token" : "test"
}
}
12:37:13,076 INFO agerRemoteRmiService - RMI TCP Connection(438)-host RECEIVED REST OBJECT <==
URL:http://localhost:9091/EchoApp/connect
OBJECT:
{
"nodeId" : "DbnxXbU4HjGDDasKOHLUpHEaG895Za1A@127.0.0.1",
"appKey" : "flashStreamingApp",
"sessionId" : "457032a3-6b9a-487b-a4c5-f3d0090e0631",
"useWsTunnel" : false,
"useWsTunnelPacketization2" : false,
"useBase64BinaryEncoding" : false,
"token" : "test"
}
> show apps
owner name appKey id URL
------------------------------------------------------------------------------------
admin flashStreamingApp flashStreamingApp 18 http://localhost:9091/EchoApp
14:34:28,607 INFO G - RTMP-BOSS-pool-2-thread-1 opened channel: [id: 0x18b86b35, /myip:62418 => /hostip:1935] OPEN
14:34:28,744 INFO A - RTMP-pool-3-thread-8 handshake done, rtmpe: false
14:34:28,744 INFO A - RTMP-pool-3-thread-8 old client version, disabled 'aggregate' mode
14:34:28,843 INFO G - RTMP-pool-3-thread-8 command - connect
14:34:28,843 INFO G - RTMP-pool-3-thread-8 connect, client id: 414739253, application: [name: '' streams: {}]
14:34:28,843 INFO G - RTMP-pool-3-thread-8 [0 COMMAND_AMF0 c3 #0 t0 (0) s240] name: connect, transactionId: 1, object: TransferObject{dataMap={app=live?token=test, type=nonprivate, flashVer=FMLE/3.0 (compatible; FMSc/1.0), swfUrl=rtmp://host:1935/live?token=test, tcUrl=rtmp://host:1935/live?token=test}typeMap={app=class java.lang.String, tcUrl=class java.lang.String, swfUrl=class java.lang.String, flashVer=class java.lang.String, type=class java.lang.String}}, args: []
14:34:28,843 INFO ManagerApiConnection - RTMP-pool-3-thread-8 Config for method connect not found, using defaults
14:34:28,980 INFO G - RTMP-pool-3-thread-8 command - releaseStream
14:34:28,980 INFO G - RTMP-pool-3-thread-8 received not used message: [1 COMMAND_AMF0 c3 #0 t0 (0) s34] name: releaseStream, transactionId: 2, object: null, args: [12345]
14:34:29,129 INFO G - RTMP-pool-3-thread-8 command - FCPublish
14:34:29,130 INFO G - RTMP-pool-3-thread-8 received not used message: [1 COMMAND_AMF0 c3 #0 t0 (0) s30] name: FCPublish, transactionId: 3, object: null, args: [12345]
14:34:29,130 INFO G - RTMP-pool-3-thread-8 command - createStream
14:34:29,130 INFO G - RTMP-pool-3-thread-8 create stream id: 1
14:34:29,241 INFO G - RTMP-pool-3-thread-8 command - publish
14:34:29,241 INFO G - RTMP-pool-3-thread-8 [0 COMMAND_AMF0 c4 #1 t0 (0) s35] name: publish, transactionId: 5, object: null, args: [12345, live]
14:34:29,241 INFO G - RTMP-pool-3-thread-8 publish, stream name: 12345, type: live
14:34:29,241 INFO B - RTMP-pool-3-thread-8 Created ServerStream [name: '12345 publisher: null subscribers: {}]
14:34:29,241 WARN Peer - RTMP-pool-3-thread-8 Publication client before connection
14:34:29,371 INFO G - RTMP-pool-3-thread-8 command - FCUnpublish
14:34:29,371 INFO G - RTMP-pool-3-thread-8 received not used message: [1 COMMAND_AMF0 c3 #0 t0 (0) s32] name: FCUnpublish, transactionId: 6, object: null, args: [12345]
14:34:29,371 INFO G - RTMP-pool-3-thread-8 command - deleteStream
14:34:29,371 INFO G - RTMP-pool-3-thread-8 deleting stream id: 1
14:34:29,371 INFO G - RTMP-pool-3-thread-8 channel closed: [id: 0x18b86b35, /64.140.205.130:62418 :> /172.30.4.23:1935] CLOSED
14:34:29,372 INFO RTMP-Session - RTMP-pool-3-thread-8 kill session 414739253
command - deleteStream
command - createStream
15:24:00,697 INFO G - RTMP-BOSS-pool-2-thread-1 opened channel: [id: 0x48630388, /192.168.88.254:52583 => /192.168.88.59:1935] OPEN
15:24:00,711 INFO A - RTMP-pool-3-thread-2 handshake done, rtmpe: false
15:24:00,712 INFO A - RTMP-pool-3-thread-2 old client version, disabled 'aggregate' mode
15:24:00,713 INFO G - RTMP-pool-3-thread-2 command - connect
15:24:00,713 INFO G - RTMP-pool-3-thread-2 connect, client id: 1214448520, application: [name: '' streams: {}]
15:24:00,713 INFO G - RTMP-pool-3-thread-2 [0 COMMAND_AMF0 c3 #0 t0 (0) s257] name: connect, transactionId: 1, object: TransferObject{dataMap={app=live?login=alice&password=1234, type=nonprivate, flashVer=FMLE/3.0 (compatible; FMSc/1.0), swfUrl=rtmp://192.168.88.59:1935/live?login=alice&password=1234, tcUrl=rtmp://192.168.88.59:1935/live?login=alice&password=1234}typeMap={app=class java.lang.String, tcUrl=class java.lang.String, swfUrl=class java.lang.String, flashVer=class java.lang.String, type=class java.lang.String}}, args: []
15:24:00,717 INFO ManagerApiConnection - RTMP-pool-3-thread-2 Config for method connect not found, using defaults
15:24:00,799 INFO ManagerApiConnection - RTMP-pool-3-thread-2 Config for method ConnectionStatusEvent not found, using defaults
15:24:00,847 INFO G - RTMP-pool-3-thread-2 command - releaseStream
15:24:00,847 INFO G - RTMP-pool-3-thread-2 received not used message: [1 COMMAND_AMF0 c3 #0 t0 (0) s34] name: releaseStream, transactionId: 2, object: null, args: [12345]
15:24:00,848 INFO G - RTMP-pool-3-thread-2 command - FCPublish
15:24:00,848 INFO G - RTMP-pool-3-thread-2 received not used message: [1 COMMAND_AMF0 c3 #0 t0 (0) s30] name: FCPublish, transactionId: 3, object: null, args: [12345]
15:24:00,848 INFO G - RTMP-pool-3-thread-2 command - createStream
15:24:00,849 INFO G - RTMP-pool-3-thread-2 create stream id: 1
15:24:00,851 INFO G - RTMP-pool-3-thread-2 command - publish
15:24:00,851 INFO G - RTMP-pool-3-thread-2 [0 COMMAND_AMF0 c4 #1 t0 (0) s35] name: publish, transactionId: 5, object: null, args: [12345, live]
15:24:00,851 INFO G - RTMP-pool-3-thread-2 publish, stream name: 12345, type: live
15:24:00,851 INFO B - RTMP-pool-3-thread-2 Created ServerStream [name: '12345 publisher: null subscribers: {}]
15:24:00,852 INFO ManagerApiConnection - RTMP-pool-3-thread-2 Config for method publishStream not found, using defaults
15:24:00,899 INFO MediaHandler - RTMP-pool-3-thread-2 publishStream arguments - Stream{mediaSessionId='b5b26ec2-560c-461a-8f09-0124b192eeca'name='12345', status='NEW', sdp='v=0
service webcallserver stop
service webcallserver start
No. It should be enough.Is there another app we need to add or a special way to configure it?
service webcallserver update
rtmp://192.168.88.59:1935/live?login=alice&password=1234&appKey=customAppKey
com.flashphoner.server.client.handler.wcs4.FlashStreamingHandler
com.flashphoner.server.client.handler.wcs4.FlashStreamingCallbackHandler
show apps -d
update app -m com.flashphoner.server.client.handler.wcs4.FlashStreamingHandler myApp
update app -c com.flashphoner.server.client.handler.wcs4.FlashStreamingCallbackHandler myApp
12:44:27,617 INFO B - RTMP-pool-3-thread-4 Created ServerStream [name: 'bQ1HEoJU publisher: null subscribers: {}]
12:44:27,617 INFO ManagerApiConnection - RTMP-pool-3-thread-4 Config for method publishStream not found, using defaults
12:44:27,724 WARN ManagerApiConnection - RTMP-pool-3-thread-4 Failed to get object from REST with exception:
12:44:27,724 INFO ManagerApiConnection - RTMP-pool-3-thread-4 Method error policy is LOG, return same object to client
12:44:27,724 INFO MediaHandler - RTMP-pool-3-thread-4 publishStream arguments - Stream{mediaSessionId='9e3c715b-421b-4091-a4db-422c3532fe7b'name='invalid', ... appKey='rtmp-james', sessionId='0489e27c-03ad-48fd-a622-8943f8dc3cce'}
12:44:27,724 INFO Codecs - RTMP-pool-3-thread-4 codecs: opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,h264,vp8,mpv
12:44:27,724 INFO Codecs - RTMP-pool-3-thread-4 load codec: opus priority: 9900
12:44:27,724 INFO Codecs - RTMP-pool-3-thread-4 load codec: alaw priority: 9800