I'm looking to convert a large directory of movies from one format to another, and to check in on the status of the conversion. I'm programming in Python.
Something like this:
>> m = MovieGenerator()
>> m.convertMovie('/path/to/movie/movie1.avi')
>> print m.status
>> 35 frames completed
Is this possible (or recommended)? Does anyone have a working example of how to use ffmpeg as a subprocess?
Once the conversion is happening, is there any way to "check in" on the status of the conversion (for example, how many frames have been completed?)
For a large directory of movies, I'd use
multiprocessing.Pool
, to set up a pool workers. Each then converts files usingsubprocess
. I use the following script to do AVI to MKV conversion in batches: