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).
Nonewhen the file doesn’t decode (seecrate::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/mvhdand returns duration ÷ timescale.