-
Notifications
You must be signed in to change notification settings - Fork 28
/
ffmpeg-light.cabal
163 lines (146 loc) · 5.21 KB
/
ffmpeg-light.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
name: ffmpeg-light
version: 0.14.1
synopsis: Minimal bindings to the FFmpeg library.
description: Stream frames from an encoded video, or stream frames to
a video output file. To read the first frame from
an @h264@-encoded file into a JuicyPixels
@Maybe DynamicImage@,
.
> import Codec.FFmpeg
> import Codec.Picture
> import Control.Applicative
>
> go :: IO (Maybe DynamicImage)
> go = do (getFrame, cleanup) <- imageReader "myVideo.mov"
> (fmap ImageRGB8 <$> getFrame) <* cleanup
.
Tested with FFmpeg 3.1 - 3.4.2
license: BSD3
license-file: LICENSE
author: Anthony Cowley
maintainer: [email protected]
copyright: Copyright (C) 2018 Anthony Cowley
homepage: http://github.com/acowley/ffmpeg-light
bug-reports: http://github.com/acowley/ffmpeg-light/issues
category: Codec
build-type: Simple
extra-source-files: src/hscMacros.h, src/nameCompat.h, CHANGELOG.md
cabal-version: >=1.10
tested-with: GHC == 8.6.5 || == 8.8.4 || == 8.10.7 || == 9.0.2 || == 9.2.1 || == 9.6.11
source-repository head
type: git
location: http://github.com/acowley/ffmpeg-light.git
flag BuildDemo
description: Build demo executable
default: False
manual: True
flag BuildRasterDemo
description: Build Rasterific demo executable
default: False
manual: True
flag BuildVPlayDemo
description: Build video player demo executable
default: False
manual: True
flag BuildTranscodeDemo
description: Build transcode demo executable
default: False
manual: True
flag BuildAudioExtractDemo
description: Build audio-extract demo executable
default: False
manual: True
flag BuildAudioSinDemo
description: Build audio-sin demo executable
default: False
manual: True
library
exposed-modules: Codec.FFmpeg,
Codec.FFmpeg.AudioStream,
Codec.FFmpeg.Common,
Codec.FFmpeg.Decode,
Codec.FFmpeg.Encode,
Codec.FFmpeg.Enums,
Codec.FFmpeg.Juicy,
Codec.FFmpeg.Probe,
Codec.FFmpeg.Resampler,
Codec.FFmpeg.Scaler,
Codec.FFmpeg.Types,
Codec.FFmpeg.Internal.Debug,
Codec.FFmpeg.Internal.Linear
build-tools: hsc2hs
build-depends: base >=4.6 && < 5,
either,
exceptions,
vector >= 0.10.9 && < 0.14,
stm >= 2.0.0.0 && < 3.0.0.0.0,
transformers >= 0.4.1 && < 0.7,
mtl >= 2.2.1 && < 2.4,
JuicyPixels >= 3.1 && < 3.4,
bytestring
pkgconfig-depends: libavutil, libavformat, libavcodec, libswscale, libavdevice,
libswresample
hs-source-dirs: src
include-dirs: src
default-language: Haskell2010
ghc-options: -Wall
executable demo
if !flag(BuildDemo)
buildable: False
build-depends: base < 5, vector, mtl, transformers, JuicyPixels
if flag(BuildDemo)
build-depends: ffmpeg-light, time
hs-source-dirs: demo
main-is: Main.hs
default-language: Haskell2010
ghc-options: -Wall
executable raster
if !flag(BuildRasterDemo)
buildable: False
build-depends: base < 5, vector, mtl, transformers, JuicyPixels >= 3.2
if flag(BuildRasterDemo)
build-depends: ffmpeg-light, Rasterific >= 0.3
hs-source-dirs: demo
main-is: Raster.hs
default-language: Haskell2010
ghc-options: -Wall -O2
executable vplay
if !flag(BuildVPlayDemo)
buildable: False
build-depends: base < 5, mtl, transformers, text, monad-loops, bytestring
if flag(BuildVPlayDemo)
build-depends: ffmpeg-light, sdl2
hs-source-dirs: demo
main-is: VPlay.hs
default-language: Haskell2010
ghc-options: -Wall -O2
executable transcode
if !flag(BuildTranscodeDemo)
buildable: False
build-depends: base < 5, JuicyPixels
if flag(BuildTranscodeDemo)
build-depends: ffmpeg-light
hs-source-dirs: demo
main-is: Transcode.hs
default-language: Haskell2010
ghc-options: -Wall
executable audio-extract
if !flag(BuildAudioExtractDemo)
buildable: False
build-depends: base < 5
if flag(BuildAudioExtractDemo)
build-depends: ffmpeg-light, mtl, vector
hs-source-dirs: demo
main-is: AudioExtract.hs
default-language: Haskell2010
ghc-options: -Wall
executable audio-sin
if !flag(BuildAudioSinDemo)
buildable: False
build-depends: base < 5
if flag(BuildAudioSinDemo)
build-depends: ffmpeg-light, mtl, vector, JuicyPixels
hs-source-dirs: demo
main-is: AudioSin.hs
default-language: Haskell2010
ghc-options: -Wall