Claude.Rivet Posted October 19, 2016 Report Share Posted October 19, 2016 Hi everyone, I stumbled upon issues using HAP I wanted to share, System: HAP 12 Watchout 6.1.2 storage bandwith: 2.5GBs VRAM: 16GB CPU: 8cores 3.1GHz I noticed two limits using HAP: 11Megapixel and/or 500Mbps per stream My system is able to concurently play 7x 10240x1080 with no issue, barely above 11 megapixel The same system has serious stutter with 1x 5400x2160, 11.6 megapixel If I take the same movie and squeeze it to 5400x1900, 10.2 megapixel, it plays fine Same goes for HAP files with more than 500Mbps bitrate, exact same result; barely under is fine, barely above is enough to cause issues. The problem is I haven't found an efficient way to deal how to control the bitrate when encoding HAP, the only workaround seem to resize prior to the encode and wish it will be enough to reduce the bitrate. For example, another 5800x2160 movie was unplayable, squeezed to 5400x1900 it was still unplayable, to obtain the correct bitrate I had to resize to 5800x1080 prior to the encode. Hope this helps those with HAP issues! 0 Quote Link to comment Share on other sites More sharing options...
Moderator jfk Posted October 19, 2016 Moderator Report Share Posted October 19, 2016 I am curious, did you use chunks in your HAP encoding? Performance optimization for HAP chunked encoding starts in v6.1.2 ' chunked encoding' by Dataton AB – Erik Rönnqvist AVF Batch Encoder v1.6 provides chunk encoding (MacOS) – forum subscriber nicb 0 Quote Link to comment Share on other sites More sharing options...
Erik Rönnqvist Posted October 20, 2016 Report Share Posted October 20, 2016 Given a certain resolution and hap flavour (standard, HapAlpha or HapQ), there is no way to control the bitrate. The Hap format uses a fixed compression scheme; Dxt1/5/Y texture format + snappy compression, where snappy is a LZW-like compression. The snappy decompressor is able to handle approximately 500 megabytes per second per core on a modern CPU. Going beyond that you will have some stuttering. Of course CPU-speeds vary a lot, so the 500 megabytes per second is a very crude approximation, your mileage may vary. One way around this is to use chunked encoding, where each frame is split up in a number of chunks which can be decoded independently, thus utilising more cores in the CPU. There are at least two encoders that can do chunked encoding, please see the links that jfk posted above. As for the number of chunks to use, there is no point in using more chunks that there are CPU cores in the system. Each chunk added gives a (very) slight overhead in the form of less compression. Under normal circumstances the difference should be less than 1 percent in file size. A good stating point could be 4 chunks. /Erik 0 Quote Link to comment Share on other sites More sharing options...
Claude.Rivet Posted October 20, 2016 Author Report Share Posted October 20, 2016 Superb answers, thanks much guys, will look into it! 0 Quote Link to comment Share on other sites More sharing options...
screenshaper Posted October 20, 2016 Report Share Posted October 20, 2016 Chunked encoding available for Windows using FFMPEG. ffmpeg.exe -i "input.xxx" -an -c:v hap -format hap_q -chunks 8 -y "output.mov" as stated by @Miro in this post 0 Quote Link to comment Share on other sites More sharing options...
MarkHoward Posted April 19, 2017 Report Share Posted April 19, 2017 I am rendering to QuickTime from Adobe After Effects using the HAP codec but there are no options for bit rate or chunk size regardless of which flavor I use (HAP, HAP Q, HAP alpha...). The only option presented at render time is a slider for "Quality" which seems to have little, if any effect on the file quality or size. Is there a way to set chunk size in After Effects, or must another encoder be used. If so, which one? I tried without success to use ffmpeg. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.