have created a library for simplifing the use of kurento-client I recommend you to take a look lib-kurento
The PlayerEndpoint example
This is a Node.js
example which creates a PlayerEndpoint
to WebRtcEndpoint
pipeline in Kurento
media server.
In this example a RTSP-H.264
stream generates by VLC
is transmitted to Kureto
(which is deployed on Ubuntu 14.04 virtual machine) which trancodes to VP8
and transmitted
to a simple web page in WebRTC.
stream desktop using:
:sout=#transcode{vcodec=h264,scale=Auto,width=1920,height=1080,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/v.sdp} :sout-keep
Watch Out! - using :file-caching
lower than 1000ms may cause image smearing and key-frame lose.
-
Go to
media
->stream...
-
Then on
Capture Device
tab -> edit "Capture mode toDesktop
and "Frame Rate" to 25 (any other framerate will be fine) and then clicknext
:
- Then on
Stream outpurt/Source
clicknext
:
- Then on
Stream output/Destination Setup
-> edit "New destination" toRTSP
, then clickAdd
:
- Then edit "Destination Path" to
desktop.sdp
(any other path will be fine):
- Then on "Transcoding options" click
next
and thenstream
- async
- express
- express-session
- ws
- kurento-client