Azure Media Services responds with 403 (Forbidden) - azure

I have a set of videos which I have uploaded via Azure Media Explorer and some via the .NET SDK (Azure Media Services Extensions) in a custom application. I have encoded all with the Media Encoder Standard and the "H264 Multiple Bitrate 720p" preset.
The videos are recordings from a Kinect Sensor (BGRA) and transcoded with ffmpeg to H.264 Base.
When I try to play the videos from the Azure Media Player or from within the Azure Media Services Content Page I get an error message.
Azure Media Player (from my ASP.NET MVC View) gets a "Failed to load resource: the server responded with a status of 403 (Forbidden)" back from AMS and shows a 0x020200193 error message in the player.
The Azure Media Services Playback from within the Portal throws the following error in the JavaScript console:
"VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED)" and shows:
The video could not be loaded, either because the server or network failed or because the format is not supported
If I try to play the samples from the http://amsplayer.azurewebsites.net/ websites they all work. If I try to play my videos on the same websites I get an error message as well.
If I browse to the manifest (http://{myaccountname}.streaming.mediaservices.windows.net/{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx}/{xxxx}.ism/Manifest(format=mpd-time-csf))
I get the following XML response:
<serverError>
<status>403</status>
<subStatus>1000</subStatus>
..
</serverError>
I have tried to change the Storage Container Access (Private, Public Container, and Public Blob), the problem persists.
I have tried to create a completely new Azure Media Service Account and Storage Account - same problem.
The strange detail that puzzles me is that I downloaded, built, and ran this sample https://azure.microsoft.com/en-us/documentation/articles/media-services-dotnet-encode-with-media-encoder-standard/ on the exact same AMS account / Storage Account and the same AMP instance the video plays correctly, and so does the AMS Playback from within the portal.
How do I troubleshoot this? Is this an authentication issue or is this in fact a media format problem? The fact that the BigBuckBunny.mp4 video from the above mentioned article plays from the same account with the same configuration makes me think this is a format issue?

Related

Using Xamarin.Android and Media Service in Azure for live broadcasting

I am looking for integrating Media Service from azure to Xamarin Android for live broadcasting and viewing the live with on demand videos. For example I need to implement the live video broadcasting like a Facebook app using Azure Media Services and also view the live and archived videos from blob storage. I am unable to get the resource to implement that from official documents of Azure and Xamarin and through the Xamarin University.
So I am here to learn this which will be useful to almost every one willing to implement this kind of features in feature.
There is a official video showing the upload of a video recorded using xamarin application to Azure Media Service and viewing back on the Xamarin app the link is as follows, but there is no approach for making a live broadcasting possible through the same.
https://azure.microsoft.com/en-us/resources/videos/media-streaming-apps-with-azure-and-xamarin/
Xamarin.Android is not compulsory like it may be from Xamarin Forms also the thing is like we just need the android part, I will be happily looking forward to take any kind of help you can offer to get this working.
Scope of App Requirement/Workflow::
1) App should be able to broad cast live (like going live on Facebook application)
2) That should be capable to view the live broadcasts (like we can stream the live content in Facebook application)
3) That should be able to view the archived videos in blob storage (I know how to access the blob storage and download the video to view it on mobile but I don’t know the process to stream the video while it is being downloaded in the background like it does in Youtube or Facebook application).
Using Xamarin.Android and Media Service in Azure for live broadcasting
You could refer to the xamarin-azure-businessreview sample.
Demo app showing how to use several Azure services with Xamarin including Azure AD B2C, Azure Cosmos DB, Azure Functions, Azure App Services, and Azure Media Services

Azure video streaming to Xamarin

We're planning to build a Xamarin app, where you can watch some videos that are hosted on microsoft Azure. Does the azure blob storage support streaming to my mobile app or can i only download the files?
The video urls shouldn't be exposed to public, as mentioned here.
Has anybody experience in this? I didn't find any reliable infos on the web.
Very important thing here - streaming and live-streaming. If you would like to just upload video files to Azur Blob and access them in the mobile app this is possible. I did tests with .mp4 (I did not test other formats) files and once they were uploaded I could play them in the mobile app without any problems.
You do not have to worry about the access too - you can secure URLs with Shared Access Signature or Storage Account Key.
You can read more about it below (Data Plane Security):
https://learn.microsoft.com/en-us/azure/storage/storage-security-guide

HTML 5 video url not found on server, but working on local

I have deployed my first site on azure, it is a website with static content only.I have the video and html file in the same dir, which is wwwroot I have provided a video path in the index.html like this
<video loop muted width="1024" height="768" autoplay style="width: 101% !important;height: 100% !important;margin-top: -2%;margin-left: -1%;">
<source src="intro.mp4" type="video/mp4">
</video>
And its playing properly on local as i checked, but once i deployed the content to azure, the other content load but the video does not loads, and it gives 404 as i checked in the network tab.
Also the request url in network console is www.mywebsite.com/intro.mp4 and it is 404 not found
I could not understand why is this happening , please help
Azure Web App does not support some of the media files for direct deployment. Currently, I know SVG images and videos will not work in Azure Web App if you have them deployed directly along with the web app. And, I can't find any documents talking about this kind of things.
Hence, my suggestion is using Azure Media Service. If you don't think Azure Media Service is necessary, you can just upload the video to Azure Storage as a blob and set the access policy of the container to be public. And then, you can refer the video with the corresponding URL.
For more information about Azure Storage and Blob, see Get started with Azure Blob storage using .NET
After some digging, I found out that if you are using asp.net, it's possible to config the web app so that it support video. Here is a similar question as yours. For web app other than asp.net, I have no idea how to config something like this.

Wordpress Hosting in Azure with integrated Media Services and Uploader Security

I'm using a wordpress template and have multiple media uploaders. When they embedd/insert their content from the media library, they should only be able to see and embedd their uploaded content. My goal is to host the website in Azure and also use its media services for video content. Is there an elegant frontend way with wich users can upload their content an reembedd it after transcoding?
I think that there is no plugin that supports directly Azure Media Services encoding workflows in WordPress.
Maybe you can do it in a few steps :
Use the WordPress Azure Storage plugins to upload your files : https://wordpress.org/plugins/windows-azure-storage/
Use an Azure WebJob to trigger encoding as soon as a file is uploaded in the storage : https://github.com/Azure/azure-content/blob/master/articles/app-service-web/websites-dotnet-webjobs-sdk-storage-blobs-how-to.md and https://azure.microsoft.com/en-us/documentation/articles/media-services-dotnet-encode-asset/
Display the video on your site, using Azure Media Player : http://amsplayer.azurewebsites.net/
Hope this helps,
Julien

Windows Azure Media services

I am uploading video(.wmv) on azure programmatically .I am getting error
"Windows Azure Media Encoder detected media errors on source videoname.wmv:File type isn't supported" and "ErrorExecutingTaskUnsupportedFormat"
To the close on this question, Azure Media Services supports WMV as input format - very likely you are not uploading file correctly.The following quickstart uses Azure Media Services .NET SDK Extensions to upload a wmv file and encode it to H264 adaptive bitrate MP4 set.
http://msdn.microsoft.com/en-us/library/dn569319.aspx .

Resources