Feed Android webrtc with NV12 instead of I420

96 views
Skip to first unread message

Neil Young

unread,
Sep 1, 2022, 3:48:10 AM9/1/22
to discuss-webrtc
Hi,

Up to now I was only using pre-built versions of the Android webrtc stack. Now I was able to compile the latest version from scratch. 

From this issue  
https://monorail-prod.appspot.com/p/chromium/issues/detail?id=1134165 I believe to have learned that meanwhile it seems to be possible to feed the Google stack with NV12 directly.

Up to now, in my application, I was always doing the NV12 -> I420 conversion manually, before feeding the I420 frame to the Google stack:

VideoFrame frame = new VideoFrame(yuvFrameBuffer, 0, SystemClock.elapsedRealtimeNanos());

Could somebody please shed some light, how this has to be done "nowadays", if the yuvFrameBuffer is in NV12 format?

Thanks in advance

Reply all
Reply to author
Forward
0 new messages