I want a free fast video loading extension. I tried so much extensions but these are taking more time to load video.
Please suggest a fast video player extension
namely which?
Where are the videos? Online? There are external factors such as the speed of broadcast, speed of broadband, neither of which a video player can improve. You could improve the load speed by pre-downloading the video but much depends on the video size - are you talking about block buster movies or music videos?
Videos may also need some encoded parameters to enable them to stream (instead of having to download the complete video before playback) - and this may depend on which video player you are using.
I am using this url from firebase
https
://firebasestorage.googleapis.com/v0/b/yand-3fff9.appspot.com/o/Screenrecorder-2025-03-31-12-02-47-957.mp4?alt=media&token=d86b2e30-4fae-4d23-b1fd-8aa47d316e3f
This screen record video is only 4 or 5 seconds
Loading time is 5 minutes
I am tried this extensions
- Deep host exoplayer
- Video layout
And other 3 more extensions these all are very slow
Are you viewing over wifi or data network ?
(note, it is a 2.8mb file of 12 seconds in length)
Try this
The same video, re-encoded. (208kB) - so 1/10th the size
ffmpeg -i scr1.mp4 -vf "scale=720:-2" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k scr2.mp4
ffmpeg -i scr2.mp4 -movflags faststart -c copy scr3.mp4
Upload this to your firebase storage and test (Try the native video player)
Note: you can do all this encoding on the device using @vknow360 's excellent ffmpeg extension:
EDIT
This 2 pass command creates a useable 91kB video from the original:
ffmpeg -y -i scr1.mp4 -vf "scale=720:-2" -c:v libx264 -b:v 50k -preset veryslow -c:a aac -an -pass 1 -f null /dev/null && ffmpeg -y -i scr1.mp4 -vf "scale=720:-2" -c:v libx264 -b:v 50k -preset veryslow -c:a aac -b:a 128k -pass 2 scr2a.mp4
There is any tutorials available for this ffmpeg extension i am totally confused this have any example project
How to compresa the file from gallery? And how to get compressed file using this extension
Get file using activity starter or video picker then compress the path and how to save this
Please give any method to doo this
You haven't answered any of the questions regarding the time it is taking to view a small video - you said 5 minutes before viewing ?
Let us deal with that first.
Did you try uploading the smaller video I provided to firebase storage, then test viewing that ? Did it make any difference ?
I add that video before that is an example dont care that. then i want to view any type of video files and any size Using url