haskell-ffprobe: Haskell bindings for ffprobe

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Use ffprobe data in Haskell. Checkout the README on GitHub for an example.


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.0.1
Change log CHANGELOG.md
Dependencies aeson (>=2.1.2.1 && <=2.2.3.0), base (>=4.7 && <5), bytestring (>=0.11.5 && <0.12), process (>=1.6.18 && <1.7), scientific (>=0.3.7 && <=0.3.8.0), text (>=2.0.2 && <2.1) [details]
License BSD-3-Clause
Copyright 2024 Arthi-chaud
Author Arthi-chaud
Maintainer Arthi-chaud
Category Bindings
Home page https://github.com/Arthi-chaud/haskell-ffprobe#readme
Bug tracker https://github.com/Arthi-chaud/haskell-ffprobe/issues
Source repo head: git clone https://github.com/Arthi-chaud/haskell-ffprobe
Uploaded by ArthiChaud at 2024-08-10T20:33:20Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for haskell-ffprobe-0.1.0.1

[back to package description]

haskell-ffprobe

This package provides Haskell bindings for the ffprobe command.

Example

import FFProbe
import FFProbe.Data.Format (duration, formatName)
import FFProbe.Data.Stream (codecLongName)
import System.Environment

main :: IO ()
main = do
    fileName:_ <- getArgs
    ffprobeRes <- ffprobe fileName
    case ffprobeRes of
        Left err -> putStrLn $ "An error occured: " ++ err
        Right ffprobeData -> do
            print $ formatName (format ffprobeData)
            print $ duration (format ffprobeData)
            print $ length (chapters ffprobeData)
            print $ codecLongName $ head (streams ffprobeData)