[Ffmpeg-devel] [PATCH] New grabbing interface

Ramiro Polla angustia
Thu Feb 1 22:29:45 CET 2007


Luca Abeni wrote:
> Hi Ramiro,
>
> On Wed, 2007-01-31 at 17:56 -0200, ramiro at lisha.ufsc.br wrote:
> [...]
>   
>> I have a question regarding input_sync in ffmpeg.c:
>> What does it do?
>>     
> If I remember well, I was the one introducing it.
> It helps audio-video synchronization (avoiding skipped video frames)
> when capturing from video4linux and OSS. In this case, audio and video
> come from two different inputs, so when reading an input frame ffmpeg
> must decide which input to read from. Generally, it use output PTSs to
> decide, but in this cases input PTSs are more appropriate.
> video4linux2 input provides a better synchronization (because v4l2
> associates a proper timestamp to video frames), so when using
> video4linux2 input_sync is less important.
>
>   
Maybe it should be added as an option like -isync
>> , and why isn't it initialized to 0?
>>     
> Well, I think the real question is: why are all the other static
> variables initialized to 0? AFAIK, a static global variable is stored in
> the BSS, so it is automatically zeroed on program loading...
> So, initializing it to 0 only increases the executable file size.
>   
Hmmm... I thought I would hear something like "benchmark, compare object 
sizes and send patches" =), but nothing yet...

Ramiro Polla




More information about the ffmpeg-devel mailing list