Created
November 3, 2022 21:44
-
-
Save MaZderMind/20441b7d7a3027c5318b59158bb2f30f to your computer and use it in GitHub Desktop.
Apple Compressor Hangs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://support.apple.com/en-gb/guide/compressor/cpsr9be73312/4.6.1/mac/11.5.1 | |
import subprocess | |
proc = subprocess.Popen(['/Applications/Compressor.app/Contents/MacOS/Compressor', '-monitor'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL) | |
while True: | |
c = proc.stdout.read(1) | |
print(c) # prints up to the last '\n' | |
# never gets here | |
print('done') | |
# also just hangs forever | |
# subprocess.check_output(['/Applications/Compressor.app/Contents/MacOS/Compressor', '-monitor'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, stdin=subprocess.DEVNULL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment