-
Notifications
You must be signed in to change notification settings - Fork 372
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
Use pushVideoFrame special card #1869
Labels
waiting for customer response
waiting for customer response, or closed by no-reponse bot
Comments
Why do you need to get the video raw data from the SDK, and then push it back? |
littleGnAl
added
the
waiting for customer response
waiting for customer response, or closed by no-reponse bot
label
Jun 26, 2024
I need a usb compatible camera here |
github-actions
bot
removed
the
waiting for customer response
waiting for customer response, or closed by no-reponse bot
label
Jun 26, 2024
I think if you can get the raw data from the |
littleGnAl
added
the
waiting for customer response
waiting for customer response, or closed by no-reponse bot
label
Jun 26, 2024
I think pushVideoFrame is pushing data to the remote end |
github-actions
bot
removed
the
waiting for customer response
waiting for customer response, or closed by no-reponse bot
label
Jun 26, 2024
You can use |
littleGnAl
added
the
waiting for customer response
waiting for customer response, or closed by no-reponse bot
label
Jun 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of the agora_rtc_engine
6.3.2
Platforms affected
Steps to reproduce
1, onCaptureVideoFrame to obtain the original data,$sourceType size: $ {videoFrame.width}x${videoFrame.height} y: ${videoFrame.yBuffer?.length} u:${videoFrame.uBuffer?.length} v:${videoFrame.vBuffer?.length}');
2. Push yuv through pushVideoFrame
code:`
_videoFrameObserver = VideoFrameObserver(
onCaptureVideoFrame: (sourceType, videoFrame) {
// print(
// 'Captured video frame from
if (!isJoined) {
return;
}
if (videoFrame.yBuffer != null &&
videoFrame.uBuffer != null &&
videoFrame.vBuffer != null &&
videoFrame.width != null &&
videoFrame.height != null) {
// 创建一个新缓冲区来存储拼接后的数据
final int totalLength = videoFrame.yBuffer!.length +
videoFrame.uBuffer!.length +
videoFrame.vBuffer!.length;
final Uint8List yuvBuffer = Uint8List(totalLength);
`
Expected results
Local preview screen change card
High CPU usage
Actual results
Local preview screen change card
High CPU usage
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[Paste your output here]
The text was updated successfully, but these errors were encountered: