Automatic monetization after video upload in c# (YouTube API) - c#

I can upload videos to youtube programatically, I have an adsense account. In my channel options "monetize in all countries" is selected. When I upload manually in youtube, advertisements start showing.
How can I make ads show automatically when I upload videos via API programatically. But I need C# code example which I couldn't find in youtube documentation page
https://developers.google.com/youtube/partner/upload_claim_sample

If you are an Adsense account owner, you cannot monetize (claim) your videos via API. In order to monetize (claim) your videos, you should have CMS account..
I hope it helps,
Best,

Related

ASP.NET Video Converter Website How to manage user uploaded videos?

I am trying to create a web app for that can convert user uploaded video to different format using ffmpeg. This is my first project idea with using ASP.NET. I would like to ask an advice on how should I manage user uploaded videos to optimize disk consumption.

How to make fake video source and make it non-downloadbale in ASP.NET MVC

I'm working on an educational site that will plays online and offline videos.
I will forbid users from downloading the video from browser link and will force them to register in my app and then be able to download videos.
I solved the site visiting issue by creating a FileContentResult action and make this action login-needed.
But it has its own issues as a person will register in my app and enroll to class that contains video and download it then send it to his friends :)
Now I had searched many articles and probably in 90% of them I saw this is impossible.
But I have a sample site that contains videos and we can't download that with browser url.
This site is Aparat
If you open it's videos you will see that src attribute value begins like blob:some address and you can't download it directly from browser with src attributes value.
How should I implement this in ASP.NET MVC?

Azure Media Services - Stream video (blob) to HTML5 azure media player

My goal is to let users be able to upload their own videos and then play them back using Azure Media Services and Azure Media Player. I want the video playback to be supported in all modern browsers.
Currently I have only tested uploading manually using the Azure portal and I have some questions/concerns..
HTML
<link href="//amp.azure.net/libs/amp/latest/skins/amp-default/azuremediaplayer.min.css" rel="stylesheet">
<script src="//amp.azure.net/libs/amp/latest/azuremediaplayer.min.js"></script>
<video id="azuremediaplayer" class="azuremediaplayer amp-default-skin amp-big-play-centered" controls autoplay width="640" height="400" poster="" data-setup='{"nativeControlsForTouch": false}' tabindex="0">
<source src="https://MYSTORAGE.blob.core.windows.net/asset-ad8677da-8869-4eb9-a93b-5805fc7e8122/bigbuck.mp4?sv=2012-02-12&sr=c&si=c7011ff9-be73-4ad4-a55a-fd05099ffa50&sig=WNnjsHGJB8PN8ZbmCGdBM34MEQ1oXsSxMXaPAqF1yK0I%3D&st=2016-05-11T14%3A32%3A19Z&se=2116-04-17T14%3A32%3A19Z" type="application/vnd.ms-sstr+xml" />
<p class="amp-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video</p>
1. With the example code above I have uploaded a mp4 video to Azure Media Services. Everything works when using Chrome, but with Firefox I get this error message:
A network error made downloading the video stopped. Check your network
connection and try again later.
My guess here is that I need to do some additional coding on the video? If so, what encodings do I need for my spec?
In other examples I've seen people use special formats, ism/Manifest something(?) Did I miss a step? What I did was publish the asset, retrieve the URL and paste it into my HTML5 player. My URL looks like a SAS URI..
2. Do I need to create a Streaming Endpoint with atleast one unit? I looked at the pricing and I think it was around $139/month. Yuck. Is that not just for live streaming?
3. Each uploaded video in Azure Media Services, (asset), gets it's own blob container. Now imagine if I have over a thousand of users and even more videos. Is this really how it's done? Is it not possible to have the same blob container for all videos? Is Azure Media Service really what I'm looking for?
4. If I didn't use Azure Media Services, what would be my other options? Convert uploaded videos to MP4/WebM/Ogg and tripple my storage space?
Quick thing to note above is that the mime type you have provided in the source tag is incorrect because you are using progressive MP4 and are not using adaptive streaming. You have "application/vnd.ms-sstr+xml" when it should be "video/mp4" – there is a sample http://amp.azure.net/libs/amp/latest/samples/videotag_progressiveVideo.html for this use case.

How do I upload photos with my Blogger posts via Google's .Net API Client Library?

I've been able to successfully post to my blog using this library, but can't figure out how to upload and reference images with the post (similar to how Picasa's "Blog This" feature works).
There is no straightforward way. The images uploaded on Blogger are first uploaded to Picasaweb. So you need to work on picasa as well as Blogger API.
You can try the following steps:
Create a UI to select image from your system.
Use Google Picasa API to Upload image.
Get link of the uploaded Image and add it to your Blog's HTML code.

Extract an image from a video hosted on a web site

I need to extract an image/thumbnail from a video hosted on some website. For exemple, the host could be youtube.com or whatever.com and i want to extract an image for a precise frame, i.e 2:12.
I have the direct URL for the video. I searched and found how to do it for youtube or vimeo, they provide xml or json with a path to the thumbnail. However i can't find how to do it for a web site that doesn't provide those informations.
Ive downloaded FFmpeg, but it doesn't seem to offer to extract an image from a video hosted on some web site.
Any other tool or any idea to make a tool myself ?
Thanks
I'm guessing that you are trying to do this on server side, and as far as I know you then need to transfer the video over to the server and run ffmpeg, as you already suggested.

Categories

Resources