I'm trying to use Azure Media Services to live stream an IP cam through OBS.
So I'll try to describe my setup.
I added a new Media Service via the Azure Portal.
It has it's own storage account.
Still in the portal in that Media Service I choose 'Browse Channels'.
Here I create a new channel, I tried Live Encoding and Pass Through. I get the same result with both.
So the channel is created, I wait until it is started and I open that blade of the channel.
I copy the Primary Injest endpoint and copy that in the settings of OBS, as a stream key I use the name of the channel/account (I picked the same name for both) and start streaming from OBS.
I then click more in the top right of the blade and pick 'Watch preview'.
A new blade opens with a player with an error in it.
When I copy the playback url and open it in VLC it plays correctly for roughly 30 seconds.
Now if I add a new Program back in the Channel Blade it adds it, and starts it up. When started I open the Program Blade and get a loading screen which doesn't end. Looking in the network tab of the developer tools, no errors are present and no open requests.
When I refresh the page I sometimes get the following:
I don't like the red icon but okay. I click the locator and get this:
Clicking the blue box opens a new Blade with a generic error:
With the following error in the dev console:
When trying to open the url from the Locator Blade or the Program Blade in VLC it doesn't open.
I once had the problems I'm having now, but a couple of days later they were resolved without action from my side.
Now I'm having the same problems again.
I tried recreating everything from scratch, but I get the same errors.
From the comment, it seems that all the problems were solved now.
Here is just my experience which may answer your question. I used to have the same issue, and finally I found that I need to start the stream endpoint. At least one stream endpoint needs to be started before we can provide a video streaming service.
If you want to preview the live stream, you need to start the stream endpoint too, as all the stream content will be delivered from stream endpoints.
Update:
You can start a stream endpoint on the portal:
Navigate to your azure media service resource.
Click the "Streaming endpoints" label.
Then you will see all the streaming endpoints you have.
Choose one endpoint, and you can start or stop it in the showing page.
Related
Trying to create custom event in Application Insights but it doesn't show up on Azure Portal. All other events like requests, dependencies, exception are visible.
I have tried in dotnet core and can see following in debug log, but still no event in portal, even custom event table is empty:
Application Insights Telemetry: {"name":"Microsoft.ApplicationInsights.Dev.<instrumentkey>.Event","time":"2019-12-05T19:16:34.1373921Z","iKey":"<instrument key>","tags":{"ai.application.ver":"1.0.0.0","ai.cloud.roleInstance":"<role>","ai.session.id":"<session>","ai.user.id":"<user>","ai.operation.id":"<operation>","ai.operation.parentId":"|<some ids>","ai.operation.name":"GET /auth/login","ai.location.ip":"::1","ai.internal.sdkVersion":"dotnetc:2.11.0-21474","ai.internal.nodeName":"<subscription>"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"SAML_Authentication_Initiated","properties":{"DeveloperMode":"true","AspNetCoreEnvironment":"Local"}}}}
Tried from javascript as well, can see following successful post request in browser console:
POST https://dc.services.visualstudio.com/v2/track
[{"time":"2019-12-05T19:00:21.781Z","iKey":"<instrumentkey>","name":"Microsoft.ApplicationInsights.<instrumentkey>.Event","tags":{"ai.user.id":"<user>","ai.session.id":"<session>","ai.device.id":"browser","ai.device.type":"Browser","ai.operation.name":"/public","ai.operation.id":"<operationid>","ai.internal.sdkVersion":"javascript:2.3.1"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"CustomEvent","properties":{},"measurements":{}}}}]
Response
{"itemsReceived":1,"itemsAccepted":1,"errors":[],"appId":"<application id>"}
Not sure how much time Azure needs to process custom event or should I create support ticket or something is wrong at my end.
Application insights usually takes 3-5 minutes before data begins appearing in the portal, see the Note section of this official doc.
If you worry about the data is missing, you can use Flush() method.
And if it always takes more than 5 minutes before data appearing in portal, you should consider opening a support ticket to get professional help.
We have some Logic Apps setup that monitor our various sites and a Slack connection set up. If a non-200 status code is returned, it sends a message to our alerts channel in Slack. We have about 10 sites that are monitored.
The first was setup, tested the cloned for the other sites.
The issue we're having is that they all seem to work bar one.
The site in question was offline this morning (after host updated the server at 3am this morning) and I can in the Azure log the trigger was fired - but no message in Slack.
I changed the Condition to "status equals 200" (to ensure it always fires), ran it manually and still see no message.
As mentioned this logic app was cloned from one that did work so the only thing that changes from app to app is the site URL and the contents of the slack message.
Being relatively new to various Azure features this was a bit of "R&D" for Logic Apps so I'm not really sure what to check.
Any obvious gotchas we should be aware of? Any pointers you can give to help resolve this would be great.
NB: I added Slack API as a tag to this but as this part is handled by Azure and it's working for other Logic Apps feel free to remove.
I have deployed a new Azure Functions based on the template - HttpTrigger-CSharp.
It works fine whenever i invoke it from the webUI or from Postman.
However, the live event stream is not working as expected. I don't see any statistics being populated in the live event stream - everything is zero.
Is there anything which need to be done / configuration / etc?
Thanks,
Aries
According to this, "there is a known issue that may cause your data to fail to be populated. If you experience this, you may need to close the browser tab containing the live event stream and then click live event stream again to allow it to properly populate your event stream data".
As for the question, no this works out of the box, if it doesn't try closing the browser, opening Azure Portal, then navigating to the Function blade, click Monitor, wait for it to fully load, and then click Live event stream.
Also, this may not work, if you've created your function recently, just try to wait 5 minutes and try again.
I'm trying to use Azure Media Services. For demo purpose I've uploaded a video directly on the portal then clicked to encode this uploaded video in 'H264 Smooth Streaming 720p' preset.
This scheduled a encoding job which generated another (off-course larger) file which I published to get the manifest file URL.
I can play this video on the portal itself but when I use the given URL I get the following error:
A network error caused the video download to fail part-way. Please check your network connection or try again later. (0x20200000)
I'm taking help from this Channel9 video.
Please help me on this.
Please add &format=smooth to your URL and it should work!
http://amsplayer.azurewebsites.net/azuremediaplayer.html?url=http%3A%2F%2Fmspocforknorish.streaming.mediaservices.windows.net%2F72496130-cb2d-455e-9ccd-420fcb506f1d%2FBigBuckBunny.ism%2FManifest&format=smooth
Otherwise, on the page check "Advanced Options" checkbox and select Smooth from the Format dropdown and click on "Update" button.
When you paste your URL into the URL input, delete the existing sample URL that is already there. The existing URL looks like placeholder text but it is not. I fell into that trap too.
Here is a screenshot of your video playing and here is the URL of it playing.
I'm just starting to play with Google Cast, so I downloaded the hellotext Chrome example app. If I open the sender that comes with it, everything works. However, if I take the receiver.html file, upload a copy of my own somewhere, create an app, and then replace the app id in the sender.html, it doesn't work.
The console log says "receiver list empty". I do have my Chromecast (both of them actually) added to my account as test devices. I reset them, both via software and by unplugging and replugging them. I even did a factory reset on one of them, but still no luck.
Googling got me to this response: How to launch a receiver app in Chrome once Chromecast device has been whitelisted?
However, the option to enable (or disable) sending the serial number on update check doesn't seem to exist anymore.
Any ideas?
Thanks!