Error generating video + Logging issues.
Error generating video + Logging issues.
I've been running ZM since 1.19.5, but I have yet to be able to generate video files of events. I have the latest version of ZM (1.21.3) installed on a Debian stable (Sarge) box, running the latest ffmpeg-debs.
zmvideo.log:
Creating video file Event-108336.mpg for event 108336
/usr/bin/ffmpeg -y -hq -intra -r 2.57 -s 352x288 -i %03d-capture.jpg Event-10833 6.mpg > mpeg.log
ffmpeg version 0.4.9-pre1, build 4747, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i386-linux --enable-gpl --enable-pp --enable-zlib --en able-vorbis --enable-a52 --enable-dts --disable-debug --prefix=/usr
built on Mar 22 2005 00:10:18, gcc: 3.3.5 (Debian 1:3.3.5-12)
Input #0, image2, from '%03d-capture.jpg':
Duration: 00:10:01.1, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, 352x288, 2.57 fps
Output #0, mpeg, to 'Event-108336.mpg':
Stream #0.0: Video: mpeg1video (hq), 352x288, 5.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0x8364eb4]MPEG1/2 doesnt support 5/1 fps
Error while opening codec for output stream #0.0 - maybe incorrect parameters su ch as bit_rate, rate, width or height
Error: 1 at /usr/local/zm/bin/zmvideo.pl line 274.
I hope someone has a revelation from that error, it makes no sense to me .
Also, I wish to be able to run all monitors in "Mocord"-mode, but that swamps my logs as there is a lot of activity on the site (ZM goes wild starting/stopping events). Can I configure the syslog-daemon to ignore ZM, or preferably configure ZM to quit logging?
zmvideo.log:
Creating video file Event-108336.mpg for event 108336
/usr/bin/ffmpeg -y -hq -intra -r 2.57 -s 352x288 -i %03d-capture.jpg Event-10833 6.mpg > mpeg.log
ffmpeg version 0.4.9-pre1, build 4747, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i386-linux --enable-gpl --enable-pp --enable-zlib --en able-vorbis --enable-a52 --enable-dts --disable-debug --prefix=/usr
built on Mar 22 2005 00:10:18, gcc: 3.3.5 (Debian 1:3.3.5-12)
Input #0, image2, from '%03d-capture.jpg':
Duration: 00:10:01.1, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, 352x288, 2.57 fps
Output #0, mpeg, to 'Event-108336.mpg':
Stream #0.0: Video: mpeg1video (hq), 352x288, 5.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0x8364eb4]MPEG1/2 doesnt support 5/1 fps
Error while opening codec for output stream #0.0 - maybe incorrect parameters su ch as bit_rate, rate, width or height
Error: 1 at /usr/local/zm/bin/zmvideo.pl line 274.
I hope someone has a revelation from that error, it makes no sense to me .
Also, I wish to be able to run all monitors in "Mocord"-mode, but that swamps my logs as there is a lot of activity on the site (ZM goes wild starting/stopping events). Can I configure the syslog-daemon to ignore ZM, or preferably configure ZM to quit logging?
Last edited by sgn on Wed Sep 28, 2005 3:46 pm, edited 1 time in total.
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
cant help you ffmpeg wise but maybe later as mine dont work either so i will be looking into it.
Syslog wise. I understand your logging concern but if you have a problem you will want them there. As long as your logs are being rotated it really doesnt matter. From my point of view the more it logs the better and will really only be in your messages log. other logs wont be affected
James
Syslog wise. I understand your logging concern but if you have a problem you will want them there. As long as your logs are being rotated it really doesnt matter. From my point of view the more it logs the better and will really only be in your messages log. other logs wont be affected
James
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
i dont know. I would assume so i have yet to read about something that linux couldnt do, my problem is im sure it can do it but im the weak link lol. maybe a log rotate or something could just remove all zm releated info but id just remove what bothering you not all.
In the messages log you would have to stop it logging all and just select what you wanted it to log, or cfreate anothyer logfile that you waould log what it is your looking routily for
James
In the messages log you would have to stop it logging all and just select what you wanted it to log, or cfreate anothyer logfile that you waould log what it is your looking routily for
James
Hi
Try to add "-strict -1" to your ZM_FFMPEG_OPTIONS (Tools config tab) after "-hq -intra" then you should have "-hq -intra -strict -1"
regards,
Oliver
________
MARIJUANA STRAINS
Try to add "-strict -1" to your ZM_FFMPEG_OPTIONS (Tools config tab) after "-hq -intra" then you should have "-hq -intra -strict -1"
regards,
Oliver
________
MARIJUANA STRAINS
Last edited by RedFlyer on Mon Feb 14, 2011 5:19 am, edited 1 time in total.
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
James,
Normally yes, but you need to change file extension association parameter somewhere.
By your question, I presume that you are accessing your ZM box from a WINDOWS operating system browser. Am I right ?
I think that browser use OS file extension association, then you need to go to folder parameters and remove association of MPG file with media player. After that your browser will ask you what to do with the file when generating video from your ZM box.
Regards,
Oliver
________
VAPIR AIR ONE
Normally yes, but you need to change file extension association parameter somewhere.
By your question, I presume that you are accessing your ZM box from a WINDOWS operating system browser. Am I right ?
I think that browser use OS file extension association, then you need to go to folder parameters and remove association of MPG file with media player. After that your browser will ask you what to do with the file when generating video from your ZM box.
Regards,
Oliver
________
VAPIR AIR ONE
Last edited by RedFlyer on Mon Feb 14, 2011 5:19 am, edited 1 time in total.
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
Hi,
I've the same problem, but never tried to solve up to now.
If you find something ... tell me.
regards,
Oliver
________
Cold Case Forums
I've the same problem, but never tried to solve up to now.
If you find something ... tell me.
regards,
Oliver
________
Cold Case Forums
Last edited by RedFlyer on Mon Feb 14, 2011 5:19 am, edited 1 time in total.
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK