Answer the question
In order to leave comments, you need to log in
What's wrong with the app?
Please help me figure it out, the essence of the problem is as follows, there is an application in the form of golimy source codes that are assembled only with a case of beer and a tambourine, I collected it with grief in half, but at startup it requires ffmpeg, which must be registered in the path, everything would be fine but in path it is registered (because it is called from any folder from cmd), but the application thinks otherwise and refuses to work, I can’t imagine where to dig, in the source it appears in this form:
std::string GetCommandLine(const char* filename) {
// TODO: Windows
char message[4096] = {0};
if (_Offset_s == 0 && _Seconds == 0)
snprintf(message, NELEM(message), "ffmpeg -i \"%s\" -ac %d -ar %d -f s16le - 2>%s",
filename, Params::AudioStreamInput::Channels, (uint) Params::AudioStreamInput::SamplingRate, DEVNULL);
else
snprintf(message, NELEM(message), "ffmpeg -i \"%s\" -ac %d -ar %d -f s16le -t %d -ss %d - 2>%s",
filename, Params::AudioStreamInput::Channels, (uint) Params::AudioStreamInput::SamplingRate, _Seconds, _Offset_s, DEVNULL);
return std::string(message);
}
Answer the question
In order to leave comments, you need to log in
Are you running in niks or on windows? If Windows - what version?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question