import Turtle
import Prelude hiding (FilePath)
import Data.Text hiding (find)
main = do
f <- view $ format fp <$> find (suffix ".mp4") "/Users/me/videos"
procs "ffmpeg" ["-vn","-acodec","libmp3lame","-ac","2","-ab","160k","-ar","48000","-i"] empty
Basically I want to feed all the video filenames to ffmpeg. Two questions:
- How to combine the
procs
withShell
streams? - ffmpeg takes two inputs: one for
-i
and one for the output filename. What is the best practise to implement this with Turtle?
I've seen the foldIO function that looks promising. But I can't figure out how to use it.