Search code examples
pythonflvmultimediabulk

Python .flv media file conversion


I'm looking for a library similar to FFDshow to help me convert .flv to .avi format and possibly do more. I understand that I can do this via VLC player, but I'd rather do it manually with Python (and in bulk).

Similar to:
media conversion library/plugin preferably php
python automate ffmpeg conversion from upload directory


Solution

  • Use ffmpeg. You can invoke it from python, if you want to.

    ffmpeg -i in.flv -f avi -vcodec mpeg4 -acodec libmp3lame out.avi
    

    Full ducumentation for converting files with ffmpeg can be found here.