ffmpeg configuration / integration

Support and queries relating to all previous versions of ZoneMinder
Locked
sdel
Posts: 22
Joined: Tue Jan 04, 2005 6:05 am

ffmpeg configuration / integration

Post by sdel »

i configured and installed ffmpeg. i un-tarred the file inside the tar file are at /usr/local/ffmpeg

the binary installed at: /usr/local/bin/ffmpeg

now, i'm confused on how to integrate ffmpeg with zm. i have run the configuration the following ways:

--with-ffmpeg=/usr/local
and
--with-ffmpeg=/usr/local/ffmpeg

i've also messed with the settings in the control panel under 'tools' and set it to /usr/local/ffmpeg and /usr/local/bin/ffmpeg

so my questions are:

1. which configuration method should i be using?
2. what path in the control panel under 'tools' should i be pointing to?

thanks in advance.

Mike
________
Colorado Medical Marijuana
Last edited by sdel on Sun Feb 13, 2011 11:56 pm, edited 1 time in total.
sdel
Posts: 22
Joined: Tue Jan 04, 2005 6:05 am

Post by sdel »

zmvideo.log
Creating video file Event-18.mpg for event 18
/usr/local/bin/ffmpeg -y -hq -intra -r 3.77 -s 320x240 -i %03d-capture.jpg Event-18.mpg > mpeg.log
sh: line 1: mpeg.log: Permission denied

Error: 1 at /usr/local/bin/zmvideo.pl line 259.
what permissions is it referring to?
________
LOVE LYRICS DICUSSION
Last edited by sdel on Sun Feb 13, 2011 11:56 pm, edited 1 time in total.
sdel
Posts: 22
Joined: Tue Jan 04, 2005 6:05 am

Post by sdel »

i ran this command as root and got this:
# ffmpeg -y -hq -intra -r 3.77 -s 320x240 -i %03d-capture.jpg Event-18.mpg > mpeg.log
[mjpeg @ 0x82e33d0]get_buffer() failed
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:22.2, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 3.77 fps
Output #0, mpeg, to 'Event-18.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 @ 0x82e33d0]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
________
Yamaha Psr-500M Specifications
Last edited by sdel on Sun Feb 13, 2011 11:56 pm, edited 1 time in total.
sdel
Posts: 22
Joined: Tue Jan 04, 2005 6:05 am

Post by sdel »

ok, so after a little searching i decided to downgrade. this definately helped, but not totally.

i can now open an event and create a video from it without generating errors.

now i just want to be able to monitor the mpeg realtime. i'll post my results when i figure this one out.
________
Mercedes-Benz C208 Specifications
Last edited by sdel on Sun Feb 13, 2011 11:56 pm, edited 1 time in total.
Ruler
Posts: 235
Joined: Mon Nov 08, 2004 9:02 pm
Location: Bay City, MI

Post by Ruler »

What do you mean that you downgraded? I haven't been able to use ffmpeg since installing it and would very much like to. I haven't had time to research the problems in detail yet though.
sdel
Posts: 22
Joined: Tue Jan 04, 2005 6:05 am

Post by sdel »

i went to the website and downloaded the earlier version: 0.4.8

http://sourceforge.net/project/showfile ... p_id=16082

then just configure, make, make install

the commands work from a command line now, but i'm still unable to stream video in mpeg.
________
Yamaha xv1700a
Last edited by sdel on Sun Feb 13, 2011 11:57 pm, edited 1 time in total.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Streaming uses a totally different mechanism from the creation of video files, though both use ffmpeg. What browser and video format are you using for the streams?

Phil
Locked