[MEncoder-users] possible to explicity write duplicate frames?

Jeffrey Laut jeffreylaut at gmail.com
Tue Jul 24 00:35:06 CEST 2012


thank you!
just tried that and it has solved my problem.

-jeff

On Mon, Jul 23, 2012 at 5:56 PM, Lobster <lobo at lobs.sytes.net> wrote:

> On 24/07/2012 9:17 a.m., Jeffrey Laut wrote:
>
>> Is it possible to convert a video using mencoder, and have it write each
>> frame that is a duplicate frame?
>>
>> I am recording webcam video with ffmpeg.  Usually the first 5 to 7 frames
>> are duplicate frames, and then there may be couple more throughout the
>> video.
>>
>> I am then using opencv to analyze the video, but opencv does not see the
>> duplicate frames.  For example, if* *I tell ffmpeg to record at 10 fps for
>>
>> 300 seconds, I expect to have 3000 frames.  Indeed, when I convert the
>> video from the uncompressed to compressed using mencoder, it says there
>> are
>> 3000 frames.  When I process the video using opencv, it is not counting
>> the
>> duplicate frames more than once, and therefore reporting less frames.
>>
>> I would like to have a video file where each frame is explicitly recorded.
>>   Is this possible?
>>
>> The command I use for converting is;
>>
>> mencoder -nosound -ovc lavc -o video_converted.avi video.avi
>>
>>
>> I have also tried using the "-noskip" command.  This removes the skipped
>> frames from the video, which is not exactly what I want.  I want to have
>> the duplicate frames written as individual frames in the video file.
>>
>>
>> Thank you for any help.
>> -Jeff
>> ______________________________**_________________
>> MEncoder-users mailing list
>> MEncoder-users at mplayerhq.hu
>> https://lists.mplayerhq.hu/**mailman/listinfo/mencoder-**users<https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users>
>>
>>
>>  You must use the harddup vf to encode duplicate frames,
> and just to be safe specify the output frame rate.
> I.E -vf harddup -ofps 10
>
> ______________________________**_________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/**mailman/listinfo/mencoder-**users<https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users>
>


More information about the MEncoder-users mailing list