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

能切换其他数据源吗? #594

Open
adugmcool opened this issue Feb 13, 2018 · 4 comments
Open

能切换其他数据源吗? #594

adugmcool opened this issue Feb 13, 2018 · 4 comments
Labels

Comments

@adugmcool
Copy link

Android端 不需要使用手机自带的摄像头作为数据源, 想采用外接的设备作为数据源 sdk可以吗?

@adugmcool
Copy link
Author

或者直接从视频文件推流 ?

@begeekmyfriend
Copy link
Owner

需要定制SDK。如果是外界设备作为数据源的话,往mEncoder.onGetRgbaFrame送;如果从视频文件的话,往mFlvMuxer.writeSampleData接口送

@Easyhong
Copy link

我使用时的 Camera2, 然后使用ImageReader YUV_420_888 的格式, 然后在转化为NV21格式
使用此接口: public void onGetRgbaFrame(byte[] data, int width, int height) 后在推流,视频就变成雪花状了,请问怎么解决...

@begeekmyfriend
Copy link
Owner

onGetRgbaFrame当然是8888啊

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

No branches or pull requests

3 participants