ffmpeg with multiple frame rates

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
RossFabricant
Posts: 3
Joined: Sat Sep 26, 2009 9:15 pm

ffmpeg with multiple frame rates

Post by RossFabricant »

If I have different frame rates for alarmed and non-alarmed frames, what is the best way to make a video or videos with the correct frame rate? I believe that for an event with alarm frames I can find the first and last alarm frames with a simple query, and make 3 calls to ffmpeg, 1 for the frames before the alarm, one for the alarm frames, and one afterwards. Is there a simpler way to do this, though?
RossFabricant
Posts: 3
Joined: Sat Sep 26, 2009 9:15 pm

Post by RossFabricant »

In case anyone else has this issue, the best way I found was in fact to generate separate videos for each different frame rate, and join them together with mencoder: mencoder -oac copy -ovc copy -o combined.flv first.flv second.flv third.flv
Post Reply