RTSP ip camera do not play embed_player

dev_aidkr

New Member
hi, there

Flashphoner user wcs server ip camera play in web browser service

specific ip camera do not play
flashphoner rest-api request post host/rtsp/find "uri" json but NotFoundException status
server error logs check
RtspAgent - pool-58-thread-1 audioSdpPort:31014 audioTrack:trackID=1 videoSdpPort:0 videoTrack trackID=0
01:51:46,101 ERROR RtspAgent - pool-58-thread-1 Can't send setup request!
java.lang.Throwable: Did not found corresponding trackId->mediaPort, aborting

but ip camera uri play for vlc player
vlc player video info codec MPEG-H Part2/HEVC(H.265) - Video codec / MPEC AAC audio codec
then flashphoner.properties add codecs config - h265
#codecs
codecs =opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,h264,vp8,flv,mpv,h265
codecs_exclude_sip =mpeg4-generic,flv,mpv,h265
codecs_exclude_streaming =flv,telephone-event,h265
codecs_exclude_sip_rtmp =opus,g729,g722,mpeg4-generic,vp8,mpv,h265

but ip camera still do not play message Failed no common codec

how to fixed that?

wcs server ver 5.2.1711
 

Max

Administrator
Staff member
The RTSP stream is playing successfully on our demo server (build 5.2.1917)
1712546630523.png

and on test server with the latest public build 5.2.1948. Please update your server and check
The stream has 2K resolution, so you have to switch to TCP transport
Code:
ice_tcp_transport=true
You also should have a good enough channel between your playing client and server (at least 10 Mbps without packets loss) and between your server and RTSP source too.
 

dev_aidkr

New Member
sorry, still doen't play

update wcs server 5.2.1948

flashphoner.propertites configuration
#webrtc ports range
media_port_from =31001
media_port_to =32000

#codecs
codecs =opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,h264,vp8,flv,mpv,h265
codecs_exclude_sip =mpeg4-generic,flv,mpv,h265
codecs_exclude_streaming =flv,telephone-event,h265
codecs_exclude_sip_rtmp =opus,g729,g722,mpeg4-generic,vp8,mpv,h265

#websocket ports
ws.port =8080
wss.port =8443

client_mode=false

rtc_ice_add_local_component=true
icp_tcp_transport=true
Failed send rtsp uri
Screenshot 2024-04-08 at 2.46.25 PM.png


Success other rtsp uri
Screenshot 2024-04-08 at 2.46.38 PM.png
 

Max

Administrator
Staff member
Seems like RTSP SETUP message fails to be sent or to be responded by RTSP camera. The traffic dump is needed/ But we can't collect a traffic dump because the user has no sudo rights. Please add the user to sudoers.
You can also deploy a different instance and test it. This should help if there is some network problem between server and RTSP camera.
 

Max

Administrator
Staff member
Seems you've excluded H265 codec in settings:
1712568435178.png

If you want to play H265 stream, you should remove it from exclusions list:
Code:
codecs_exclude_streaming =flv,telephone-event
 
Top