yutopp / go-rtmp

RTMP 1.0 server/client library written in Go.
Boost Software License 1.0
392 stars 85 forks source link

can the stream be converted to hls ? #50

Open mu6m opened 1 year ago

mu6m commented 1 year ago

the stream keeps increasing the flv file size other than that hls is capable for transferring media on lots of platforms

should we convert the flv stream to hls or is there a way to implement it in the code

yutopp commented 1 year ago

The file size will increase whether rtmp or hls when archiving, what is your thinking?

If you want to transfer media with generic format without archiving, you can use HLS instead. However, go-rtmp has only features that encoding/decoding RTMP and FLV container format. Thus I thint that we need to re-pack or transcode such as AVC/AAC codec data in the containers to MPEG-2 TS by combining with other software.

mu6m commented 1 year ago

the main point of me using hls instead of flv it to turn the stream into parts so i can delete the old parts of the stream

can go-rtmp be implemented in the example you gave in the repo