subprocess end

J

John Deas

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:vglobal=1:vcodec=mpeg4:acodec=libfaac:vbitrate=256:abitrate=64
-lavfopts format=mp4 -ofps 15 -vf scale=320:240,harddup -ss '+currBegin
+' -endpos '+currEnd+' -o '+currOutput+' '+inputName

p = subprocess.Popen(processString, shell=True,stdout=subprocess.PIPE)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top