VideoTimeCode.newFromDateTime

gstvideo.video_time_code.VideoTimeCode newFromDateTime(uint fpsN, uint fpsD, glib.date_time.DateTime dt, gstvideo.types.VideoTimeCodeFlags flags, uint fieldCount)

The resulting config->latest_daily_jam is set to midnight, and timecode is set to the given time.

This might return a completely invalid timecode, use [gstvideo.video_time_code.VideoTimeCode.newFromDateTimeFull] to ensure that you would get null instead in that case.

Parameters

fpsNNumerator of the frame rate
fpsDDenominator of the frame rate
dt#GDateTime to convert
flags#GstVideoTimeCodeFlags
fieldCountInterlaced video field count

Returns

the #GstVideoTimeCode representation of dt.