ffmpeg encoding on Ubuntu *sort of* works?

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
Beofres
Posts: 32
Joined: Tue Jun 19, 2007 6:53 pm
Location: North-Bay , California

ffmpeg encoding on Ubuntu *sort of* works?

Post by Beofres »

Don't know if this is a ZM or ffmpeg question, but I'd figure I'd ask here first.

Installed ZM on Xubuntu 7.10 following the guide in the second post of this thread and it installed fine. The guide has me install ffmpeg from the debian repository. Initially, I had the following error show up in /var/log/apache2/error.log whenever I tried to generate video:

Code: Select all

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-li$
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Jun  3 2007 20:59:25, gcc: 4.1.3 20070528 (prerelease) (Ubuntu 4.1.2-9ubuntu2)
Incorrect frame rate
I figured that might have had something to do with the -r 25 located in ZM_FFMPEG_OUTPUT_OPTIONS so I removed it. Now, I can generate .3gp, .mov, .avi, and .wmv videos! But, I cannot generate .mpg or .mpeg files. I get the following in the same error.log when I attempt:

Code: Select all

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-li$
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Jun  3 2007 20:59:25, gcc: 4.1.3 20070528 (prerelease) (Ubuntu 4.1.2-9ubuntu2)
Input #0, image2, from '%03d-capture.jpg':
  Duration: 00:00:39.2, start: 0.000000, bitrate: N/A
  Stream #0.0: Video: mjpeg, yuvj420p, 320x240,  2.75 fps(r)
Output #0, mpeg, to 'Event-4835-r1-s1.mpg':
  Stream #0.0: Video: mpeg1video, yuv420p, 320x240, q=2-31, 200 kb/s,  5.00 fps(c)
Stream mapping:
  Stream #0.0 -> #0.0
[mpeg1video @ 0xb7e3dac8]MPEG1/2 does not support 5/1 fps
Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width $
What does the rest of the community set their ZM_FFMPEG_OUTPUT_OPTIONS to?

Any ideas as to why I might be getting this?
Post Reply