📜 ⬆️ ⬇️

Encoding live video during download

The Transloadit.com service launched a new feature : video file processing using the ffmpeg codec during its upload to the site. Transloadit servers provide a faster coding rate than the upload rate for most users. Thus, the delay between uploading and publishing a video is now virtually eliminated.

The feature of realtime encoding in some cases increases the “encoding rate” (that is, the time between the end of the file download and the end of encoding) by 150 times. How it works is shown in the video under the cut or you can check it yourself in the demo section on Transloadit.com.

Delay coding is a very unpleasant thing. For example, on Youtube, it annoys so many users. Well, if the guys experience colleagues with Transloadit will be changed by the developers of other video hosting sites.

From a technical point of view, the real-time encoding function Transloadit is done using the file loader parser . During the boot process, the parser writes small pieces of files to the disk that are “fed” by ffmpeg. Transloadit systems are based on node.js.
')
For registered users, to activate this function, you need to add the parameter "realtime": true to the parameters of the robot /video/encode .



As you can see, even small startups can technologically surpass such "monsters" as Youtube / Google.

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


All Articles