Extract an image from a video hosted on a web site - c#

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.

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?

C# URL, Get all files of type "audio/webm"

I'm making an app that enables me to download YouTube videos. If you weren't aware by selecting the network tab on a YouTube video then refreshing the page, filtering using "mime-type:audio/webm" {EDIT:: and removing &range=.. from the url} you get access to all the video's files like just audio, just video, low quality, high quality etc.
The app I'm wanting to make but can't seem to figure out will go to https://youtube.com/watch?v=VIDEO_ID, filter the requests by "mime-type:audio/webm" and list all of the links found.
How could I access this from C#?
a screenshot of what I'm talking about in regards to video types
You can clearly see that the web request is initiated by a javascript.
By doing so, it has been made hard to initiate such a request from C#, because;
you either need to parse and execute the javascript, or
recreate the generated URL's in C#, or
use a proxy to capture the incoming data
Another option would be to check out Google's API, but I am not sure they expose such functionality.

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.

Video from website to windows application

Who knows how to display the video from website in windows application?
This is the site
I want to write an application to it. Can I do it without knowing API? Or if there is no API.
I will be very grateful for the help.
The most basic way would be to use a WebBrowser control and use an embed link (if it exists) or parse the HTML to obtain the flash object with the correct parameters.

Categories

Resources