gohls
gohls copied to clipboard
Streaming uses a lot of CPU and is slow
Look into the following options:
- [ ] compare source / target encoding to maybe skip transcoding all together
- [ ] get HW acceleration to work
- [ ] use different profiles / resolutions
- [ ] use bigger HLS chunks
- [ ] batch multiple HLS chunks together
@shimberger Did you had any time to read or test about this issue?
@elico I have not. Are you interested in helping out?
@shimberger I am not sure what you or others consider as high CPU usage. In streaming and compression there is always a conflict between CPU and DISK. You can spare one with the cost of the other but cannot spare both. There is a talk which gives couple good points about this issue and there is a link to it in this git: https://github.com/elico/nginx-hls-dash-stream-example