May-23-2017, 03:55 PM
(May-23-2017, 02:17 PM)masoud Wrote: To run command line programs from within my script I used subprocess.
First I added import subprocess and then:
subprocess.call("avconv -framerate 1 -i fig%06d.png -c:v libx264 -profile:v high -crf 20".split())
Now, although I can see the saved *.png in my Folder but still I CAN'T create a movie. I don't know what do I have to do to correct the code to create a movie. ANY SUGGESTION???
If you issue the bare avconv command in a terminal/command prompt does it work?
Otherwise the whole thing runs in python, exits normally, and you don't get any error messages and the return code from the avconv call is 0?
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net