Fixes to counting optimal thread count and Transcode Video