Reputation: 45
For the past two days I have been trying to run a media encoding job in Azure and I can't figure out why it fails.
Here is my workflow:
I upload a file that has a GUID as the name in a storage container.
I generate a sas uri and provide it as a JobInputHttp.
The transform uses the BuiltInStandardEncoderPreset
-> AACGoodQualityAudio
Every time the job fails at like 50% with the error:
ErrorProcessingTask An error has occurred. Stage: GenerateOutputMediaMetadata. Code: System.ArgumentNullException.
I am on .NET Core and using the latest version of Microsoft.Azure.Management.Media
(2.0.4). Does anyone know why this error happens and how can I fix it?
My code follows the same practice as in https://github.com/Azure-Samples/media-services-v3-dotnet-quickstarts/blob/master/AMSV3Quickstarts/EncodeAndStreamFiles/Program.cs
Upvotes: 1
Views: 74
Reputation: 595
It appears that you have created a Transform with a custom preset, and not the built-in AACGoodQualityAudio preset - is that correct?
For that Transform, you would need to modify the filenamePattern to include an extension, either explicitly
"filenamePattern": "{Basename}.mp4"
or implicitly
"filenamePattern": "{Basename}{Extension}"
Thanks
Upvotes: 3