Logitech 750i + rtsp/ffmpeg

Forum for questions and support relating to the 1.24.x releases only.
Locked
Cooperson
Posts: 2
Joined: Sat Jun 18, 2011 3:28 pm

Logitech 750i + rtsp/ffmpeg

Post by Cooperson »

hi,

i have the Logitech Alert 750i. You can capture the Videostream like this rtsp://admin:Password@LogitechAlert-camera-network-Address:554/LowResolutionVideo (vlc works fine); But the camera does not work with ZoneMinder with the rtsp protocol.

if you grep the traffic between ZoneMinder and the cam, you get such output

Code: Select all

T 192.168.0.40:46604 -> 192.168.0.38:554 [AP]
  DESCRIBE rtsp://192.168.0.38:554/LowResolutionVideo RTSP/1.0..Authorization
  : Basic YWRtaW46OEtDN1R4VGhLVm9HalBLV2FJclo=..User-Agent: ZoneMinder/1.24.2
  ..CSeq: 1....
##
T 192.168.0.38:554 -> 192.168.0.40:46604 [AP]
  RTSP/1.0 401 Unauthorized..CSeq: 1..Date: Sat, Jun 18 2011 16:05:19 GMT..WW
  W-Authenticate: Digest realm="Logitech Alert", nonce="f843e4fc31ef774194fc1
  df1f4f8d3ce"....
##
T 192.168.0.40:46604 -> 192.168.0.38:554 [AP]
  SETUP rtsp://192.168.0.38:554/LowResolutionVideo RTSP/1.0..Transport: RTP/A
  VP/TCP;unicast..Authorization: Basic YWRtaW46OEtDN1R4VGhLVm9HalBLV2FJclo=..
  User-Agent: ZoneMinder/1.24.2..CSeq: 2....
#
T 192.168.0.38:554 -> 192.168.0.40:46604 [AP]
  RTSP/1.0 400 Bad Request..Date: Sat, Jun 18 2011 16:05:20 GMT..Allow: OPTIO
  NS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER...
  .
if you grep the traffic beween vlc (VideoLanClient) and the cam (that works fine), you get this output

Code: Select all

T 192.168.0.34:3934 -> 192.168.0.38:554 [A]
  ......
#
T 192.168.0.34:3934 -> 192.168.0.38:554 [AP]
  OPTIONS rtsp://192.168.0.38:554/LowResolutionVideo RTSP/1.0..CSeq: 2..User-
  Agent: LibVLC/1.1.9 (LIVE555 Streaming Media v2011.01.06)....
#
T 192.168.0.38:554 -> 192.168.0.34:3934 [A]
  ......
#
T 192.168.0.38:554 -> 192.168.0.34:3934 [AP]
  RTSP/1.0 200 OK..CSeq: 2..Date: Sat, Jun 18 2011 16:11:35 GMT..Public: OPTI
  ONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER..
  ..
#
T 192.168.0.34:3934 -> 192.168.0.38:554 [AP]
  DESCRIBE rtsp://192.168.0.38:554/LowResolutionVideo RTSP/1.0..CSeq: 3..User
  -Agent: LibVLC/1.1.9 (LIVE555 Streaming Media v2011.01.06)..Accept: applica
  tion/sdp....
#
T 192.168.0.38:554 -> 192.168.0.34:3934 [AP]
  RTSP/1.0 401 Unauthorized..CSeq: 3..Date: Sat, Jun 18 2011 16:11:35 GMT..WW
  W-Authenticate: Digest realm="Logitech Alert", nonce="ff0bef4887f8ea4117241
  4777d47169f"....
#
T 192.168.0.34:3934 -> 192.168.0.38:554 [AP]
  DESCRIBE rtsp://192.168.0.38:554/LowResolutionVideo RTSP/1.0..CSeq: 4..Auth
  orization: Digest username="admin", realm="Logitech Alert", nonce="ff0bef48
  87f8ea41172414777d47169f", uri="rtsp://192.168.0.38:554/LowResolutionVideo"
  , response="aa4010501d01346b5d884880d85d8659"..User-Agent: LibVLC/1.1.9 (LI
  VE555 Streaming Media v2011.01.06)..Accept: application/sdp....
#
T 192.168.0.38:554 -> 192.168.0.34:3934 [AP]
  RTSP/1.0 200 OK..CSeq: 4..Date: Sat, Jun 18 2011 16:11:35 GMT..Content-Base
  : rtsp://192.168.0.38/LowResolutionVideo/..Content-Type: application/sdp..C
  ontent-Length: 733....v=0..o=- 1308401064394322 1 IN IP4 192.168.0.38..s=LI
  VE555 Streaming Media v..i=LIVE555 Streaming Media v..t=0 0..a=tool:LIVE555
   Streaming Media v2010.04.09..a=type:broadcast..a=control:*..a=range:npt=0-
  ..a=x-qt-text-nam:LIVE555 Streaming Media v..a=x-qt-text-inf:LIVE555 Stream
  ing Media v..m=video 0 RTP/AVP 96..c=IN IP4 0.0.0.0..b=AS:1000..a=rtpmap:96
   H264/90000..a=fmtp:96 packetization-mode=1;profile-level-id=42801E;sprop-p
  arameter-sets=J0KAHtoCgPTAVSAAAAMAIAAAB4wIACSeAAkn173wvCIRqA==,KM48gA==..a=
  control:track1..m=audio 0 RTP/AVP 97..c=IN IP4 0.0.0.0..b=AS:64..a=rtpmap:9
  7 MPEG4-GENERIC/8000..a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hb
  r;sizelength=13;indexlength=3;indexdeltalength=3;config=1588..a=control:tra
  ck2..
#
T 192.168.0.34:3934 -> 192.168.0.38:554 [AP]
  SETUP rtsp://192.168.0.38/LowResolutionVideo/track1 RTSP/1.0..CSeq: 5..Auth
  orization: Digest username="admin", realm="Logitech Alert", nonce="ff0bef48
  87f8ea41172414777d47169f", uri="rtsp://192.168.0.38/LowResolutionVideo/", r
  esponse="c3e23303af17c7fdc4b07cbee669d5b2"..User-Agent: LibVLC/1.1.9 (LIVE5
  55 Streaming Media v2011.01.06)..Transport: RTP/AVP;unicast;client_port=393
  6-3937....
#
T 192.168.0.38:554 -> 192.168.0.34:3934 [AP]
  RTSP/1.0 200 OK..CSeq: 5..Date: Sat, Jun 18 2011 16:11:35 GMT..Transport: R
  TP/AVP;unicast;destination=192.168.0.34;source=192.168.0.38;client_port=393
  6-3937;server_port=6970-6971..Session: 4FA32736....
#
T 192.168.0.34:3934 -> 192.168.0.38:554 [AP]
  SETUP rtsp://192.168.0.38/LowResolutionVideo/track2 RTSP/1.0..CSeq: 6..Auth
  orization: Digest username="admin", realm="Logitech Alert", nonce="ff0bef48
  87f8ea41172414777d47169f", uri="rtsp://192.168.0.38/LowResolutionVideo/", r
  esponse="c3e23303af17c7fdc4b07cbee669d5b2"..User-Agent: LibVLC/1.1.9 (LIVE5
  55 Streaming Media v2011.01.06)..Transport: RTP/AVP;unicast;client_port=393
  8-3939..Session: 4FA32736....
#
T 192.168.0.38:554 -> 192.168.0.34:3934 [AP]
  RTSP/1.0 200 OK..CSeq: 6..Date: Sat, Jun 18 2011 16:11:35 GMT..Transport: R
  TP/AVP;unicast;destination=192.168.0.34;source=192.168.0.38;client_port=393
  8-3939;server_port=6972-6973..Session: 4FA32736....
#
T 192.168.0.34:3934 -> 192.168.0.38:554 [AP]
  PLAY rtsp://192.168.0.38/LowResolutionVideo/ RTSP/1.0..CSeq: 7..Authorizati
  on: Digest username="admin", realm="Logitech Alert", nonce="ff0bef4887f8ea4
  1172414777d47169f", uri="rtsp://192.168.0.38/LowResolutionVideo/", response
  ="d08c207de72487d6e8f3df3f6cf66765"..User-Agent: LibVLC/1.1.9 (LIVE555 Stre
  aming Media v2011.01.06)..Session: 4FA32736..Range: npt=0.000-....
#
T 192.168.0.38:554 -> 192.168.0.34:3934 [AP]
  RTSP/1.0 200 OK..CSeq: 7..Date: Sat, Jun 18 2011 16:11:35 GMT..Range: npt=0
  .000-..Session: 4FA32736..RTP-Info: url=rtsp://192.168.0.38/LowResolutionVi
  deo/track1;seq=19624;rtptime=794433915,url=rtsp://192.168.0.38/LowResolutio
  nVideo/track2;seq=14786;rtptime=558765740....
#
T 192.168.0.34:3934 -> 192.168.0.38:554 [AP]
  GET_PARAMETER rtsp://192.168.0.38/LowResolutionVideo/ RTSP/1.0..CSeq: 8..Au
  thorization: Digest username="admin", realm="Logitech Alert", nonce="ff0bef
  4887f8ea41172414777d47169f", uri="rtsp://192.168.0.38/LowResolutionVideo/",
   response="fc9db45c506f7f7199396433ce724f7d"..User-Agent: LibVLC/1.1.9 (LIV
  E555 Streaming Media v2011.01.06)..Session: 4FA32736....

i try it with ffmpeg to get it work.
Cooperson
Posts: 2
Joined: Sat Jun 18, 2011 3:28 pm

Re: Logitech 750i + rtsp/ffmpeg

Post by Cooperson »

hi,

ZoneMinder + Logitech 750i + ffmpeg does not work.

This test works fine
ffmpeg -i rtsp://admin:notforyoureyes@192.168.0.38:554/LowResolutionVideo -an -f avi -b 500 -s 320x240 -b 600k -r 15 -vcodec mpeg4 -vtag DIVX /tmp/out.avi

if you configure a Monitor with ffmpeg .. you get such error in /var/log/syslog

Code: Select all

Jun 18 20:50:57 zoneminder zmc_m2[28194]: INF [Starting Capture]
Jun 18 20:50:57 zoneminder zmc_m2[28194]: INF [Priming capture from rtsp://admin:notforyoureyes@192.168.0.38:554/LowResolutionVideo]
Jun 18 20:50:57 zoneminder zmc_m2[28194]: FAT [Unable to open input rtsp://admin:notforyoureyes@192.168.0.38:554/LowResolutionVideo due to: Operation now in progress]
Jun 18 20:50:57 zoneminder zmc_m2[28194]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Jun 18 20:50:57 zoneminder zmdc[27792]: ERR ['zmc -m 2' exited abnormally, exit status 6]
Locked