Skip to main content

Module media

Module media 

Source
Expand description

Durations of audio and video files, stored at import as duration (seconds, with a fraction, as a browser’s media element reports it).

Constants§

AUDIO_EXTENSIONS
Eagle’s audio formats.
VIDEO_EXTENSIONS
Eagle’s video formats.

Functions§

audio_duration
An audio file’s length: from its header, or by adding up packet durations when the header doesn’t say (an MP3 without a Xing header). None when the file doesn’t decode (see crate::audio).
duration
The duration in seconds of an audio or video file falcon can read: the audio formats through crate::audio, ISO-media video (mp4, mov, m4v, 3gp, f4v) from its movie header, and other video through FFmpeg when it is installed.
is_audio
is_video
mp4_duration
Reads moov/mvhd and returns duration ÷ timescale.