ffmpeg-light icon indicating copy to clipboard operation
ffmpeg-light copied to clipboard

Allow reading from stdin and sockets

Open oshyshko opened this issue 8 years ago • 0 comments

I'd like to use imageReader to get frames from stdin.

Perhaps, a generic way of reading from any System.IO.Handle would be even better.

Maybe, something like this:

import System.IO (Handle)

data InputSource = File FilePath
                 | Camera String CameraConfig
                 | InputHandle Handle
                 deriving (Eq, Show) -- System.IO.Handle doesn't have instances for Read and Ord

Or is there another way to read from stdin?

oshyshko avatar May 08 '17 05:05 oshyshko