JMF with Optelecom IP Encoder
I'm trying to access a hardware codec from JMStudio. Eventually I'd like to be able to do processing on the video feed in java using JMF, but at this point I am not even able to connect to the codec.
The codec serves MP4 video in an RTSP feed. I realize JMF does not currently have support for MP4, but this is not what concerns me at the moment. In the following transaction log, several RTSP command sequences are successfully sent and received, but JMStudio fails after the PLAY command, issuing a "Server is not responding message:
start
#
# JMF Version 2.1.1e
#
## Platform: Windows XP, x86, 5.1
## Java VM: Sun Microsystems Inc., 1.6.0_01
## Player created: com.sun.media.content.rtsp.Handler@80f4cb
##using DataSource: com.sun.media.protocol.rtsp.DataSource@337d0f
## outgoing msg:
## DESCRIBE rtsp://10.1.140.155/video/input1/encoder1/transmitter3 RTSP/1.0
CSeq: 711
Accept: application/sdp
User-Agent: JMF RTSP Player Version 2.1.1e
## incoming msg:
## RTSP/1.0 200 OK
CSeq: 711
Server: Optelecom-NKF RTSPServer/1.0
Content-Type: application/sdp
Content-Length: 239
v=0
o=- 1181207442 1181207442 IN IP4 10.1.140.155
s=Video: input1 encoder1 transmitter3
m=video 0 RTP/AVP 101
a=control:rtsp://10.1.140.155/video/input1/encoder1/transmitter3
a=rtpmap:101 MP4V-ES/90000
a=fmtp:101 profile-level-id=1
!! [SDP Parser] Token missing: t=
!! [SDP Parser] Token missing: c=
## Add RTP dynamic payload for video: 101 : mp4v-es/rtp
## outgoing msg:
## SETUP rtsp://10.1.140.155/video/input1/encoder1/transmitter3 RTSP/1.0
CSeq: 712
Transport: RTP/AVP;unicast;client_port=7644-7645
User-Agent: JMF RTSP Player Version 2.1.1e
## incoming msg:
## RTSP/1.0 200 OK
CSeq: 712
Server: Optelecom-NKF RTSPServer/1.0
Session: 1181207443;timeout=20
Transport: RTP/AVP;unicast;client_port=7644-7645;server_port=5004-5005
Accept-Ranges: NPT
## outgoing msg:
## PLAY rtsp://10.1.140.155/video/input1/encoder1/transmitter3 RTSP/1.0
CSeq: 713
Range: npt=0.0-
Session: 1181207443
User-Agent: JMF RTSP Player Version 2.1.1e
## incoming msg:
## RTSP/1.0 200 OK
CSeq: 713
Server: Optelecom-NKF RTSPServer/1.0
Range: npt=now-
XX Failed to realize: Server is not responding
-end
I'm not sure if the problem is that the RTSPServer is not giving a sessionID on the last response, if JMF cannot deal with an npt range with start value "now", or the timeout for message response is too small.
Am I allowed to modify RTSPutil to experiment with these changes? What is the best way to go about solving this problem?
Thanks
Max

