ffmpeg mpeg generation problem

Support and queries relating to all previous versions of ZoneMinder
Locked
felixchu
Posts: 7
Joined: Sat Apr 23, 2005 5:40 pm

ffmpeg mpeg generation problem

Post by felixchu »

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.
felixchu
Posts: 7
Joined: Sat Apr 23, 2005 5:40 pm

Post by felixchu »

I have solved.

Thanks a lot.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Could you please postt your solution?
Regards,
Cordel
mikkox
Posts: 4
Joined: Thu Jul 07, 2005 9:36 am

Post by mikkox »

I would need also solution for the specific problem. Could you post it?

-Mikkox
tommy
Posts: 45
Joined: Sun Aug 17, 2003 2:58 am

Post by tommy »

I had same problem.
Fixed by adding -strict -1 to ffmpeg generation parameters as reported elsewhere in the forum.
mikkox
Posts: 4
Joined: Thu Jul 07, 2005 9:36 am

Post by mikkox »

Thanks... :D

Now it works perfectly.

-Mikkox
Locked