Commit Graph

9 Commits

Author SHA1 Message Date
FlintyLemming
af3c55d3c7 🐛 fix(av1-transfer): find sh dynamically via shutil.which
/bin/sh doesn't exist on this system, sh is at /usr/bin/sh.
Use shutil.which to locate the shell at runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 11:14:23 +08:00
FlintyLemming
4724fd243b 🐛 fix(av1-transfer): remove hardcoded /bin/bash, use default sh
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 11:13:28 +08:00
FlintyLemming
eaf6a41041 🐛 fix(av1-transfer): use bash exec -a instead of executable= to rename ffmpeg process
subprocess.Popen with executable= fails on linuxbrew due to symlink/execve
incompatibility. Use bash exec -a so ffmpeg is resolved via PATH instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 11:11:20 +08:00
FlintyLemming
c31a459f36 🐛 fix(av1-transfer): catch FileNotFoundError in get_duration when ffprobe is missing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 11:05:11 +08:00
FlintyLemming
bf98b6d002 ♻️ refactor(av1-transfer): replace setproctitle with ctypes to fully hide cmdline args
Drop the setproctitle dependency. Use prctl(PR_SET_NAME) to change
/proc/self/comm and directly overwrite argv memory via Py_GetArgcArgv
to clear /proc/self/cmdline, so ps aux shows no arguments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 11:03:57 +08:00
FlintyLemming
a036b400d2 feat(av1-transfer): use setproctitle to rename Python main process
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 10:58:12 +08:00
FlintyLemming
5bf9f2f89e feat(av1-transfer): add process name alias and per-task progress bars
- Add -n/--process-name flag to set ffmpeg argv[0] alias (exec -a equivalent)
- Show real-time per-file progress via ffmpeg -progress pipe:1
- Use slot queue to manage per-worker tqdm bars (position 1..N)
- Add -pix_fmt yuv420p10le for 10-bit output

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 10:29:36 +08:00
FlintyLemming
7655176610 跳过 macOS 资源分支文件(._ 开头)避免转码报错
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:52:20 +08:00
FlintyLemming
48b4817b9d add script 2026-01-22 22:28:40 +08:00