sergey-dryabzhinsky / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
1.02k stars 216 forks source link

HLS recorder #156

Open ctaity opened 8 years ago

ctaity commented 8 years ago

Hi, we developed a HLS recorder taken fragments of the live m3u8 file, and putting in separate directory in other m3u8 in range of 12hs. I think is a great feature to incorporate to nginx-rtmp-module. Its a m3u8 file without slicing window, with a duration of time defined. Its same feature as rec, but in hls or dash format. Its great to do on the fly cuts or taken snapshots for live streamings, like snappy tv.

I imagine , can be done with:

hls_rec on; hls_interval 12h; hls_rec_dir /tmp/rec/hls/ hls_rec_pattern system; (to name directories /timestampStart-timestampEnd/)

and send the fragment to 2 locations, live and rec. In rec 12 hs m3u8 file, and when is filled then close with vod tag, and open another directory and fill new m3u8 file.

Its and idea. We dont have c or c++ developers, we do this feature with nodejs, reading the m3u8 and copy the ts, and mantain the new m3u8 file.

I can send our hls recorder in node, but this feature is really nice i think.

chriswiggins commented 8 years ago

This would be quite a nice feature to have and we could borrow existing code from the FLV recorder and HLS segmenter to achieve it

On 21/06/2016, at 5:46 AM, ctaity notifications@github.com<mailto:notifications@github.com> wrote:

Hi, we developed a HLS recorder taken fragments of the live m3u8 file, and putting in separate directory in other m3u8 in range of 12hs. I think is a great feature to incorporate to nginx-rtmp-module. Its a m3u8 file without slicing window, with a duration of time defined. Its same feature as rec, but in hls or dash format. Its great to do on the fly cuts or taken snapshots for live streamings, like snappy tv.

I imagine , can be done with:

hls_rec on; hls_interval 12h; hls_rec_dir /tmp/rec/hls/ hls_rec_pattern system; (to name directories /timestampStart-timestampEnd/)

and send the fragment to 2 locations, live and rec. In rec 12 hs m3u8 file, and when is filled then close with vod tag, and open another directory and fill new m3u8 file.

Its and idea. We dont have c or c++ developers, we do this feature with nodejs, reading the m3u8 and copy the ts, and mantain the new m3u8 file.

I can send our hls recorder in node, but this feature is really nice i think.

You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/156, or mute the threadhttps://github.com/notifications/unsubscribe/ACsxEY-hQEwrNzmSce-neAGAy7lOjSjFks5qNtHpgaJpZM4I58sP.