ffmpeg mpeg generation problem
Posted: Thu Apr 28, 2005 10:26 am
hi, I have installed ffmpeg 0.4.9-pre1 but there is a probblem when I generate mpeg from the motion detected jpeg files.
-----------------------
Error Message:
-----------------------
Duration: 00:00:07.3, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 8.21 fps
Output #0, mpeg, to 'Event-195.mpg':
Stream #0.0: Video: mpeg1video, 320x240, 10.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0x8266698]MPEG1/2 doesnt support 10/1 fps
Error while opening codec for stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
Error: 1 at /usr/local/zm/bin/zmvideo.pl line 274.
I find that zm runs following command with erro:
/usr/local/bin/ffmpeg -y -r 8.21 -s 320x240 -i %03d-capture.jpg Event-195.mpg > mpeg.log
I tried to remove "-r 8.21", then it can generate the mpeg successfully. But the frame rates seem nor normal, it runs very fast. Therefore, I cannot remove this "-r" parameter in ZM.
Any one can advise how to solve it? Thanks.
-----------------------
Error Message:
-----------------------
Duration: 00:00:07.3, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 8.21 fps
Output #0, mpeg, to 'Event-195.mpg':
Stream #0.0: Video: mpeg1video, 320x240, 10.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0x8266698]MPEG1/2 doesnt support 10/1 fps
Error while opening codec for stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
Error: 1 at /usr/local/zm/bin/zmvideo.pl line 274.
I find that zm runs following command with erro:
/usr/local/bin/ffmpeg -y -r 8.21 -s 320x240 -i %03d-capture.jpg Event-195.mpg > mpeg.log
I tried to remove "-r 8.21", then it can generate the mpeg successfully. But the frame rates seem nor normal, it runs very fast. Therefore, I cannot remove this "-r" parameter in ZM.
Any one can advise how to solve it? Thanks.