Note that there are some explanatory texts on larger screens.

plurals
  1. POAzure media services while encoding Job gives JobState.Error for .wmv file
    text
    copied!<p>For Azure media services encoding task, The status says processing.... for several times and then goes to error state.There is no error message shown. I am following a tuts from this <a href="https://www.windowsazure.com/en-us/develop/net/how-to-guides/media-services/#encode-asset" rel="nofollow">https://www.windowsazure.com/en-us/develop/net/how-to-guides/media-services/#encode-asset</a> input file size is less than 4Mb and cloudblobclient.ParallelOperationThreadCount = 2</p> <pre><code> IJob job = _context.Jobs.Create("My encoding job"); IMediaProcessor processor = GetMediaProcessor(_context,"Windows Azure Media Encoder"); ITask task = job.Tasks.AddNew("My encoding task",processor, "H.264 256k DSL CBR",TaskCreationOptions.ProtectedConfiguration); task.InputMediaAssets.Add(assetToBeProcessed); //where assetToBeProcessed is the IAsset Ref. task.OutputMediaAssets.AddNew("Outputasset",true, AssetCreationOptions.StorageEncrypted); job.Submit(); CheckJobProgress(_context,job.Id); </code></pre> <hr> <pre><code> private static void CheckJobProgress(CloudMediaContext _context,string jobId) { bool jobCompleted = false; const int JobProgressInterval = 20000; while (!jobCompleted) { IJob theJob = GetJob(_context,jobId); //brings the desired jobid switch (theJob.State) { case JobState.Finished: jobCompleted = true;break; case JobState.Queued: case JobState.Scheduled: case JobState.Processing: break; case JobState.Error: break; default: break; } Thread.Sleep(JobProgressInterval); } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload