Problem with Foscam 9821 clone RTSP stream
Posted: Wed Aug 19, 2015 12:37 pm
I'm trying to add new monitor to Zoneminder v1.28.1 on Debian Jessie using Foscam FI9821W FFMPEG H.264 preset with the following settings:
General tab
Source Type: FFmpeg
---
Source tab
Source Path: rtsp://opticam:password@10.10.x.y:8080/videoMain
Remote Method: RTP/Unicast
Capture Width: 1280
Capture Height: 720
---
Camera is behind OpenVPN tunnel and OpenVPN endpoint has port forwarding from port 8080 to camera's internal IP address' port 88. I have confirmed that this configuration and URL works fine as the stream plays fine with VLC media player on Windows 8.1.
zmc debug log gives the following output:
08/19/15 15:25:30.138711 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_monitor.cpp/2774 [Loaded monitor 5(Monitor-5), 1 zones]
08/19/15 15:25:30.138905 zmc_m5[31919].INF-/root/ZoneMinder-1.28.1/src/zmc.cpp/195 [Starting Capture]
08/19/15 15:25:30.139098 zmc_m5[31919].INF-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/98 [Priming capture from rtsp://opticam:password@10.10.x.y:8080/videoMain]
08/19/15 15:25:30.139263 zmc_m5[31919].DB2-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/215 [OpenFfmpeg called.]
08/19/15 15:25:30.139440 zmc_m5[31919].DB2-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/237 [Number of Options: 1]
08/19/15 15:25:30.139603 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/254 [Calling avformat_open_input]
08/19/15 15:25:30.864276 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/269 [Opened input]
08/19/15 15:25:30.864325 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/276 [Calling avformat_find_stream_info]
08/19/15 15:25:36.006100 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/281 [Got stream info]
08/19/15 15:25:36.006148 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/300 [Found video stream]
08/19/15 15:25:36.006175 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/308 [Found decoder]
08/19/15 15:25:36.006191 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/315 [Calling avcodec_open2]
08/19/15 15:25:36.007113 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/320 [Opened codec]
08/19/15 15:25:36.007136 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/331 [Allocated frames]
08/19/15 15:25:36.007150 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/338 [Validated imagesize]
08/19/15 15:25:36.007158 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/341 [Calling sws_isSupportedInput]
08/19/15 15:25:36.007174 zmc_m5[31919].FAT-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/343 [swscale does not support the codec format: ÿÿÿÿ]
--
I tried to Google around what is the meaning of that "swscale does not support the codec format" error message but didn't find anything helpful.
General tab
Source Type: FFmpeg
---
Source tab
Source Path: rtsp://opticam:password@10.10.x.y:8080/videoMain
Remote Method: RTP/Unicast
Capture Width: 1280
Capture Height: 720
---
Camera is behind OpenVPN tunnel and OpenVPN endpoint has port forwarding from port 8080 to camera's internal IP address' port 88. I have confirmed that this configuration and URL works fine as the stream plays fine with VLC media player on Windows 8.1.
zmc debug log gives the following output:
08/19/15 15:25:30.138711 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_monitor.cpp/2774 [Loaded monitor 5(Monitor-5), 1 zones]
08/19/15 15:25:30.138905 zmc_m5[31919].INF-/root/ZoneMinder-1.28.1/src/zmc.cpp/195 [Starting Capture]
08/19/15 15:25:30.139098 zmc_m5[31919].INF-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/98 [Priming capture from rtsp://opticam:password@10.10.x.y:8080/videoMain]
08/19/15 15:25:30.139263 zmc_m5[31919].DB2-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/215 [OpenFfmpeg called.]
08/19/15 15:25:30.139440 zmc_m5[31919].DB2-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/237 [Number of Options: 1]
08/19/15 15:25:30.139603 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/254 [Calling avformat_open_input]
08/19/15 15:25:30.864276 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/269 [Opened input]
08/19/15 15:25:30.864325 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/276 [Calling avformat_find_stream_info]
08/19/15 15:25:36.006100 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/281 [Got stream info]
08/19/15 15:25:36.006148 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/300 [Found video stream]
08/19/15 15:25:36.006175 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/308 [Found decoder]
08/19/15 15:25:36.006191 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/315 [Calling avcodec_open2]
08/19/15 15:25:36.007113 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/320 [Opened codec]
08/19/15 15:25:36.007136 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/331 [Allocated frames]
08/19/15 15:25:36.007150 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/338 [Validated imagesize]
08/19/15 15:25:36.007158 zmc_m5[31919].DB1-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/341 [Calling sws_isSupportedInput]
08/19/15 15:25:36.007174 zmc_m5[31919].FAT-/root/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp/343 [swscale does not support the codec format: ÿÿÿÿ]
--
I tried to Google around what is the meaning of that "swscale does not support the codec format" error message but didn't find anything helpful.