3

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?

Zombo
  • 1
  • 62
  • 391
  • 407

2 Answers2

2

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

Community
  • 1
  • 1
Lando
  • 715
  • 6
  • 29
0
ffmpeg -i infile.mp4 -c copy -movflags faststart outfile.mp4

or

mp4box -ipod infile.mp4

or

qt-faststart infile.mp4 outfile.mp4
Zombo
  • 1
  • 62
  • 391
  • 407