UNSUPPORTED streaming codec VSIP

Hi We are getting exception as shown below while streaming the some of our cameras

com.flashphoner.sdk.client.exception.UnsupportedCodecException: UNSUPPORTED streaming codec VSIP
at com.flashphoner.sdk.client.StreamingMediaClient.initVideoDepacketizer(Unknown Source)
at com.flashphoner.sdk.client.StreamingMediaClient.onUpdateRemoteVideoCodec(Unknown Source)
at com.flashphoner.sdk.client.StreamingMediaClient.playVideo(Unknown Source)
at com.flashphoner.media.B.G.routeIncomingVideo(Unknown Source)
at com.flashphoner.media.rtp.C.A(Unknown Source)
at com.flashphoner.media.rtp.C.r(Unknown Source)
at com.flashphoner.media.rtp.C.A(Unknown Source)
at com.flashphoner.C.E.D.A(Unknown Source)
at com.flashphoner.C.E.D.dataPacketReceived(Unknown Source)
at com.flashphoner.C.E.I.B(Unknown Source)
at com.flashphoner.C.E.I.dataPacketReceived(Unknown Source)
at com.flashphoner.C.D.A.B.messageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at com.flashphoner.C.D.A.D.handleUpstream(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at com.flashphoner.C.C.B.N.B(Unknown Source)
at com.flashphoner.C.C.B.L.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:750)


But from camera we are getting h264/90000 as below

a=rtpmap:96 H264/90000
a=rtpmap:108 VSIP-H264/90000

Please find the attached logs

thanks
 

Attachments

Max

Administrator
Staff member
Good day.
Seems like the camera sends VSIP in media packets, not H264. Please provide a public RTSP URL using this form. If this is not possible, please collect the report including traffic dump as described here:
1. Enable client debug logs
Code:
client_log_level=DEBUG
and restart WCS
Code:
sudo systemctl restart webcallserver
2. Start to collect traffic dump
Code:
tcpdump -npi any -B 10240 -w log.pcap
3. Start playing RTSP stream in Player example https://wcs:8444/client2/examples/demo/streaming/player/player.html
4. After a minute, stop playing RTSP stream
5. Stop tcpdump
6. Collect a report using report.sh script
Then add log.pcap to report archive and send using this form. If archive size is more than 30 M, upload the archive to a public cloud drive and send the link using this form (Comment field).
 

Max

Administrator
Staff member
Hello

1. VSIP-H264 codec is not supported.

This is what the cam shows in the SDP:

Code:
o=- 1204612375 1204612375 IP IP4 10.4.21.115
s=2066-JSQ-Bus Lane C S Looking N
a=control:rtsp://10.4.21.115:554/a01e2f1d-691d-43bd-b2a6-b8c66b04ecb2
t=0 0
a=range:npt=now-
a=length:npt=0
a=range:clock=16010101T000000.0000000Z-
m=video 0 RTP/AVP 96 108 109 120 121 26
a=rtpmap:96 H264/90000
a=rtpmap:108 VSIP-H264/90000
a=rtpmap:109 VSIP-H264/90000
a=rtpmap:120 VSIP/90000
a=rtpmap:121 VSIP/90000
a=rtpmap:26 VSIP/90000
a=request-iframe-allowed:1000
This is Flashphoner's SDP.

Code:
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 112
a=rtpmap:112 H264/90000
a=fmtp:112 packetization-mode=1; profile-level-id=420020
a=recvonly
m=audio 0 RTP/AVP 108 96 97 98 99 100 102 103 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
As you can see, WCS server is waiting for H264/90000 however the camera sends data in codec VSIP-H264, which is not currently supported.
Try to setup the camera and remove VSIP-H264 lines from the cam's SDP.
The video section of SDP should look like this to be working:
Code:
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
Anyway. The cam must send H264/90000 traffic according to offer/answer specification and sending of VSIP-H264 traffic violates this spec.

2. Pcap dump was not captured properly.

Please open your dump in Wireshark an make sure that RTSP packets were captured properly.

1) If you play RTSP URL on port 554 (RTSP), you should see captured packets on this port.
As you can see no packets 554 captured.

1659760760186.png



2) RTSP stream should be captured from the beginning. See more information here how RTSP handshake looks.

We would need a valid pcap dump to proceed with a fix.

Anyway if RTSP cam ignores Flashphoner's SDP and sends VSIP-H264 only, it can be fixed by adding VSIP-H264 support only, that may take a long time.
 
Top