How can I install WebRTCSink on Ubuntu 22.04
GST Developer
gstreamer at gallery.co.uk
Tue Jul 4 14:07:34 UTC 2023
Thanks Mathieu.
I had been working through the documentation, but the links to the signalling server and the API, from this section of the documentation you linked to, at https://gstreamer.freedesktop.org/documentation/rswebrtc/index.html are returning a 404 error.
rswebrtc
(from gst-plugin-webrtc)
All-batteries included GStreamer WebRTC producer and consumer, that try their best to do The Right Thing™.
It also provides a flexible and all-purposes WebRTC signalling server (gst-webrtc-signalling-server <https://gstreamer.freedesktop.org/documentation/signalling/src/bin/server.rs>) and a Javascript API (gstwebrtc-api <https://gstreamer.freedesktop.org/documentation/gstwebrtc-api>) to produce and consume compatible WebRTC streams from a web browser.
also, as referenced later in the documentation.
I suspect I will need to build or install this signalling server in order to proceed.
Many thanks again for your help, which is most appreciated :-)
> On 4 Jul 2023, at 13:46, Mathieu Duponchelle <mathieu at centricular.com> wrote:
>
> These pipelines are simply incorrect, why don't you just read the
> documentation that is provided?
>
> https://gstreamer.freedesktop.org/documentation/rswebrtc/index.html?gi-language=c#usage
>
>
> On Tue, 2023-07-04 at 13:37 +0100, GST Developer via gstreamer-devel
> wrote:
>> Many Thanks Matthieu !!!
>>
>> Using ubuntu 22,04LTS, it takes a few quirks, such as not installing
>> meson with apt (since that gets 0.61.2 which causes an error later),
>> instead using
>> pip3 install --user meson==0.62.0
>> and later maybe editing a few files to stop hard coded links to
>> /usr/bin/meson from failing ‘;
>> Perhaps a few other tweaks, sorry I have done so many i dont have a
>> list
>> Then finally adding the path using export GST_PLUGIN_PATH
>>
>> Finally, webrtcsink is available in gst-inspect-1.0 !!
>>
>> However, I try an example found online:
>> gst-launch-1.0 videotestsrc ! video/x-
>> raw,width=1024,height=768,framerate=30/1 ! timeoverlay ! x264enc !
>> rtph264pay config-interval=1 pt=96 ! webrtcsink
>> and I get an error:
>> WARNING: erroneous pipeline: could not link rtph264pay0 to
>> rswebrtcsink0
>>
>> realistically I guess really I want something more like this example
>> I found which seems to have some addressing info :
>> gst-launch-1.0 -v videotestsrc ! video/x-raw,width=640,height=480 !
>> x264enc ! rtph264pay ! application/x-rtp,media=video,encoding-
>> name=H264,payload=96 ! rswebrtcsink uri=ws://localhost:8080/stream
>> but this uses something called “rswebrtcsink”….which doesnt exist...
>>
>> Ultimately what I would like is to run a gstreamer pipeline which
>> ends in a webrtcsink, so I can connect a browser directly, ideally
>> with the webrtcsink providing the encoding, the signalling,
>> everything needed to get the picture into the browser. Perhaps I
>> misunderstand the capabilities, but the various data I can find
>> suggests this is possible.
>>
>> Could you advise a simple syntax to send a test audio and video
>> stream to a browser using webrtcsink ?
>>
>> Many, many thanks for your help.
>>
>>
>>
>>> On 4 Jul 2023, at 11:50, Mathieu Duponchelle
>>> <mathieu at centricular.com> wrote:
>>>
>>> Compiling the webrtc crate after compiling gstreamer from source
>>> and
>>> entering the uninstalled environment should work, if you encounter
>>> issues please file them on gitlab with steps to reproduce.
>>>
>>> As for installing GStreamer with webrtcsink included, I don't know
>>> if
>>> distributions actually package gst-plugins-rs to be honest :)
>>>
>>> On Mon, 2023-07-03 at 18:25 +0100, GST Developer via gstreamer-
>>> devel
>>> wrote:
>>>> Hi Folks.
>>>>
>>>> I am attempting to use WebRTCSink on Ubuntu 22.04 LTS, but
>>>> despite 2
>>>> days trial and error I have yet to find any way to install it.
>>>>
>>>> I have tried following guidance for installation of all the plug
>>>> in
>>>> groups via apt install, and also compiling gstreamer from source,
>>>> but
>>>> whilst I can use webrtcbin, none of my attempts have yet found
>>>> webrtcsink to be available.
>>>>
>>>> I also went down the root of trying to compile
>>>> from
>>>> https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/tree/m
>>>> ain/net/webrtc
>>>> but this tends to get hung up on now having the correct version
>>>> of
>>>> various gstreamer or other components.
>>>>
>>>> Is there a simple way to install GStreamer with WebRTCSink
>>>> included ?
>>>>
>>>> Many thanks for any clues !
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230704/78a17cd1/attachment-0001.htm>
More information about the gstreamer-devel
mailing list