You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The character ' is valid for linux shell but not for windows.
The fix (ai told me) is to use a different management for the windows ffmpeg call remplacing the problematic line with:
// Use double quotes on Windows (cmd.exe doesn't understand single quotes) and single
// quotes on POSIX shells. Also escape any embedded double-quotes in the path on Windows.
#ifdef _WIN32
std::string escaped(path);
{
std::string r;
r.reserve(escaped.size() + 4);
for (char c : escaped) { if (c == '"') r += '"'; r += c; }
escaped = std::move(r);
}
std::string cmd = "ffmpeg -v error -i \"" + escaped +
"\" -ac 1 -ar " + std::to_string(m.sr) + " -f f32le -";
#else
std::string cmd = "ffmpeg -v error -i '" + std::string(path) +
"' -ac 1 -ar " + std::to_string(m.sr) + " -f f32le -";
#endif
aaand... recompile it again, and failing again because of the next line:
Activity