Created
May 28, 2018 22:13
-
-
Save void4/070ea1e8fee9e5e25164b62d8c0dacb0 to your computer and use it in GitHub Desktop.
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
import os | |
import time | |
import subprocess | |
with open(os.devnull, 'w') as devnull: | |
subprocess.Popen('ffmpeg -y -re -f lavfi -i "sine=frequency=440:duration=20" -blocksize 2048 test.wav', shell=True) | |
time.sleep(0.1) | |
while True: | |
print(os.path.getsize("test.wav")) | |
time.sleep(0.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment