PSA: cricket::VideoFrame is dead, long live webrtc::VideoFrame!

492 views
Skip to first unread message

Niels Moller

unread,
Oct 19, 2016, 4:34:54 AM10/19/16
to discuss...@googlegroups.com
On Fri, Aug 19, 2016 at 10:12 AM, Niels Moller <ni...@webrtc.org> wrote:

The following classes are likely to be deleted:

   cricket::VideoFrame
   cricket::WebRtcVideoFrame
   cricket::CapturedFrame
   cricket::VideoFrameFactory
   cricket::WebRtcVideoFrameFactory

As of cl  https://codereview.webrtc.org/2411953002/, all these are now gone.

For backwards compatibility, the header files webrtc/media/base/videoframe.h and webrtc/media/engine/webrtcvideoframe.h still exist, and they define the corresponding classes to be aliases for webrtc::VideoFrame. Eventually, they will be deleted too.

Regards,
/Niels

radioman . lt

unread,
Oct 20, 2016, 4:26:21 PM10/20/16
to discuss-webrtc
hip hip! ;}

Rob Agar

unread,
Oct 21, 2016, 6:56:15 AM10/21/16
to discuss-webrtc
hooray!

Idan Beck

unread,
Dec 14, 2017, 2:28:16 PM12/14/17
to discuss-webrtc
If these have been removed, what's the new approach to submit frames into a custom video capturer? 

Niels Moller

unread,
Dec 18, 2017, 4:54:46 AM12/18/17
to discuss...@googlegroups.com
On Thu, Dec 14, 2017 at 8:28 PM, Idan Beck <idan...@gmail.com> wrote:
> If these have been removed, what's the new approach to submit frames into a
> custom video capturer?

The current way of doing a custom video capturer (or any other type of
video source) is to implement VideoTrackSourceInterface, declared in
api/mediastreaminterface.h.

If you want video adaptation, you may also want to have a look at the
AdaptedVideoTrackSource class, see
media/base/adaptedvideotracksource.h.

Regards,
/Niels

Idan Beck

unread,
Dec 18, 2017, 12:01:46 PM12/18/17
to discuss...@googlegroups.com
Thanks Niels - I was doing this prior, but was using the CaputeredVideoFrame

Our input data is in RGBA (coming out of an OpenGL texture) so I had a bit of work to figure out how to get it into an I420Buffer but looking through some of the unit testing code I found it and it's back up to snuff. 

Thanks for the support, really appreciate it! 

Best,
Idan



--


---

You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/k06BGD4gGOM/unsubscribe.

To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAAO0x16k%3D95P%3DzoS2E90%2BG74vy%3Dt26atHSR_YJmmLWtPhd2FCg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


Niels Moller

unread,
Jan 9, 2018, 6:29:31 AM1/9/18
to discuss...@googlegroups.com
On Mon, Dec 18, 2017 at 6:01 PM, Idan Beck <idan...@gmail.com> wrote:
Thanks Niels - I was doing this prior, but was using the CaputeredVideoFrame

Our input data is in RGBA (coming out of an OpenGL texture) so I had a bit of work to figure out how to get it into an I420Buffer but looking through some of the unit testing code I found it and it's back up to snuff. 

Reply all
Reply to author
Forward
0 new messages