Video Generation Failed!

Support and queries relating to all previous versions of ZoneMinder
chalo
Posts: 5
Joined: Tue Feb 13, 2007 5:05 am

Post by chalo »

changing ">& ffmpeg.log" to "&> /tmp/ffmpeg.log" in zmvideo.pl also fixed my problem with ubuntu 7.10 server 64 bit and 1.22.3-7

Thanks!
decibel83
Posts: 80
Joined: Tue Dec 06, 2005 5:22 pm

Post by decibel83 »

I changed the end of the line 323 of zmvideo.pl from ">& ffmpeg.log" to ">& /tmp/ffmpeg.log" but this didn't fix my problem :(
I am not still be able to generate the video file.
I have this error:

Code: Select all

Apr 24 09:27:06 laptop1140l zmvideo[29570]: INF [Creating video file Event-18-r1-s1.mpg for event 18] 
Apr 24 09:27:06 laptop1140l zmvideo[29570]: ERR [Unable to generate video, check /var/www/zm/events/1/18/ffmpeg.log for details]
The ffmpeg.log file doesn't exist, even if I change the path to /tmp/ffmpeg.log (the file does not exist at this location too).
The /var/www/zm/events/1/18 directory is "drwxr-xr-x www-data www-data", so it is writeable by the Apache user.

How I can solve this problem?
Thank you very much!
Bye.
johnnytolengo
Posts: 184
Joined: Tue Oct 14, 2008 5:59 pm

Post by johnnytolengo »

I cant generate avi videos here my log:

Code: Select all

# cat ffmpeg.log 
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon --disable-altivec --disable-vis --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Apr 10 2009 23:18:41, gcc: 4.3.3

Seems stream 0 codec frame rate differs from container frame rate: 4.21 (421/100) -> 8.42 (101/12)
Input #0, image2, from '%03d-capture.jpg':
  Duration: 00:00:13.30, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj420p, 640x480 [PAR 1:1 DAR 4:3], 8.42 tbr, 4.21 tbn, 4.21 tbc
Output #0, avi, to 'Event-1443-r1-s1.avi':
    Stream #0.0: Video: 0x0000, yuvj420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Unsupported codec for output stream #0.0
I can generate just mpeg and mpg, when i run the mpg or mpeg generated video I see some seconds good video quality and the to the end really bad quality.

During the generation i see 96% CPU used and 0.5 memory.

how can I solve it? I want to generate avi :(
Locked