ffmpeg error

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

ffmpeg error

Post by Dreamer »

OS: Ubuntu 5.10 with ZM adapted from the Debian 'HowTo'

I'm getting an error in zmvideo.log

Creating video file Event-565.mpg for event 565
/usr/bin/ffmpeg -y -hq -intra -r 5.59 -s 320x240 -i %03d-capture.jpg Event-565.mpg > mpeg.log
[mjpeg @ 0xb7e98010]get_buffer() failed
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:03.7, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 5.59 fps
Output #0, mpeg, to 'Event-565.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 5.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0xb7e98010]MPEG1/2 doesnt support 5/1 fps
Error while opening codec for stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

Error: 1 at /usr/bin/zmvideo.pl line 274.


It seems like the get_buffer() function has failed.

Any ideas as to why?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I think you need to set an output frame rate of say 25 fps for this codec.
Phil
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

The only way I could get this to work was by hard coding '-r 25' into /usr/bin/zmvideo.pl Nothing else seemed to work. I also removed the default setting in OPTIONS.

Anyway, sorted now, thanks for the pointer.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Depending on what version of ZM you have there should be an option, ZM_FFMPEG_OUTPUT_OPTIONS, where you can put this.
Phil
Post Reply