Using Python to execute a command on every file in a folder

前端 未结 6 1057
旧时难觅i
旧时难觅i 2020-12-01 01:44

I\'m trying to create a Python script that would :

  1. Look into the folder \"/input\"
  2. For each video in that folder, run a mencoder command (to transcode
6条回答
  •  执笔经年
    2020-12-01 02:22

    I had a similar problem, with a lot of help from the web and this post I made a small application, my target is VCD and SVCD and I don't delete the source but I reckon it will be fairly easy to adapt to your own needs.

    It can convert 1 video and cut it or can convert all videos in a folder, rename them and put them in a subfolder /VCD

    I also add a small interface, hope someone else find it useful!

    I put the code and file in here btw: http://tequilaphp.wordpress.com/2010/08/27/learning-python-making-a-svcd-gui/

提交回复
热议问题