Python Forum
create a movie with python
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
create a movie with python
#5
(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
Reply


Messages In This Thread
create a movie with python - by masoud - May-23-2017, 10:51 AM
RE: create a movie with python - by Ofnuts - May-23-2017, 12:26 PM
RE: create a movie with python - by masoud - May-23-2017, 02:17 PM
RE: create a movie with python - by Ofnuts - May-23-2017, 03:55 PM
RE: create a movie with python - by snippsat - May-23-2017, 03:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Video Movie Recommender oslagosboi 3 3,008 Feb-21-2023, 08:23 AM
Last Post: JhonSteve
  memory issue loading movie to numpy array djf123 1 2,328 Nov-07-2019, 06:19 AM
Last Post: ThomasL

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020