master-of-zen / Av1an

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding
GNU General Public License v3.0
1.51k stars 155 forks source link

Windows: Unable to work with file paths with spaces? #25

Closed ibex-are-goats closed 4 years ago

ibex-are-goats commented 4 years ago

It seems that having a space in the path breaks the script even when path is wrapped with " ". See error:

D:\Downloads\x!downloaders\Av1an>av1an -i "D:\Downloads\x!downloaders\Av1an\test - Copy\test2\F0144M-F2.wmv" 100%|████████████████████████████████████████████████████████████████████████▊| 5649/5661 [00:08<00:00, 642.79frames/s] Argument '-' provided as input filename, but 'D:\Downloads\x!downloaders\Av1an\test' was already specified. Clips: 0 Workers: 0 Params: --cpu-used=6 --end-usage=q --cq-level=40 |---------------------------------------------------------------------------------------------------------| 0% 0/0 Traceback (most recent call last): File "av1an.py", line 512, in av1an.main() File "av1an.py", line 490, in main

File "multiprocessing\context.py", line 119, in Pool File "multiprocessing\pool.py", line 205, in init ValueError: Number of processes must be at least 1 [46688] Failed to execute script av1an

master-of-zen commented 4 years ago

Fixed in Merge

ibex-are-goats commented 4 years ago

That looks like a lot of work in that merge. Thank you for fixing this bug! :)