Open fasterthanlime opened 7 years ago
Basically:
linesize
vflip
So we need to adjust the encoder format struct, see definition here and make the encoder code use it properly.
Also, for OpenGL capture, writevideoformat should take care of the stride vflip trick by itself, see these lines.
In general the encoder code needs a big cleanup but this can be done before or after it independently.
Basically:
linesize
paramlinesize
andvflip
So we need to adjust the encoder format struct, see definition here and make the encoder code use it properly.
Also, for OpenGL capture, writevideoformat should take care of the stride vflip trick by itself, see these lines.
In general the encoder code needs a big cleanup but this can be done before or after it independently.