Добрый день,
пробуем выполнить захват потока с другого сервера по RTMP в соответсвии с https://docs.flashphoner.com/pages/viewpage.action?pageId=9241317 - но и с нашим потоком, и с тестовым потоком, указанным в документации не воспроизводится картинка (ни в одном из браузеров/плееров) и звук (воспроизводится только по webrtc и только в IE).
Сертификаты импортированы, воспроизведение работает корректно при Two-way streaming c публикацией потока напрямую на WCS. Файлы конфигурации rtmp_agent.sdp и flash_handler_publish.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 119 127
a=rtpmap:119 H264/90000
a=fmtp:119 profile-level-id=42e01f;packetization-mode=1
a=rtpmap:127 FLV/90000
a=sendonly
m=audio 0 RTP/AVP 97 8 0 102 103 104 105 106 107 108 109 110
a=rtpmap:97 SPEEX/16000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:102 mpeg4-generic/48000/1
a=rtpmap:103 mpeg4-generic/44100/1
a=rtpmap:104 mpeg4-generic/32000/1
a=rtpmap:105 mpeg4-generic/24000/1
a=rtpmap:106 mpeg4-generic/22050/1
a=rtpmap:107 mpeg4-generic/16000/1
a=rtpmap:108 mpeg4-generic/12000/1
a=rtpmap:109 mpeg4-generic/11025/1
a=rtpmap:110 mpeg4-generic/8000/1
a=sendonly
Подскажите, в чем может быть проблема ?
В логе получаем вот такую ошибку на этапе захвата потока (приведена для тестового видео, но с нашим потоком ситуация не отличается):
16:47:12,228 INFO RtmpAgent - pool-49-thread-2 Agent rtmp://str81.creacast.com/grandlilletv/low-d7e6ddc2-96a6-49ce-be61-75209b3b9414 changed state to PROCESSED_REMOTE
16:47:12,229 ERROR ClientHandler - pool-49-thread-2 RTMP error [id: 0x7b78f94c, /172.31.40.22:33003 => str81.creacast.com/213.152.6.238:1935]
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.flashphoner.server.client.handler.MediaHandlerProxyCreator$MediaHandlerInvocationHandler.invoke(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.WCS4Handler_$$_jvst606_0.playRtmpVideoPacket(WCS4Handler_$$_jvst606_0.java)
at com.flashphoner.server.remote.D.D.A(Unknown Source)
at com.flashphoner.server.remote.D.F.A(Unknown Source)
at com.flashphoner.server.remote.D.F.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
at com.flashphoner.sdk.client.StreamingMediaClient.playVideo(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandler.playRtmpVideoPacket(Unknown Source)
... 21 more
16:47:12,248 INFO RtpVideoConfig - pool-49-thread-2 VideoResolution C 0x0
16:47:12,272 ERROR ClientHandler - pool-49-thread-2 RTMP error [id: 0x7b78f94c, /172.31.40.22:33003 => str81.creacast.com/213.152.6.238:1935]
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.flashphoner.server.client.handler.MediaHandlerProxyCreator$MediaHandlerInvocationHandler.invoke(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.WCS4Handler_$$_jvst606_0.playRtmpVideoPacket(WCS4Handler_$$_jvst606_0.java)
at com.flashphoner.server.remote.D.D.A(Unknown Source)
at com.flashphoner.server.remote.D.F.A(Unknown Source)
at com.flashphoner.server.remote.D.F.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
at com.flashphoner.sdk.client.StreamingMediaClient.playVideo(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandler.playRtmpVideoPacket(Unknown Source)
... 21 more
16:47:12,272 INFO MediaHandler - pool-49-thread-2 Received AAC Codec config with AudioSettings{sampleRate=48000, channels=2, bitrate=0}
16:47:12,477 INFO RtpVideoConfig - pool-49-thread-2 VideoResolution C 0x0
16:49:11,831 INFO RtmpAgent - RTMP-AGENT-rtmp://str81.creacast.com/grandlilletv/low-d7e6ddc2-96a6-49ce-be61-75209b3b9414 Agent rtmp://str81.creacast.com/grandlilletv/low-d7e6ddc2-96a6-49ce-be61-75209b3b9414 changed state to STOPPED
пробуем выполнить захват потока с другого сервера по RTMP в соответсвии с https://docs.flashphoner.com/pages/viewpage.action?pageId=9241317 - но и с нашим потоком, и с тестовым потоком, указанным в документации не воспроизводится картинка (ни в одном из браузеров/плееров) и звук (воспроизводится только по webrtc и только в IE).
Сертификаты импортированы, воспроизведение работает корректно при Two-way streaming c публикацией потока напрямую на WCS. Файлы конфигурации rtmp_agent.sdp и flash_handler_publish.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 119 127
a=rtpmap:119 H264/90000
a=fmtp:119 profile-level-id=42e01f;packetization-mode=1
a=rtpmap:127 FLV/90000
a=sendonly
m=audio 0 RTP/AVP 97 8 0 102 103 104 105 106 107 108 109 110
a=rtpmap:97 SPEEX/16000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:102 mpeg4-generic/48000/1
a=rtpmap:103 mpeg4-generic/44100/1
a=rtpmap:104 mpeg4-generic/32000/1
a=rtpmap:105 mpeg4-generic/24000/1
a=rtpmap:106 mpeg4-generic/22050/1
a=rtpmap:107 mpeg4-generic/16000/1
a=rtpmap:108 mpeg4-generic/12000/1
a=rtpmap:109 mpeg4-generic/11025/1
a=rtpmap:110 mpeg4-generic/8000/1
a=sendonly
Подскажите, в чем может быть проблема ?
В логе получаем вот такую ошибку на этапе захвата потока (приведена для тестового видео, но с нашим потоком ситуация не отличается):
16:47:12,228 INFO RtmpAgent - pool-49-thread-2 Agent rtmp://str81.creacast.com/grandlilletv/low-d7e6ddc2-96a6-49ce-be61-75209b3b9414 changed state to PROCESSED_REMOTE
16:47:12,229 ERROR ClientHandler - pool-49-thread-2 RTMP error [id: 0x7b78f94c, /172.31.40.22:33003 => str81.creacast.com/213.152.6.238:1935]
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.flashphoner.server.client.handler.MediaHandlerProxyCreator$MediaHandlerInvocationHandler.invoke(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.WCS4Handler_$$_jvst606_0.playRtmpVideoPacket(WCS4Handler_$$_jvst606_0.java)
at com.flashphoner.server.remote.D.D.A(Unknown Source)
at com.flashphoner.server.remote.D.F.A(Unknown Source)
at com.flashphoner.server.remote.D.F.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
at com.flashphoner.sdk.client.StreamingMediaClient.playVideo(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandler.playRtmpVideoPacket(Unknown Source)
... 21 more
16:47:12,248 INFO RtpVideoConfig - pool-49-thread-2 VideoResolution C 0x0
16:47:12,272 ERROR ClientHandler - pool-49-thread-2 RTMP error [id: 0x7b78f94c, /172.31.40.22:33003 => str81.creacast.com/213.152.6.238:1935]
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.flashphoner.server.client.handler.MediaHandlerProxyCreator$MediaHandlerInvocationHandler.invoke(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.WCS4Handler_$$_jvst606_0.playRtmpVideoPacket(WCS4Handler_$$_jvst606_0.java)
at com.flashphoner.server.remote.D.D.A(Unknown Source)
at com.flashphoner.server.remote.D.F.A(Unknown Source)
at com.flashphoner.server.remote.D.F.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
at com.flashphoner.sdk.client.StreamingMediaClient.playVideo(Unknown Source)
at com.flashphoner.server.client.handler.wcs4.media.MediaHandler.playRtmpVideoPacket(Unknown Source)
... 21 more
16:47:12,272 INFO MediaHandler - pool-49-thread-2 Received AAC Codec config with AudioSettings{sampleRate=48000, channels=2, bitrate=0}
16:47:12,477 INFO RtpVideoConfig - pool-49-thread-2 VideoResolution C 0x0
16:49:11,831 INFO RtmpAgent - RTMP-AGENT-rtmp://str81.creacast.com/grandlilletv/low-d7e6ddc2-96a6-49ce-be61-75209b3b9414 Agent rtmp://str81.creacast.com/grandlilletv/low-d7e6ddc2-96a6-49ce-be61-75209b3b9414 changed state to STOPPED