9.10, ffmpeg SVN-r20800 video generation failing permissions

Forum for questions and support relating to the 1.24.x releases only.
Locked
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

9.10, ffmpeg SVN-r20800 video generation failing permissions

Post 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]
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post 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
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

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

Post 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 ;)
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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.
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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
Locked