How to obtain original encoded data buffer from VideoSink?

47 views
Skip to first unread message

Felipe Lima

unread,
Sep 19, 2017, 10:57:42 PM9/19/17
to discuss-webrtc
Hello everyone,

I'm using the WebRTC Android bindings to capture the VP8 stream via a VideoSink. 
I'm able to see the VideoFrame objects coming in. 

I'm trying to find a way to write/stream the encoded VP8 frames to a WebM file 
(or preferably a stream) using libwebm.

I see the VideoFrame.Buffer objects are of type WrappedNativeI420Buffer.

How can I obtain the original VP8 encoded data buffer instead of the i420 buffer that
I'm getting from the VideoFrame.Buffer object? If that's not possible, how can I then
convert from i420 back to the original encoded format so I can pass into the WebM 
writer?

I've been stuck on this for a few days now, so any help/pointers would be greatly
appreciated.

Thanks!

ravi3...@gmail.com

unread,
Mar 17, 2019, 5:07:02 AM3/17/19
to discuss-webrtc
Did u get the solution 
Reply all
Reply to author
Forward
0 new messages