Home>

How to automatically create multiple video qualities? I have a 720p video and I need php or js to create two more 480 and 360 on the client side.I use playerjs.com

<
html >
    <
head >
<
script type= "text /javascript" src= "https://cdn.plrjs.com/player/atzn96yz329k9/tou9ijrw9ywl.js" >
<
/script >
        <
style >
html {height: 100%; overflow: hidden;} body {height: 100%; margin: 0; padding: 0; overflow: hidden; background: black;} <
/style >
        <
meta charset= "utf-8" >
<
/head >
    <
body >
        <
div id= "player" class= "UA" style= "width: 100%; height: 100%" >
<
/div >
<
/div >
        <
script type= "text /javascript" >
            var player= new Playerjs ({
                id: "player",
                file: '[720p] https://www.secvideo1.online/get_file/9/1f97f9d2a480bb5780156c9ffc5cf6866cc4763064/529000/529711/529711_720p.mp4, [360p] //There must be a link to the compressed video'})
        <
/script >
<
/body >
<
/html >

or hosted video compressed automatically. tell me how to do it? really needed! thanks

@phpBear I have hosting, can I have something else?

yurap show2021-11-06 06:03:11

On the client side, it will suck, especially if you send video with a quality of 1080 and the client will cut it down to 480. There is nothing to say about the opposite;)

Daniel Protopopov2021-11-06 06:03:11

@yurapshow to recode client side? This is unethical to say the least. Imagine that you came to the site, and it uses the resources of your computer without your consent -for example, as js-miners do it. So you have only one way out -upload it to the hosting, and then recode it in multithreaded mode. I don't see any other options.

phpBear2021-11-05 09:15:13

and how, then, to create qualities automatically? on the hosting? maybe there is some kind of plugin for dle or for WordPress. Or some other cms?

yurap show2021-11-05 12:01:36