ffmpeg mp4 to hls transcode fails on Azure Batch with Windows Server Image

James Weatherhead 20 Reputation points
2025-02-14T21:01:15.38+00:00

Hi - I started from the sample below showing how to use FFMEG with Batch https://learn.microsoft.com/en-us/azure/batch/tutorial-parallel-dotnet#review-the-code

This works.

I then tried to actually transcode the video from MP4 to HLS using FFMPEG but I cannot get it to work. The video and commands I am using does work in Windows 11, a Windows 11 VM and a 2022 Server VM (all on premise) but I cannot get it to work in Batch. Has anyone tried this, is something missing from the Windows Image that I need to somehow configure?

Note I posted a similar question on Stack Overflow and no response yet so trying here.

https://stackoverflow.com/questions/79435176/ffmpeg-mp4-to-hls-transcode-fails-on-azure-windows-server-image

Thanks!

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
352 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay kumar Mandha 2,590 Reputation points Microsoft Vendor
    2025-02-14T23:19:08.63+00:00

    Hi James Weatherhead,
    Thank you for reaching out to the Microsoft Q&A Platform!
    I’m delighted to assist you with your query.

    I understand you are having trouble with FFmpeg in Azure Batch. Please ensure you have followed the documentation carefully, checked all prerequisites, as per below image verified
    image

    FFmpeg is installed (ffmpeg -version), uploaded the input file correctly, and added FFmpeg as an application package to your Batch account.

    Additionally, I reviewed your Stack Overflow question and noticed an error related to codec compatibility.
    Please refer to this documentation on solutions to some FFmpeg errors and it may help you resolve the issue.

    Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.

    If you have any further questions, please don’t hesitate to let me know. I'm available to assist you anytime. Just tag me if you need further help


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.