On 2015-01-13 08:56:49, Fabian Greffrath wrote: > Am Montag, den 12.01.2015, 17:53 +0100 schrieb Sebastian Ramacher: > > To me it looks like the check in the x265 should just check against > > x265_max_bit_depth. Maybe something like the following patch could be > > used instead of shipping two binaries that only differ in this check. > > Nevertheless, the 8-bit binary would not work with the 10-bit library, > right?
Why wouldn't it? The binary only parses command line options and writing stats files. Everything else is passed to the library. Also, note the "Internal bit depth: 10" in the following output: $ x265-10bit /tmp/patched-x265/x265 --bitrate 10 /tmp/riverbed_1080p25.y4m -o /tmp/r10.out y4m [info]: 1920x1080 fps 25/1 i420p8 sar 1:1 frames 0 - 249 of 250 x265 [info]: HEVC encoder version 1.4 x265 [info]: build info [Linux][GCC 4.9.2][64 bit] 16bpp x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle x265 [info]: Main 10 profile, Level-4 (Main tier) x265 [info]: WPP streams / frame threads / pool : 17 / 2 / 4 x265 [info]: Internal bit depth : 10 x265 [info]: CTU size / RQT depth inter / intra : 64 / 1 / 1 x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2 x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40 x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2 x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 3 x265 [info]: Rate Control / AQ-Strength / CUTree : ABR-10 kbps / 1.0 / 1 x265 [info]: tools: rd=3 lft sao signhide tmvp ^C $ /tmp/patched-x265/x265 --bitrate 10 /tmp/riverbed_1080p25.y4m -o /tmp/r8.out y4m [info]: 1920x1080 fps 25/1 i420p8 sar 1:1 frames 0 - 249 of 250 x265 [info]: HEVC encoder version 1.4 x265 [info]: build info [Linux][GCC 4.9.2][64 bit] 8bpp x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle x265 [info]: Main profile, Level-4 (Main tier) x265 [info]: WPP streams / frame threads / pool : 17 / 2 / 4 x265 [info]: CTU size / RQT depth inter / intra : 64 / 1 / 1 x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2 x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40 x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2 x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 3 x265 [info]: Rate Control / AQ-Strength / CUTree : ABR-10 kbps / 1.0 / 1 x265 [info]: tools: rd=3 lft sao signhide tmvp ^C Cheers -- Sebastian Ramacher
signature.asc
Description: Digital signature