Giter VIP home page Giter VIP logo

Comments (7)

blueberryCoder avatar blueberryCoder commented on June 2, 2024

我目前还没时间处理这个。我编码器需要的数据格式目前写的是 COLOR_FormatYUV420Planar。你可以改改编码器的输入格式试试,或者将原数据用libyuv转成COLOR_FormatYUV420Planar试试,工程里集成了libyuv。

from livestream.

blueberryCoder avatar blueberryCoder commented on June 2, 2024

https://github.com/blueberryCoder/LiveStream/blob/master/AndroidPublisher/rtmplive/src/main/java/com/blueberry/media/codec/video/VideoEncoder.java#L60

from livestream.

kimi2009 avatar kimi2009 commented on June 2, 2024

在高通的设备上,编码器格式好像只能是COLOR_FormatYUV420SemiPlanar,数据转换用的NV21转NV12,结果是图像的灰白图没问题,但背景阴影有色偏。一帧图像分成了四宫格,一个对角的两格是彩色,一个 对角的两格是黑白,感觉是UV没有转对,实在是调不出来。

from livestream.

kimi2009 avatar kimi2009 commented on June 2, 2024

方便的话,我发个图给您看看,能加下您微信吗?

from livestream.

blueberryCoder avatar blueberryCoder commented on June 2, 2024

你为什么需要将NV21转为NV12呢?不转会有问题吗?

from livestream.

blueberryCoder avatar blueberryCoder commented on June 2, 2024

https://www.fullstackaction.com/pages/8102b2/#%E4%B8%80%E3%80%81%E5%BD%95%E5%83%8F%E5%8F%98%E8%89%B2

看起来COLOR_FormatYUV420SemiPlanar,再不同的机型上适配会有些困难。之后可以试试MediaCodec Surface模式编码。

from livestream.

kimi2009 avatar kimi2009 commented on June 2, 2024

试了很多种转换,感觉问题就在UV照应的不对呈现出来的灰白或者绿斑现象,感觉就是一个小问题,但尝试了很多方法无法纠正,很希望跟您沟通一下,如果方便的话,您加我微信: Ferrari_Racing

from livestream.

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.