Video host and playback speed from 25% to 1000%

Where should I post the video in order to be able to control the playback speed from 25% speed to 1000% (10 times faster)?

Controlling playback speed is easy with HTML5 <video> . However, I cannot find the video host to support the speed range that I need.

Parameters that I reviewed:

Self-hosting

One option is to host the video on my own servers. From what I read, this is due to many complications, and he prefers to host existing services (Youtube, Vimeo, Brightcove, etc.).

Youtube

I watched the YouTube video API , but it has a certain range of playback speeds that doesn’t sound like it gets up. 1000% speed. Although I have a video, so maybe I have control over the available playback speeds when downloading them?

Vimeo

There are no playback speed options.

Brightcove

The API has a function to set the playback speed. But you also have to pay ...

+6
source share
4 answers

You can use MediaElement.js , especially in this example. It’s possible that YouTube simply won’t support the content fast enough to run at 1000% speed.

If so, I think that switching to your own solution using the <video> element is easiest using any CDN service to serve your content. The danger here is that you are limited to browser support, although almost all modern browsers will support the <video> .

+2
source

It doesn't seem like it's possible if you don't use the HTML <video> element in your custom implementation. Even the Youtube API states:

Although the AS3 player supports playback speed controls, currently variable speeds are only supported in the HTML5 player.

Currently (May 2015), it’s best to create your own solution, since youtube seems to use flash memory even in some browsers that support html5 video, for example, my Opera 29 (although if I change my user agent to chrome , it really serves the html5 player ...). Most browsers can handle mp4, and you can encode video from different playback speeds as a backup if the <video> element is not supported. At the moment, <video> support is approaching 95% in the US , so there’s no need for your audience.

Another point in favor of using your own solution is that youtube seems to only support playback up to 2x speed (200%).

The biggest problem with posting your own video, which is not allowed by the <video> element, as I saw it, is loading on the server. Using a CDN is likely to solve this problem. Please note that my laptop cannot play smooth hd videos (well, DVD quality, I don’t have a lot of videos to test), which comes from my own machine more than 2 times, so if you don’t use very small videos you may find 10x impractical.

HTML5 Rocks has a good overview of customizing the <video> element.

+1
source

You can host media on AWS S3 (either on AWS itself or on compatible services such as Dreamhost). S3 solves some of the FTP problems with self-serving media files, such as downloading large files, version control, etc. And this can be a reasonable compromise when you need full control of the media player.

If the above solution is not possible, you can:

  • Recode the media at some of the most important speeds. Changing the playback speed means switching to another movie.

  • Provide the ability to upload files or corresponding fragments so that the user uses a local player (such as VLC) to "play" with the environment.

0
source

Can be done with Vimeo, the Pro version anyway. I go to the hosted video, video file and access your video files. There are links to video files that can be used as a source for HTML5 video.

 <video id="video" src="http://player.vimeo.com/external/1278xxx.hd.mp4?s=xxx&profile_id=119"> 

After that, it uses jQuery to get the video descriptor

 var video = $("video")[0]; 

And change the playback speed

 video.playbackRate = 0.25; 

A number of security problems can occur, since anyone with a link can now download the file with the right mouse button and save it as.

0
source

Source: https://habr.com/ru/post/986689/


All Articles