Comments (7)
我目前还没时间处理这个。我编码器需要的数据格式目前写的是 COLOR_FormatYUV420Planar。你可以改改编码器的输入格式试试,或者将原数据用libyuv转成COLOR_FormatYUV420Planar试试,工程里集成了libyuv。
from livestream.
from livestream.
在高通的设备上,编码器格式好像只能是COLOR_FormatYUV420SemiPlanar,数据转换用的NV21转NV12,结果是图像的灰白图没问题,但背景阴影有色偏。一帧图像分成了四宫格,一个对角的两格是彩色,一个 对角的两格是黑白,感觉是UV没有转对,实在是调不出来。
from livestream.
方便的话,我发个图给您看看,能加下您微信吗?
from livestream.
你为什么需要将NV21转为NV12呢?不转会有问题吗?
from livestream.
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.
试了很多种转换,感觉问题就在UV照应的不对呈现出来的灰白或者绿斑现象,感觉就是一个小问题,但尝试了很多方法无法纠正,很希望跟您沟通一下,如果方便的话,您加我微信: Ferrari_Racing
from livestream.
Related Issues (20)
- 请问jcenter和开源代码不一样吗,我使用有不同的结果 HOT 1
- width应该如何设置 HOT 3
- publisher在小米2S上闪退在华为P8上只能推送一帧 HOT 1
- 问一下,第二次再推流的时候就没反应了 HOT 1
- 推流的地址设置后不能更换,不支持设置只推音频或视频 HOT 4
- 大哥,这个怎么导入到AS里面去运行啊 HOT 4
- 大神您好,能提供编译成librtmp.so 的源码麽?还有polarssl怎么加载的?谢谢
- 播放端看到的视频默认是横屏的,不能自动更改
- H264格式视频流推流 HOT 1
- 点击开始之后 点击结束就会报错
- com.blueberry.player E/IJKMEDIA: Connection to tcp://192.168.11.146:5555 failed: Connection refused
- 大神 帮忙看下 是什么问题引起的 非常感谢
- 推流不成功,没有提示,不知道怎么改
- 大神请问有遇到播放延迟10+秒的问题吗?我用nginx搭建的服务器
- 有没有64位的so库 HOT 2
- 编译报错
- CMake Error: Could not create named generator Android Gradle - Ninja HOT 1
- so库找不到问题 HOT 1
- rtmp文件夹里面的【rtmp/lib/armeabi/librtmp.so】是否可以编译成x86等其他格式so HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livestream.