Extract HLS encryption key? - encryption

I've managed to download the hls from a website I've legally subscired to and am trying to save the videos for offline playback on my computer because the buffering is way too slow and doesn't allow me to shuffle through content quickly.
Is there a way to decrypt the downloaded hls stream file by feeding it with the online feed of the website or can it be read somewhere in the site's code itself?
Is there another way to capture the videos? By maybe tapping the buffer feed?
Although I haven't found an app yet that can do this. I usually used video download helper but that doesn't work anymore with encrypted hls streams.

Related

Photo streaming uploading protocol

In this age of *chat applications and various messaging software, I was wondering if there is already an official protocol (RFC) that would follow the following basic flow:
Client connects to Server for a new session
Client uploads an image (or video) with metadata information (size, resolution, format) to server
Server does some work (not part of the protocol)
Server replies with REJECT then client goes to 1.
Server replies with ACCEPT then client stops and gather the result as part of the reply from the server
I have a proprietary solution now that does the basic (supports basic formats) and as we know, the devil is in the details so I wonder if some existing protocol would cover the stream format and more unhappy paths I may have missed with this simple design.
I'm not aware of any protocol that can handle file probing for you ..
ffprobe is a good open source solution to do this but requires processing power and scale.
So this step must be done on server side, after the upload. You cannot trust the client for such information.
I suggest the cloud approach. Here, we're using Amazon Cloud.
Upload your file to AWS S3. You can use multi part upload for faster upload. No need to scale anything, AWS will do it for you.
Your clients just request a signed URL from your web server. The server return the URL and an ID for this new asset. Your clients upload to AWS S3 using the URL.
Once the upload is done, your client make a call to your server again to say: "I'm done with Asset ID blah". Your server knows the asset is now uploaded and can initiate transcoding, analysis, DB updates, etc.
We do this exact scenario in our project.
For transcoding at scale we use our own open source project: https://github.com/sportarchive/CloudTranscode
This is not an easy business, especially if you want to handle videos.
If you restrict yourself to pictures, then a lot can be done on the user side. You can create several versions of the image in JS, directly in the browser for example or in the mobile app, and upload them to your server. The load is much smaller and you may not need this decoupled architecture.
If you handle videos, you need a solid backend.
Hope this help

Record Live streaming radio

I would like to be able to record online radio from my wordpress website. Has anyone came across an API or software that can help me archive this.
There are several stream recorders which would do that (e.g.: Tubemaster++, Orbit Stream Downloader, Replay Media Catcher and more) and there is an (expensive) application called Total Recorder, which can record directly from your soundcard (with own system driver to get the sound from the device).
But be aware that not every stream allows you to record, you could have legal problems with this.
But if it is "your wordpress website" I guess this is your music anyway?

youtube video upload limitations

I am getting started with the youtube api but was wondering is a few things:
do i need to upload the video the youtube or can i just use it's
player?
if it does require me to upload to youtube, performance wise it
it better?
if i do upload to youtube can i make the videos private so they can
be viewed from my site only without being accessible through youtube
it self?
do i have limits on the number of videos i can upload, or the number
of playlists i can create?
can i get the video thumbnail using the api?
sorry if it appears random, thanks.
You have to upload it.
Assuming the clients are scattered around the world: yes, youtube will perform better than your own solution. If the clients are all within your building, on your network, then .. maybe. Depends on what you have hosting it, how many simultaneous and far more questions than is feasible to type out here.
More to the point on this one, if YouTube is serving the videos then you don't have to worry about that bandwidth coming from your server which may be important in terms of cost and bandwidth you need.
Yes. See https://developers.google.com/youtube/2.0/reference for some details about "authorized" requests.
The only limitations have to do with the length and size of the video. If you need videos longer than 15 minutes or 2GB then you need to request authorization. http://support.google.com/youtube/bin/answer.py?hl=en&answer=71673
See How do I get a YouTube video thumbnail from the YouTube API?

Live streaming audio using ASP.NET

We have a need to stream live audio from remote devices and be able to listen to it in a web page. I can stream stored audio files, but the live stream has me a bit confused, since we will be adding the data at runtime. Can someone point me in the right direction to show me how to do this?
Thanks
Two things:
If all you want is simple streaming, that is, progressive download, then just define the mime type on the server, and it will stream. Keep in mind that you will have to have an audio format that plays progressively (most, but not all these days, do).
If you're looking to take fine control over what's going on, you'll need to embed an audio player and use a media server SDK. Here is the link to Microsoft's product for this: Windows Media Server SDK.

Download and play video from web on Blackberry

I want to play video from a url in my application... I want to first stream the video and store the data in a buffer and then feed the data from the buffer to the player.
There is a bufferedplaybackdemo sample in BlackBerry Eclipse Plugin, for audio. I do believe it's not hard to rewrite it for video playback.
See Buffer and play streamed media

Resources