Git Product home page Git Product logo

您好,我现在也是用的Mediaprojection+mediacodec实现,但当屏幕从横屏切换为竖屏后,两边被黑边充满。这种情况是否有方法,将竖的录屏旋转? about screenrecorder HOT 1 OPEN

myrao avatar myrao commented on August 27, 2024
您好,我现在也是用的Mediaprojection+mediacodec实现,但当屏幕从横屏切换为竖屏后,两边被黑边充满。这种情况是否有方法,将竖的录屏旋转?

from screenrecorder.

Comments (1)

myrao avatar myrao commented on August 27, 2024

其实这个现象是正常的,因为初始是横屏分辨率,编码器和 MediaProjection 初始化的时候就是以横屏分辨率来编码的,如果想要横屏转竖屏,需要中途将 meta-data 重新通知编码器,并且解码器也需要再次解析,会导致很多问题,实现也并非不可,但是付出的代价还不如改一下策略,如果是直播的话就中途断一下。如果是录制到本地,那就中断再次初始化,市面上很难看到一会儿横屏一会儿竖屏的这种视频流吧?

from screenrecorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.