Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AZ_BATCH_APP_PACKAGE not working #7

Open
shawon017 opened this issue Jul 2, 2020 · 1 comment
Open

AZ_BATCH_APP_PACKAGE not working #7

shawon017 opened this issue Jul 2, 2020 · 1 comment

Comments

@shawon017
Copy link

Hi All,

Trying to run this command -
string taskCommandLine = string.Format(@"cmd /c %AZ_BATCH_APP_PACKAGE_ffmpeg#4.3%\ffmpeg-4.3-win64-static\bin\ffmpeg.exe -i {0} {1}", inputMediaFile, outputMediaFile);

But the inside batch task stderr.txt file I'm getting "System cannot find the path specified" every time. But when I tried a different command to test "cmd /c echo test > sample.txt" then it worked and uploaded the file into the destination blob. Please help me!!!

@rdhainaut
Copy link

I encountered the same issue.
For me the problem was that i m using a different ffmpeg zip package (so it s a different application package) and consequently the path in the command was not correct.

I have download the version 4.3.2 (the zip version) at
https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.2-2021-02-27-essentials_build.zip.
This archive file has the ffmpeg execute file located at ffmpeg-4.3.2-2021-02-27-essentials_build/bin/ffmpeg.exe
so i have change this line
string taskCommandLine = String.Format("cmd /c {0}\\ffmpeg-4.3.2-2021-02-27-essentials_build\\bin\\ffmpeg.exe -i \"{1}\" \"{2}\"", appPath, inputMediaFile, outputMediaFile);

Note: I have added quote to handle space in input/output file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants