[FFmpeg-user] Decklink timestamp_align, what should it do?

Bouke bouke at editb.nl
Mon May 3 12:20:27 EEST 2021


> On 2 May 2021, at 18:58, Marton Balint <cus at passwd.hu> wrote:
> 
> 
> 
> On Sun, 2 May 2021, Bouke wrote:
> 
>> 
>> 
>>> On 2 May 2021, at 13:22, Bouke <bouke at editb.nl> wrote:
>>> Setting a timestamp_align of 6 seconds results in a start delay of just 6 seconds…
>> 
>> 
>> Oops, I ment, Setting a timestamp_align of TEN seconds results in a start delay of just 6 seconds…
> 
> Well of course, since it waits only until system clock reaches a 10 second boundary - :00 :10 :20 :30 :40 or :50.
> 
> Maybe I should have wrote this: it waits till
> UNIX_TIMESTAMP() modulo timestamp_align becomes 0.
> where unix timestamp is numer of seconds since 1970.
> 
> Hope it finally makes sense now.

YES!

My Python (pseudso) code now:
_add = 1 - (time.time() % 1)
_tc += add
args extend([‘-timestamp_align’, ‘1'])
args.extend([‘-timecode’, tc])

THANKS!

Bouke

> 
> Regards,
> Marton
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list