Невозможно отправить стрим из FFmpeg на WCS

Kirill

Member
Стрим отправляется в контейнере flv, h.264, u-law . На сервере стрим не принимается, в серверных логах ошибка, суть пока не могу понять, помогите разобраться.

WCS version
: 0.5.28.2753 - 5.1.3740-3a3ea27812fdf1d5285a341194b90de3f22c96d8

В чем может быть проблема ?
Более полный лог
Log1
Code:
13:57:49,713 INFO         ServerHandler - RTMP-pool-8-thread-16 received not used message: [0 METADATA_AMF0 c4 #1 t0 (0) s373] name: @setDataFrame data: [onMetaData, TransferObject{dataMap={duration=0.0, width=720.0, height=1280.0, videodatarate=0.0, framerate=25.0, videocodecid=7.0, audiodatarate=62.5, audiosamplerate=8000.0, audiosamplesize=16.0, stereo=false, audiocodecid=8.0, title=Session streamed by "nessyMediaServer", comment=h264, encoder=Lavf58.12.100, filesize=0.0}typeMap={framerate=class java.lang.Double, audiodatarate=class java.lang.Double, audiocodecid=class java.lang.Double, videodatarate=class java.lang.Double, audiosamplesize=class java.lang.Double, audiosamplerate=class java.lang.Double, filesize=class java.lang.Double, title=class java.lang.String, encoder=class java.lang.String, duration=class java.lang.Double, videocodecid=class java.lang.Double, stereo=class java.lang.Boolean, width=class java.lang.Double, comment=class java.lang.String, height=class java.lang.Double}}] for cam2
13:57:49,713 ERROR        ServerHandler - RTMP-pool-8-thread-16 RTMP error {}[id: 0x69133a34, /87.112.107.11:42226 => /192.168.0.2:1935]
java.lang.NullPointerException
        at com.flashphoner.server.client.handler.wcs4.FlashStreamingHandler.playVideo(Unknown Source)
        at com.flashphoner.server.client.handler.wcs4.FlashStreamingHandler.onVideoPacket(Unknown Source)
        at com.flashphoner.server.client.handler.DelegateHandler.onVideoPacket(Unknown Source)
        at com.flashphoner.server.rtmfp.client.FlashClient.onVideoPacket(Unknown Source)
        at com.flashphoner.server.rtmp.rtmp.server.G.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.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(Unknown Source)
        at org.jboss.netty.handler.timeout.IdleStateHandler.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.DeadlockAwareNioWorker.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)
13:57:49,714 ERROR        ServerHandler - RTMP-pool-8-thread-16 channel closed: [id: 0x69133a34, /87.112.107.11:42226 :> /192.168.0.2:1935] CLOSED
13:57:49,714 INFO                     B - RTMP-pool-8-thread-16 unpublish name: cam2
13:57:49,714 WARN  lashStreamingHandler - RTMP-pool-8-thread-16 No published stream with name cam2
13:57:49,714 INFO  lashStreamingHandler - RTMP-pool-8-thread-16 Disconnect client: com.flashphoner.server.client.MediaWCSClient@79c94294
13:57:49,715 INFO          RTMP-Session - RTMP-pool-8-thread-16 kill session 1762867764
13:57:49,715 INFO            RestClient - API-ASYNC-pool-6-thread-2 SEND REST OBJECT ==>
URL:http://localhost:8081/apps/EchoApp/ConnectionStatusEvent
OBJECT:
{
  "nodeId" : "DrlOQQJZ481HIVLIQCPCrD0988djnsP4@0.0.0.0",
  "appKey" : "flashStreamingApp",
  "sessionId" : "/87.112.107.11:42226/192.168.0.2:1935",
  "status" : "DISCONNECTED",
  "info" : "Normal disconnect"
}
 
Last edited:

Kirill

Member
Вопрос решен.
Проблема была с тем, что сменился ip в локальной сети ( при этом публичный остался прежний ).
Решить вопрос помогла эта ветка .
 
Top