470,641 Members | 1,584 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

subprocess end


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:vb itrate=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 ?


Apr 6 '08 #1
0 794

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Darren Dale | last post: by
5 posts views Thread by Grant Edwards | last post: by
9 posts views Thread by Phoe6 | last post: by
10 posts views Thread by JD | last post: by
12 posts views Thread by bhunter | last post: by
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.