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 shlex | |
import subprocess | |
import tempfile | |
import numpy as np | |
with tempfile.NamedTemporaryFile() as t: | |
t.write(encoded) | |
t.flush() | |
ffmpeg_command = f"ffmpeg -y -i {t.name} -pix_fmt rgb24 -f rawvideo pipe:1" |
OlderNewer