Skip to content

Commit

Permalink
Merge pull request #8 from pkshultz/master
Browse files Browse the repository at this point in the history
Update Program.cs
  • Loading branch information
dlepow authored Sep 28, 2020
2 parents 17e57b8 + ee228ed commit ae87e74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BatchDotnetTutorialFfmpeg/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ private static async Task CreatePoolIfNotExistAsync(BatchClient batchClient, str

// Specify the application and version to install on the compute nodes
// This assumes that a Windows 64-bit zipfile of ffmpeg has been added to Batch account
// with Application Id of "ffmpeg" and Version of "3.4".
// Download the zipfile https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-3.4-win64-static.zip
// with Application Id of "ffmpeg" and Version of "4.3.1".
// Download the zipfile https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-4.3.1-2020-09-21-full_build.zip
// to upload as application package
pool.ApplicationPackageReferences = new List<ApplicationPackageReference>
{
Expand Down Expand Up @@ -389,7 +389,7 @@ private static async Task<List<CloudTask>> AddTasksAsync(BatchClient batchClient
string outputMediaFile = String.Format("{0}{1}",
System.IO.Path.GetFileNameWithoutExtension(inputMediaFile),
".mp3");
string taskCommandLine = String.Format("cmd /c {0}\\ffmpeg-3.4-win64-static\\bin\\ffmpeg.exe -i {1} {2}", appPath, inputMediaFile, outputMediaFile);
string taskCommandLine = String.Format("cmd /c {0}\\ffmpeg-4.3.1-2020-09-21-full_build\\bin\\ffmpeg.exe -i {1} {2}", appPath, inputMediaFile, outputMediaFile);

// Create a cloud task (with the task ID and command line) and add it to the task list
CloudTask task = new CloudTask(taskId, taskCommandLine);
Expand Down

0 comments on commit ae87e74

Please sign in to comment.