Page 1 of 1

ffmpeg error

Posted: Sun Apr 02, 2006 6:00 pm
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?

Posted: Sun Apr 02, 2006 10:58 pm
by zoneminder
I think you need to set an output frame rate of say 25 fps for this codec.

Posted: Wed Apr 05, 2006 3:53 pm
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.

Posted: Wed Apr 05, 2006 4:07 pm
by zoneminder
Depending on what version of ZM you have there should be an option, ZM_FFMPEG_OUTPUT_OPTIONS, where you can put this.