[FFmpeg-devel] [PATCH] VFW capture support
Ramiro Ribeiro Polla
ramiro
Tue Mar 4 22:47:30 CET 2008
Hello,
Ramiro Polla wrote:
> M?ns Rullg?rd wrote:
>> Ramiro Polla <ramiro at lisha.ufsc.br> writes:
[...]
>>> M?ns Rullg?rd wrote:
[...]
>>>>> - If no "-r" parameter is given, way too many frames are read. I
>>>>> thought FFmpeg was supposed to read the first few frames and decide
>>>>> the rate based on that. The capture blocks, so the timestamps are
>>>>> correct, and if some frames were captured and then the frame rate
>>>>> calculated, it should find the correct frame rate, right?
>>>> FFmpeg does not estimate frame rate based on elapsed real time,
>>>> AFAIK.
>>> The question is if it estimates frame rate based on pts. Real time or
>>> not is irrelevant here.
>>
>> Of course you're right. I don't know what I was thinking. That said,
>> can't you set the frame rate in read_header()?
>
> I could, but I thought FFmpeg could be smarter than VFW and find the
> real frame rate by calculating from the pts.
No more comments on this? It's not a show stopper anyways, everything
works fine so I'll deal with it later.
If there are no more objections or comments, I'll commit it tomorrow
using FFmpeg's consistent () style.
[...]
Ramiro Polla
More information about the ffmpeg-devel
mailing list