ffmpeg: pipe (#37359)

spec pipe
This commit is contained in:
Harald Schäfer
2026-02-23 20:57:21 -08:00
committed by GitHub
parent ded5e5c8d0
commit 44cf6b358e
+3 -3
View File
@@ -51,10 +51,10 @@ def decompress_video_data(rawdat, w, h, pix_fmt="rgb24", vid_fmt='hevc', hwaccel
"-vsync", "0",
"-f", vid_fmt,
"-flags2", "showall",
"-i", "-",
"-i", "pipe:0",
"-f", "rawvideo",
"-pix_fmt", pix_fmt,
"-"]
"pipe:1"]
dat = subprocess.check_output(args, input=rawdat)
ret: np.ndarray
@@ -71,7 +71,7 @@ def ffprobe(fn, fmt=None):
cmd = ["ffprobe", "-v", "quiet", "-print_format", "json", "-show_format", "-show_streams"]
if fmt:
cmd += ["-f", fmt]
cmd += ["-i", "-"]
cmd += ["-i", "pipe:0"]
try:
with FileReader(fn) as f: