Page 1 of 1

ffmpeg capture error: Operation now in Progress

Posted: Thu Nov 12, 2009 11:25 pm
by TechGuy
Hi,

I am running into the following problem after rebooting my server. ZM was working until after the restart
11/12/09 18:15:02.132962 zmc_m1[-1].INF-zmc.cpp/188 [Starting Capture]
11/12/09 18:15:02.133013 zmc_m1[-1].INF-zm_ffmpeg_camera.cpp/80 [Priming capture from rtsp://192.168.2.114:7070]
11/12/09 18:15:02.154507 zmc_m1[-1].FAT-zm_ffmpeg_camera.cpp/84 [Unable to open input rtsp://192.168.2.114:7070 due to: Operation now in progress]
11/12/09 18:15:02.154610 zmc_m1[-1].INF-zm_signal.cpp/64 [Got signal 6 (Aborted), exiting and forcing backtrace]
Now, if I manage run "/usr/bin/zmc -m 1" it starts capturing. I think there is a flag some where that makes ZM think its already capturing the video stream, when it really isn't, and is preventing zmc from running. I took a look in the ZM MySQL database as well as the ZM directory structure, but I didn't spot anything obvious.

I suspect that when I rebooted the server, something in ZM didn't shutdown cleanly resulting in my problem.

Thanks

Posted: Mon Nov 16, 2009 9:40 pm
by TechGuy
A little more info:

I tracked down the error to ffmpeg api call "av_open_input_file", and the error isn't really an error. Its just a standard tcp/ip socket API error message when connecting to a remote device using non-blocking mode. I am not sure why av_open_input_file is returning this message. Either its a bug, or its the blocking delay is too short.

Its weird that if I run zmc from the command line it works fine.