get_natural_framerate


Description:

[ Version ( since = "1.18" ) ]
public virtual bool get_natural_framerate (out int framerate_n, out int framerate_d)

Get the "natural" framerate of this.

This is to say, for example for a VideoUriSource the framerate of the source.

Note that a AudioSource may also have a natural framerate if it derives from the same SourceClip asset as a VideoSource, and its value will be that of the video source. For example, if the uri of a UriClip points to a file that contains both a video and audio stream, then the corresponding AudioUriSource will share the natural framerate of the corresponding VideoUriSource .

Parameters:

this

The TimelineElement to get "natural" framerate from

framerate_n

The framerate numerator

framerate_d

The framerate denominator

Returns:

Whether this has a natural framerate or not, framerate_n and framerate_d will be set to, respectively, 0 and -1 if it is not the case.