mp4/webm recording is the easiest way to record your streams. As you said you just need to enable. However, in case of disk capacity fullness or unexpected stop in the stream, mp4.tmp_extension file could not be converted to the final mp4 file. Then you may lost whole record.
If you disabled HLS file deletion, you would have the records as HLS chunks. Moreover, you can convert them at the end of the stream to mp4.
Therefore, if you will record long-duration streams the mp4 file size will be large and if disk capacity is full then you lost everything. If you record as HLS then you may lost few parts after disk is full.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…