Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助,播放8K的视频,ios端颜色不对,整个画面是暗红色的 #5599

Open
tppqt opened this issue Jul 17, 2024 · 4 comments
Open

Comments

@tppqt
Copy link

tppqt commented Jul 17, 2024

4K以下都没问题,hevc的编码,8K的视频就显示不正常

@iWolfSex
Copy link

你解决了没有

@tppqt
Copy link
Author

tppqt commented Oct 22, 2024

解决了,render版本是v2的太低了,修改了代码用了v3就好了

@iWolfSex
Copy link

能提供一下代码吗

@iWolfSex
Copy link

static const char g_shader[] = IJK_GLES_STRING(
precision highp float;
varying highp vec2 vv2_Texcoord;
uniform mat3 um3_ColorConversion;
uniform lowp sampler2D us2_SamplerX;
uniform lowp sampler2D us2_SamplerY;
uniform lowp sampler2D us2_SamplerZ;

void main()
{
    mediump vec3 yuv;
    lowp    vec3 rgb;

    yuv.x = (texture2D(us2_SamplerX, vv2_Texcoord).r - (16.0 / 255.0));
    yuv.y = (texture2D(us2_SamplerY, vv2_Texcoord).r - 0.5);
    yuv.z = (texture2D(us2_SamplerZ, vv2_Texcoord).r - 0.5);
    rgb = um3_ColorConversion * yuv;
    gl_FragColor = vec4(rgb, 1);
}

);

const char *IJK_GLES2_getFragmentShader_yuv420p()
{
return g_shader;
}
是要修改这段代码吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants