Log in

View Full Version : StackHorizontal with stack16


nickintheforest
26th August 2015, 22:33
I have 1080p, 4:2:2 10-bit.

First of all, I want to ask, is format="YUV422P16" (LWLibavVideoSource("sample.ts",stacked=true,format="YUV422P16")) the most correct pixel format?

If that's true, second question.
Which way of StackHorizontal two stack16 video is the most accurate? I mean,
s = LWLibavVideoSource("sample.ts",stacked=true,format="YUV422P16")
-> StackHorizontal(s,s) for example. or StackVertical.

cretindesalpes
26th August 2015, 23:14
You can safely use StackHorizontal with stack16 clips.
However, for vertical stacking you have to separate the MSB and LSB parts:
a0 = clip_a.Dither_get_msb ()
a1 = clip_a.Dither_get_lsb ()
b0 = clip_b.Dither_get_msb ()
b1 = clip_b.Dither_get_lsb ()
c0 = clip_c.Dither_get_msb ()
c1 = clip_c.Dither_get_lsb ()
StackVertical (a0, b0, c0, a1, b1, c1)

nickintheforest
27th August 2015, 12:34
cretindesalpes, thank you so much