Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mp4 videos not streaming on site

I am using jwplayer to play mp4 videos on my site. The files are huge. They dont start streaming until the whole video has buffered. I need the videos to stream and buffer at the same time.

I read all forums and they mentioned about moving the metadata from the end to the start of the file using some external software like qtfaststart.

Apart from using a software like qtfaststart is there any other method for the developers to code and make the mp4 videos to stream on site?

Maybe with the help of FFmpeg or some other way?

like image 308
Sarvesh Shejwadkar Avatar asked Nov 21 '25 07:11

Sarvesh Shejwadkar


1 Answers

I don't think you can accomplish that with FFMPEG alone, we are currently using MP4Box. If your development team is working on linux, there are several guides on compiling and installing it.

From the MP4Box site:

MP4Box can be used to prepare files for different delivery protocols, mainly HTTP downloading or RTP streaming.

To prepare a file for HTTP download, the following instruction will interleave file data by chunks of 500 milliseconds in order to enable playback while downloading the file (HTTP FastStart):

MP4Box -inter 500 file.mp4

like image 125
Lando Avatar answered Nov 22 '25 19:11

Lando



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!