Generate video in SVN

Forum for questions and support relating to the 1.24.x releases only.
Post Reply
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany
Contact:

Generate video in SVN

Post by newvisionantenna » Thu Apr 16, 2009 1:30 pm

It could be just me but I'm finding the current SVN version of Zoneminder and Ffmpeg unable to generate videos. I just get the failed to generate video display. I log is created for the event but I'm not sure what to make of it.

[mjpeg @ 0x9dfb070]marker=c4 avail_size_in_buf=16295
[mjpeg @ 0x9dfb070]class=1 index=1 nb_codes=251
[mjpeg @ 0x9dfb070]marker parser used 181 bytes (1448 bits)
[mjpeg @ 0x9dfb070]marker=da avail_size_in_buf=16112
[mjpeg @ 0x9dfb070]escaping removed 44 bytes
[mjpeg @ 0x9dfb070]component: 0
[mjpeg @ 0x9dfb070]component: 1
[mjpeg @ 0x9dfb070]component: 2
[mjpeg @ 0x9dfb070]marker parser used 16067 bytes (128536 bits)
[mjpeg @ 0x9dfb070]marker=d9 avail_size_in_buf=0
[mjpeg @ 0x9dfb070]mjpeg decode frame unused 0 bytes
Input #0, image2, from '%03d-capture.jpg':
Duration: 00:00:26.50, start: 0.000000, bitrate: N/A
Stream #0.0, 1/4: Video: mjpeg, yuvj420p, 320x240 [PAR 1:1 DAR 4:3], 1/4, 4 tbr, 4 tbn, 4 tbc
Output #0, mpeg, to 'Event-53-r1-s1.mpeg':
Stream #0.0, 1/90000: Video: mpeg1video, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
/usr/local/bin/ffmpeg: symbol lookup error: /usr/local/bin/ffmpeg: undefined symbol: avcodec_decode_video2

newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany
Contact:

Post by newvisionantenna » Thu Apr 16, 2009 2:42 pm

Nevermind, looks like it's just something with 9.04. I went back and upgrade 8.04 with the same ffmpeg and today's SVN Zoneminder. Works perfect, even in IE7 when clicking generate video.

Leoware
Posts: 1
Joined: Wed May 27, 2009 11:36 pm
Location: Bsas
Contact:

Same thing

Post by Leoware » Thu May 28, 2009 12:08 am

Well I'm running ZM on ubuntu 9.04 with the same issue, I'm wondering to know if anybody has the same problem and has it already resolved, or any idea about that. Anyways I wasn't looking has far has I can, so I'll keep it update if I found the solution.

promethiusan
Posts: 9
Joined: Mon Sep 21, 2009 7:53 pm

Post by promethiusan » Sun Nov 08, 2009 6:32 am

I'm still having that problem on Ubuntu 9.04. Every so often I pull a new ffmpeg from SVN and it still fails to build videos.

I'm thinking of upgrading to Ubuntu 9.10 to see if that fixes it.

mhammond71
Posts: 1
Joined: Fri Nov 13, 2009 2:57 am

Upgrade to 9.10

Post by mhammond71 » Fri Nov 13, 2009 3:59 am

I have upgrade to 9.10 and I can not get anything to work now. Did you upgrade and have you got it up and running alright?
Max Hammond

temper5
Posts: 5
Joined: Sat Sep 19, 2009 2:01 pm

Post by temper5 » Sun Nov 22, 2009 6:01 pm

I have same problem on Ubuntu server 9.04 and 9.10. It realy works on 8.04?

FFmpeg version SVN-r20576, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Nov 22 2009 15:18:43 with gcc 4.4.1
configuration: --enable-gpl --enable-shared --enable-nonfree --enable-pthreads
libavutil 50. 4. 0 / 50. 4. 0
libavcodec 52.41. 0 / 52.41. 0
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
[image2 @ 0x9406420]max_analyze_duration reached
Input #0, image2, from '%03d-capture.jpg':
Duration: 00:02:23.50, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 320x240 [PAR 1:1 DAR 4:3], 2 tbr, 2 tbn
Output #0, avi, to 'Event-1-r1-s1.avi':
Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200 k
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Illegal instruction

temper5
Posts: 5
Joined: Sat Sep 19, 2009 2:01 pm

Post by temper5 » Sat Dec 19, 2009 8:12 am

I have configure ffmpeg like this
./configure --enable-gpl --enable-shared --enable-pthreads --enable-runtime-cpudetect
and now everysing ok
This error because I have use Pentium II
https://lists.ubuntu.com/archives/unive ... 00629.html

coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke » Sat Dec 19, 2009 10:34 pm

I'm having the same issue, and it appears the problem in my case is that there were multiple versions of libavcodec on the machine. I've yet to resolve it, due to running out of time, but that seems to be the core of the problem. Do a locate or find for libavcodec If you find it in a variety of locations (/usr/lib, /usr/local/lib, various others) it may well be your problem.

Eliminating the extras seems to be the solution, though depending on which packages installed the libraries in the first place, this is apparently a bit of a pain.

ris2t
Posts: 43
Joined: Thu Jan 22, 2009 8:44 am

Post by ris2t » Sun Mar 07, 2010 5:08 am

coke wrote:there were multiple versions of libavcodec on the machine.
Been battling the "avcodec_decode_video2" error for a little while and the above seems to have addressed my problems.

apt-get remove libavcodec-dev - had a redundant install of the dev libraries

Karmic 9.10, 2.6.31-20-generic

make ffmpeg from src/svn: FFmpeg version SVN-r22274
make zm from src/svn: At revision 3033.

./configure --with-webuser=www-data --with-webgroup=www-data ZM_DB_NAME=zm ZM_DB
_USER=zmuser ZM_DB_PASS=XXX --with-webdir=/var/www/html/zm --with-cgidir=/
usr/lib/cgi-bin --with-libarch=lib64 --with-ffmpeg=/usr/local

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests