Oleksandr
Oleksandr

Reputation: 3744

How to organize a pseudo streaming by using splited file (chunked file)?

I have chunks of an mp4 file. Each chunk 2 seconds. I have to organize a pseudo streaming by using these chunks. It is easy to organize a pseudo streaming with one whole mp4 file but I have to store chunks (each 2 seconds). Somebody know if it possible to organize a pseudo streaming chunks of the file by using NGINX, Nimble Streamer or other free media server? (Not a streaming like HLS or DASH but an mp4 pseudo streaming).

Upvotes: 1

Views: 760

Answers (1)

Yury
Yury

Reputation: 691

In case of pre-packaged files, there are 2 basic forms of streaming:

  1. Progressive download which uses whole file (not split) to show it in any PD-capable player. E.g. all browsers capable of HTML5 video tag have support for it.

  2. HLS/DASH/HDS/Smooth protocols which use a playlist and a bunch of chunks. A player gets a playlist and then downloads chunks as long as it's needed for playback. Those chunks must be pre-formatted in the way the player could decode them properly, this means HLS chunks won't be played by HDS player for example.

You have some "middle case" where you want to use option 1 while having content for option 2. So you need to decide whih option you want to proceed with. I would recommend composing those chunks into single MP4 files for option 1. It will also make it available for easy transmuxing into HLS, MPEG-DASH or whatever you decide to use later.

Upvotes: 1

Related Questions