rtmp transcoding

gurmeet

Member
error occured
va.lang.RuntimeException: bad value / byte: 0 (hex: 00), no match found in lookup
at com.flashphoner.server.rtmp.A.A.A(Unknown Source)
at com.flashphoner.server.rtmp.rtmp.B.E.B(Unknown Source)
at com.flashphoner.server.rtmp.rtmp.F.<init>(Unknown Source)
at com.flashphoner.server.rtmp.rtmp.B.A(Unknown Source)
at com.flashphoner.server.rtmp.rtmp.B.decode(Unknown Source)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Unknown Source)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.channel.socket.nio.NioWorker.read(Unknown Source)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(Unknown Source)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(Unknown Source)
at org.jboss.netty.channel.socket.nio.NioWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
14:19:59,613 ERROR ClientHandler - pool-38-thread-2 RTMP error [id: 0x262971df, /172.105.52.43:33002 => /13.233.110.41:5119]
java.lang.NegativeArraySizeException
at com.flashphoner.server.rtmp.rtmp.B.A(Unknown Source)
at com.flashphoner.server.rtmp.rtmp.B.decode(Unknown Source)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Unknown Source)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.channel.socket.nio.NioWorker.read(Unknown Source)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(Unknown Source)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(Unknown Source)
at org.jboss.netty.channel.socket.nio.NioWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

why this occured and also after restart everything its working fine for some time and again same happens
and please tell me how i increase concurrent connection some clinent side error occured that server not responding
 

Max

Administrator
Staff member
Good day
Please collect a report as described here and send us to support@flashphoner.com. This should be done first when any problem occurs and can be reproduced. Our engineers will check the report.
 

Max

Administrator
Staff member
Good day.
We've checked your logs.
The main problem is you have not enough Java heap memory. Your server have 32 G RAM, so you should (and can) allocate a half of RAM (16 G) for Java heap. Please set the following in wcs-core.properties file
Code:
-Xmx16g
-Xms16g
Then, please set correct SDP for pulling RTMP streams. Create the file rtmp_agent.sdp in /usr/local/FlashphonerWebCallServer/conf folder with the following content
Code:
v=0
o=- 1988962254 1988962254 IN IP4 0.0.0.0
c=IN IP4 0.0.0.0
t=0 0
a=sdplang:en
m=video 0 RTP/AVP 95
a=rtpmap:119 H264/90000
a=fmtp:119 profile-level-id=42e01f;packetization-mode=1
a=sendonly
m=audio 0 RTP/AVP 103 96 97 98 99 100 102 108 104
a=rtpmap:108 mpeg4-generic/48000/1
a=rtpmap:96 mpeg4-generic/8000/1
a=rtpmap:97 mpeg4-generic/11025/1
a=rtpmap:98 mpeg4-generic/12000/1
a=rtpmap:99 mpeg4-generic/16000/1
a=rtpmap:100 mpeg4-generic/22050/1
a=rtpmap:104 mpeg4-generic/24000/1
a=rtpmap:102 mpeg4-generic/32000/1
a=rtpmap:103 mpeg4-generic/44100/1
a=recvonly
Also please update WCS to build 5.2.324 (build 5.2.310 was withdrawn).
 

gurmeet

Member
rtmp setting not working
-Xmx16g
-Xms16g
still giving bad exprience
-Xmx8g
-Xms8g
this is working but after some i face same problem server not responding
 

Max

Administrator
Staff member
As your report shows, you have not updated to build 5.2.324
Code:
5.2.310-8357606cfd5be138a9fa321794f01d8ca70db843
and have not created rtmp_agent.sdp file:
Code:
10:34:09,637 INFO        RtpVideoConfig - pool-91-thread-2 Codec not found; pt - 119; current pt - 95
Please follow all of recommedations from this post, then, if problem persists, provide us SSH access to your server to support@flashphoner.com, we will check.
 

gurmeet

Member
i do with this make a file rtmp_agent.sdp
v=0
o=- 1988962254 1988962254 IN IP4 0.0.0.0
c=IN IP4 0.0.0.0
t=0 0
a=sdplang:en
m=video 0 RTP/AVP 95
a=rtpmap:119 H264/90000
a=fmtp:119 profile-level-id=42e01f;packetization-mode=1
a=sendonly
m=audio 0 RTP/AVP 103 96 97 98 99 100 102 108 104
a=rtpmap:108 mpeg4-generic/48000/1
a=rtpmap:96 mpeg4-generic/8000/1
a=rtpmap:97 mpeg4-generic/11025/1
a=rtpmap:98 mpeg4-generic/12000/1
a=rtpmap:99 mpeg4-generic/16000/1
a=rtpmap:100 mpeg4-generic/22050/1
a=rtpmap:104 mpeg4-generic/24000/1
a=rtpmap:102 mpeg4-generic/32000/1
a=rtpmap:103 mpeg4-generic/44100/1
a=recvonly

But when i restart the server video not working on client side
and when i remove this file and restart the server video on client side working properly
 

gurmeet

Member
i do this
-Xmx10g
-Xms10g
and testing
server respond after some time but when i use this
-Xmx8g
-Xms8g
server response time little bit better
mean lower memory working fast but after some server not responding but i use 16g instead of server not working mean video showing loading on client side
 
Top