databrary-1: Databrary

Safe HaskellNone
LanguageHaskell2010

Store.Probe

Synopsis

Documentation

probeLength :: Probe -> Maybe Offset Source #

Get detected length if this is an audio or video file

probeFile :: (MonadIO m, MonadHas AV c m) => ByteString -> RawFilePath -> m (Either Text Probe) Source #

Detect whether the mimetype expected in the file given is accepted by Databrary, and probe/wrap the file into a Probe describing it conversion target and current format.

avProbeCheckFormat :: Format -> AVProbe -> Bool Source #

Test if this represents a file in standard format.