'&' in windows filename splits in argument list parsing #311
Replies: 4 comments
-
also I notice the bad named file is noted as 1.2.avi.mp4 instead of 12.avi.mp4 in files attached. Evidently ampersands are way too special to github to be allowed in filenames. Someone should tell Microsoft. |
Beta Was this translation helpful? Give feedback.
-
Comment to my comment to my submitted bug. Sorry I don't know how to convey a literal ampersand in this forum. |
Beta Was this translation helpful? Give feedback.
-
The
Double quotes might also work in some cases, e.g. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I will test this shortly. Good to know ^ is escapement in this context. \\;-)
From: Brandon Castellano ***@***.***
Sent: Wednesday, February 1, 2023 7:10 PM
To: Breakthrough/PySceneDetect
Cc: mrmsbarnes; Author
Subject: Re: [Breakthrough/PySceneDetect] '&' in windows filename splits in argument list parsing (Discussion #311)
The & symbol has special meaning and should be "escaped" by prefixing it with a ^. So in order to process a file named 1&2.avi you would need to run:
scenedetect -i 1^&2.avi detect-content
Double quotes might also work in some cases, e.g. scenedetect -i "1&2.avi" detect-content. Hope this helps, see https://ss64.com/nt/syntax-esc.html for details. Thanks!
—
Reply to this email directly, view it on GitHub <#311 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7C7JEPEPI42YIUE3HFX4LWVMQP5ANCNFSM6AAAAAAUOPPLU4> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AB7C7JGJOMUW4BSIHDYIIZ3WVMQP5A5CNFSM6AAAAAAUOPPLU6WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAJH24S.gif> Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
When I do
The two files are identical except for file name. I had to append ".mp4" to each file name to get your bug tracker to accept them.
And, Yes, scenedetect (or at least ffmpeg) does handle .avi files.
1.2.AVI.mp4
1+2.AVI.mp4
Beta Was this translation helpful? Give feedback.
All reactions