Cai
2026-08-13 7298b027c9b59ca7a7d913b09ff760559c46f17a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""Short-lived synthetic target used to smoke-test the resource sampler."""
 
from __future__ import annotations
 
import argparse
import subprocess
 
 
def main() -> int:
    parser = argparse.ArgumentParser()
    parser.add_argument("video")
    parser.add_argument("--output", required=True)
    parser.add_argument("--language")
    parser.parse_args()
 
    print("正在转写分块 1/1", flush=True)
    result = subprocess.run(
        [
            "ffmpeg",
            "-hide_banner",
            "-loglevel",
            "error",
            "-nostdin",
            "-re",
            "-f",
            "lavfi",
            "-i",
            "anullsrc=r=16000:cl=mono",
            "-t",
            "2",
            "-f",
            "null",
            "-",
        ],
        check=False,
    )
    return int(result.returncode)
 
 
if __name__ == "__main__":
    raise SystemExit(main())