haskell-ffprobe: Haskell bindings for ffprobe

[ bindings, bsd3, library ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 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:34:07Z
Distributions
Downloads 53 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

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)