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

rtmp streaming yuv #1185

Closed
supr3me opened this issue Nov 1, 2022 · 2 comments
Closed

rtmp streaming yuv #1185

supr3me opened this issue Nov 1, 2022 · 2 comments

Comments

@supr3me
Copy link

supr3me commented Nov 1, 2022

Hi, @pedroSG94 Good afternoon!

I push stream from third library TextureView widget. It decoder from h264 and render.
I can get the h264 data and yuv data from its function:

h264 callback : onReceive(byte[] videoBuffer, int size) (offical say it is h264 data, but i am not sure :(
yuvdata callback: onYuvDataReceived(MediaFormat mediaFormat, ByteBuffer yuvFrame, int dataSize, int width, int height);

I see SrsFlvMuxer has send h264buffer, but its function not match the onReceive(byte[] videoBuffer, int size)

How can I use this library push stream with h264callback or yuvdatacallback?

thank you very much!

@supr3me supr3me closed this as completed Nov 2, 2022
@supr3me
Copy link
Author

supr3me commented Nov 2, 2022

#817

@pedroSG94
Copy link
Owner

pedroSG94 commented Nov 2, 2022

Hello,

Try to implement this using this way:
#144 (comment)
SrsFlvMuxer can be replace to RtmpClient.

After that, let me know the result and we can fix possible issues

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

2 participants