subprocess end

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Deas

    subprocess end

    Hi,

    I am coding a small script to batch-convert flv files. At the core of
    it, mencoder is called through

    processString=' mencoder -oac lavc -ovc lavc -of lavf -lavcopts
    aglobal=1:vglob al=1:vcodec=mpe g4:acodec=libfa ac:vbitrate=256 :abitrate=64
    -lavfopts format=mp4 -ofps 15 -vf scale=320:240,h arddup -ss '+currBegin
    +' -endpos '+currEnd+' -o '+currOutput+' '+inputName

    p = subprocess.Pope n(processString , shell=True,stdo ut=subprocess.P IPE)

    However, instructions following this last one do not wait for it to
    complete. Is it possible to change this behaviour, so that the rest of
    my script is executed only when this subprocess has finished its
    execution ?

    Thanks

    JD
Working...