I am developing a E-Learning website where people can upload videos.
When someone uploads a video, they usually upload it in 1080p full HD which is good. Now the issue is that when people watch the videos, they are only in 1080p and some people have bad internet (including myself) so watching a video in 1080p is not optimal.
So I assume that converting the video to different formats (720p, 360 etc..) is the best way to go here. So I tried using FFMpeg, and it works, but its really slow, especially since some videos are over 10 minutes long and over 1gb in size.
I use this command in FFMPEG:
ffmpeg -i video.mp4 -vf scale:1280:720 -strict -2 output.mp4
This works, but its really slow.
Is there any better way to do this? Since some people upload 5-10 videos and every video has to be in 3 different formats (1080p(original) 720p, 360p).
Can someone give me some guidelines how to tackle this issue, as this kind of stops the website from progressing atm.
Thanks