Page 1 of 1

9.10, ffmpeg SVN-r20800 video generation failing permissions

Posted: Thu Dec 17, 2009 10:56 pm
by coke
Ubuntu 9.10
Zm 1.24.2
ffmpeg SVN-20800

Everything compiles fine without any complaints. Zoneminder works fine in all aspects I've tried except video generation.

zmvideo.log

Code: Select all

12/17/09 16:46:26.771545 zmvideo[14502].INF [Creating video file Event-925312-r1-s1.mov for event 925312]
12/17/09 16:46:26.936526 zmvideo[14502].ERR [Unable to generate video, check /var/www//events/8/09/12/17/15/50/00/ffmpeg.log for details]
ffmpeg.log

Code: Select all

cat /var/www//events/8/09/12/17/15/50/00/ffmpeg.log
sh: /usr/local/: Permission denied
ls -l /usr (non-local omitted)

Code: Select all

drwxr-xr-x  10 root root    288 2008-06-13 14:26 local
Cranking ZM's debug up to 9 didn't seem to reveal anything, can't seem to locate any log with more detailed information. Any idea what's having permission denied to it, or how I might find that out?[/code]

Posted: Thu Dec 17, 2009 11:47 pm
by whatboy
I think the video is generated on the event folder...

/var/www//events/8/09/12/17/15/50/00/


what's

ls -l /var/www//events

??? try www-data

Posted: Fri Dec 18, 2009 1:45 pm
by coke
ls -l /var/www/, sans the other directories:

drwxr-xr-x 29 www-data www-data 1528 2009-12-16 15:41 events

Re: 9.10, ffmpeg SVN-r20800 video generation failing permiss

Posted: Fri Dec 18, 2009 2:01 pm
by curtishall
coke wrote:

Code: Select all

12/17/09 16:46:26.771545 zmvideo[14502].INF [Creating video file Event-925312-r1-s1.mov for event 925312]
12/17/09 16:46:26.936526 zmvideo[14502].ERR [Unable to generate video, check /var/www//events/8/09/12/17/15/50/00/ffmpeg.log for details]
ffmpeg.log

Code: Select all

cat /var/www//events/8/09/12/17/15/50/00/ffmpeg.log
sh: /usr/local/: Permission denied
[/code]
What's the path to ffmpeg? Maybe it's accidentally /usr/local instead of /usr/local/bin/ffmpeg and it's trying to execute the folder ;)

Posted: Fri Dec 18, 2009 6:03 pm
by coke
Actually, there was an ffmpeg executable in /usr/local in addition to the one in /usr/local/bin. Got rid of it, rebooted, recompiled zoneminder, still the same error.

I guess the next plan is to recompile ffmpeg with it's debug level cranked up and see if it gives me a more useful log.

Posted: Fri Dec 18, 2009 8:43 pm
by coke
Forgot I spoke some perl. Just edited zmvideo.pl to discover that it is, in fact, trying to execute /usr/local/bin itself. Apparently path to ffmpeg has to actually include the word ffmpeg. :)

Now I have a real error I can search for.

Code: Select all

/usr/local/bin/ffmpeg: symbol lookup error: /usr/local/bin/ffmpeg: undefined symbol: avcodec_decode_video2