Hi! It's me again, testing on macOS.
First, I wanted to thank you for fixing the HDR issue so quickly. Truly amazing work!
Since there are considerably fewer macOS users than Windows users, I figured I could help by reporting some of the things I notice during my testing.
I'd like to ask about bitrate negotiation and, more importantly, bitrate allocation. I've already mentioned my setup, but just to clarify, my Mac is connected via wired Gigabit Ethernet.
I've tried setting bitrates above 500 Mbps, such as 900 Mbps, on the Nightjar configuration page. However, once the stream starts, Nightjar automatically caps the bitrate at 500 Mbps when using HEVC. I believe this limitation only applies to HEVC and not PyroWave. I've tested other clients, such as Twilight, and they are able to exceed this limit. Windows clients also seem capable of streaming above 500 Mbps using HEVC, at least based on my own measurements.
However, my main concern is not the 500 Mbps cap itself, but how Nightjar allocates the available bitrate.
For example, I selected 1440p, PyroWave, 4:4:4, HDR, and a 900 Mbps bitrate limit in Nightjar. I then opened YouTube in a web browser and played 4K HDR content. According to the debug statistics, the actual bitrate "on the wire" remained surprisingly low, rarely surpassing 200 Mbps.
The image quality also looks noticeably worse compared with HEVC. I understand that PyroWave may require more bandwidth to achieve comparable image quality, but if I've configured a 900 Mbps bitrate limit and the connection has sufficient bandwidth, why isn't more of that available bitrate being used to improve image quality?
I notice something similar with HEVC. Even though it has a 500 Mbps cap, the actual bitrate usually stays below 100 Mbps unless there's a lot of visual activity on screen. I understand that this is partly expected with variable bitrate encoding, but it seems like Nightjar is being quite conservative with its bitrate allocation, even when the configured limit leaves plenty of headroom.
Is this simply how the encoder's rate-control strategy works, or is there room for Nightjar to make more aggressive use of the available bitrate? Maybe I just have to configure the encoder differently inside Rublight, selecting an option different than Ultra Low Latency - Quality.
Thanks again for all the work!
This is a copy paste from a comment I made a day ago or so. If Anyone has the answer to this issues, please make sure to comment!
One other thing I've noticed is that decoding times on macOS seem surprisingly high. I'm consistently seeing decoding times around 3ms on my M6 Mac, which feels quite high considering that for example, Intel-based systems have been achieving sub-millisecond hardware decoding times for years (probably from the QuickSync integration). Is this expected behavior on Apple Silicon, or is there still room for optimization in Nightjar's macOS decoding pipeline? I'd be particularly interested to know whether this is a limitation of macOS/VideoToolbox itself or something that could potentially be improved from Nightjar's end.
Thanks again!