Found zmvideo.pl issue 1.19.1 to 1.19.3

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Found zmvideo.pl issue 1.19.1 to 1.19.3

Post by cordel »

I can't create video since 1.19.1
MPEG streaming is working fine.

The only error I have is in

<zmvideo.log>

Code: Select all

Creating video file Event-214.mpg for event 214
/usr/local/bin/ffmpeg -y -hq -intra -r 5.15 -s 320x240 -i %03d-capture.jpg Event-214.mpg > mpeg.log
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:06.4, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj444p, 320x240, 5.15 fps
Output #0, mpeg, to 'Event-214.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 5.15 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding

Error: 139 at /usr/bin/zmvideo.pl line 259.

If I look where it is supposed to be created

Code: Select all

ls -l /var/www/html/events/Front_Yard/214/
-rw-r--r-- 1 root root 0 May 6 17:07 Event-214.mpg
-rw-r--r-- 1 root root 0 May 6 17:07 mpeg.log

Is this a permisions issue maybe? I think that incorect information is being passed to ffmpeg maybe.

I running in gray scale with ZM_COLOUR_JPEG_FILES off
If I turn ZM_COLOUR_JPEG_FILES on and for fun I changed my camera to 640x480
then force an alarm and make a video from that.

<zmvideo.log>

Code: Select all

Creating video file Event-224.mpg for event 224
/usr/local/bin/ffmpeg -y -hq -intra -r 5.08 -s 320x240 -i %03d-capture.jpg Event-224.mpg > mpeg.log
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:14.1, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 5.08 fps
Output #0, mpeg, to 'Event-224.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 5.08 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 15 q=9.0 size= 54kB time=3.0 bitrate= 149.8kbits/s ^Mframe= 27 q=7.0 size= 126kB time=5.3 bitrate= 194.2kbits/s ^Mframe= 39 q=7.0 size= 198kB time=7.7 bitrate= 211.3kbits/s ^Mframe= 52 q=7.0 size= 276kB time=10.2 bitrate= 220.9kbits/s ^Mframe= 64 q=8.0 size= 344kB time=12.6 bitrate= 223.7kbits/s ^Mframe= 72 q=8.0 size= 390kB time=14.2 bitrate= 225.4kbits/s ^M

Finished Event-224.mpg
This last step works. although the video quality is somewhat low and it passed 320x240 to ffmpeg.
So I guess I found that we need to be able to pass the correct pallet information into ffmpeg to be able to use b/w without ZM_COLOUR_JPEG_FILES on.
I will play more with it later.
Cheers,
Cordel
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

update

Post by cordel »

For some reason the change to 640x480 hadn't been placed in the last event 224 so that information is correct. The only issue is the pallet information if you have your cams set to grey and have ZM_COLOUR_JPEG_FILES off . It still passes yuvj444p to ffmpeg.
Cheers,
Cordel
Locked