Is H264 supported in webrtcbin?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is H264 supported in webrtcbin?

Bin Zhu
Hello,

Is H264 encoding supported in webrtcbin? if it's supported, is there any example code to create the pipeline?  

Thanks
Bin

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is H264 supported in webrtcbin?

Mathieu Duponchelle
Hello,

If by "H264 encoding" you mean whether webrtcbin supports negotiating and transporting H264 then yes, absolutely, webrtcbin supports that.

You can take a look at tests/examples/webrtc/webrtc.c in gst-plugins-bad and adapt it to produce H264.

If you mean to ask whether webrtcbin can perform the encoding itself, by selecting and plugging in encoders for example, then no, by design webrtcbin expects to receive already encoded and payloaded streams.

Hoping that answers your question,

--
Mathieu Duponchelle · https://www.centricular.com


On 06/21/2018 06:07 PM, Bin Zhu wrote:
Hello,

Is H264 encoding supported in webrtcbin? if it's supported, is there any example code to create the pipeline?  

Thanks
Bin


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is H264 supported in webrtcbin?

Jan Schmidt-6
In reply to this post by Bin Zhu
Hi,

On 22/06/18 02:07, Bin Zhu wrote:
> Hello,
>
> Is H264 encoding supported in webrtcbin? if it's supported, is there
> any example code to create the pipeline? 
I put an example of streaming H264 from a raspberry pi camera into the
rpicamsrc examples recently:

https://github.com/thaytan/gst-rpicamsrc/tree/master/examples

It works OK with safari and chrome in my testing, but can be hit and
miss with firefox depending on the version

Cheers,
Jan.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel