No video exporting, ffmpeg working fine outside ZM

Support and queries relating to all previous versions of ZoneMinder
Locked
lucasr
Posts: 4
Joined: Sun Mar 30, 2008 8:27 am
Location: Florianópolis, Brazil

No video exporting, ffmpeg working fine outside ZM

Post by lucasr »

Hi...
I'm having problems to export video from ZM. When I try to export I only get errors. If I generate a tar, it is empty. A zip is not even generated. The problem is almost the same as reported in this thread: http://www.zoneminder.com/forums/viewtopic.php?p=41466
Since there's no good solution there, I'm posting a new topic. The errors screenshots would be the same. I tried generating video from the playback screen but it didn't work as well.

Using:
Ubuntu Server 8.04 amd64 - kernel 2.6.24-19
ZM 1.23.3
gcc 4.2.3
ffmpeg SVN-r14105
libavutil version: 49.7.0
libavcodec version: 51.58.0
libavformat version: 52.16.0
libavdevice version: 52.0.0


The Apache error log is below.

Code: Select all

sh: Syntax error: Bad fd number

zip error: Nothing to do! (temp/zmExport.zip)
[Mon Jul 07 23:36:50 2008] [error] [client MYIP] Command 'cat temp/zmFileList.txt | zip -q temp/zmExport.zip -@' returned with status 12, referer: http://MYSERVER/zm/index.php?view=export&eids[]=50
When I try to run "cat temp/zmFileList.txt" in ZM directory I get nothing. Just as a heads up, the zmFileList.txt file is empty...I don't know if it should be like this, so...

zmvideo.log gives me this:

Code: Select all

07/08/08 02:46:12.051457 zmvideo[21176].INF [Creating video file Event-7-r1-s1.mpg for event 7]
07/08/08 02:46:12.089761 zmvideo[21176].ERR [Unable to generate video, check /var/www/zm/events/1/08/07/07/16/10/00/ffmpeg.log for details]
The file ffmpeg.log mentioned above doesn't exist.

When I run ffmpeg from the command line I can generate video from the captured images normally, without any problems.

Well, I can only compile ZM if I modify the zm_mpeg.cpp file, adding a "!" before ZM_FFMPEG_SVN in line 280, as I've seen around the forum. Without this, make gives the error below.

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/bin//include -Wall -Wno-sign-compare   -g -O2 -MT zm_mpeg.o -MD -MP -MF .deps/zm_mpeg.Tpo -c -o zm_mpeg.o zm_mpeg.cpp
zm_mpeg.cpp: In destructor ‘VideoStream::~VideoStream()’:
zm_mpeg.cpp:281: error: cannot convert ‘ByteIOContext’ to ‘ByteIOContext*’ for argument ‘1’ to ‘int url_fclose(ByteIOContext*)’
make[2]: *** [zm_mpeg.o] Error 1
make[2]: *** Waiting for unfinished jobs....
zm_jpeg.c: In function ‘zm_jpeg_error_exit’:
zm_jpeg.c:42: warning: implicit declaration of function ‘exit’
zm_jpeg.c:42: warning: incompatible implicit declaration of built-in function ‘exit’
mv -f .deps/zm_jpeg.Tpo .deps/zm_jpeg.Po
mv -f .deps/zm_user.Tpo .deps/zm_user.Po
mv -f .deps/zm_regexp.Tpo .deps/zm_regexp.Po
mv -f .deps/zm_remote_camera.Tpo .deps/zm_remote_camera.Po
mv -f .deps/zm_monitor.Tpo .deps/zm_monitor.Po
make[2]: Leaving directory `/home/rossi/testes/ZoneMinder-1.23.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rossi/testes/ZoneMinder-1.23.3'
make: *** [all] Error 2
Any ideas? Any other log files needed?

Thanks in advance.
Locked