Getting realtime output from ffmpeg to be used in progress bar (PyQt4, stdout)
In this specific case for capturing ffmpeg’s status output (which goes to STDERR), this SO question solved it for me: FFMPEG and Pythons subprocess The trick is to add universal_newlines=True to the subprocess.Popen() call, because ffmpeg’s output is in fact unbuffered but comes with newline-characters. cmd = “ffmpeg -i in.mp4 -y out.avi” process = subprocess.Popen(cmd, … Read more