If your HLS stream is working normally, and the only problem is its bloated file size. The reason may be because of its playlistType. By default, an HLSstream without a playlistType parameter is in appending mode. I suggest putting playlistType=rolling in your createHlsStream parameters. This will cause EMS to delete HLS files after the staleRetentionCount(default value = 10) has been reached. By the way, you can also set the staleRetentionCount in your createHlsStream.