| 123456789101112131415161718192021222324252627282930313233 |
- #!/usr/bin/env python3
- """Verify ffmpeg/OSS runtime dependencies for qwen video truncation."""
- from __future__ import annotations
- import argparse
- import json
- import sys
- def main() -> int:
- parser = argparse.ArgumentParser(description="Verify video truncation runtime")
- parser.add_argument(
- "--check-oss",
- action="store_true",
- help="Also verify ALIYUN_OSS_* credentials are configured",
- )
- args = parser.parse_args()
- try:
- from agents.find_agent.tools.qwen_video_analyze import verify_truncation_runtime
- result = verify_truncation_runtime(check_oss=args.check_oss)
- except Exception as exc:
- print(json.dumps({"status": "error", "error": str(exc)}, ensure_ascii=False))
- return 1
- print(json.dumps(result, ensure_ascii=False))
- return 0
- if __name__ == "__main__":
- raise SystemExit(main())
|