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

压缩后出现黑屏,只有声音 #29

Open
HobaoKing opened this issue Jul 14, 2020 · 4 comments
Open

压缩后出现黑屏,只有声音 #29

HobaoKing opened this issue Jul 14, 2020 · 4 comments

Comments

@HobaoKing
Copy link

使用手机录制,压缩后黑屏

@lihaojie
Copy link

我也遇到了、

@breezewind-yang
Copy link

有解决方案吗

@xiaogehenjimo
Copy link

有解决方法吗 @breezewind-yang @lihaojie @HobaoKing

@sheodon
Copy link

sheodon commented Mar 29, 2022

  • (CGAffineTransform)transformFromDegress:(float)degress natureSize:(CGSize)natureSize{
    /** 矩阵校正 */
    // x = ax1 + cy1 + tx,y = bx1 + dy2 + ty
    if (degress == 90) {
    return CGAffineTransformMake(0, 1, -1, 0, natureSize.height, 0);
    }else if (degress == 180){
    return CGAffineTransformMake(-1, 0, 0, -1, natureSize.width , natureSize .height);
    }else if (degress == 270){
    return CGAffineTransformMake(0, -1, 1, 0, 0, natureSize.width); //视频压缩/合成出现黑屏现象
    // return CGAffineTransformMake(0, -1, 1, 0, -natureSize.height, 2 * natureSize.width);
    }else{
    return CGAffineTransformIdentity;
    }
    }

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

5 participants