Videoroom plugin rtp_forward VLC

100 views
Skip to first unread message

Davide Caldelari

unread,
Mar 12, 2019, 3:00:18 AM3/12/19
to meetecho-janus
Hi,

I managed to set up the videoroom plugin with the rtp_forward feature in order to see the stream in VLC.

My question is very simple: is it normal that the stream I watch in VLC has a latency of 1-2 seconds compared to the original stream? Or maybe I'm doing something wrong?

Here's the command I use to forward rtp:


{       request" : "rtp_forward",
        "room" : 1234,
        "publisher_id" : xxxxxxxxxxx,
        "host" : "127.0.0.1",
        "audio_port" : 60000,        
        "audio_pt" : 111,
        "video_port" : 60002,
        "video_pt" : 100,
}

In VLC I use a sdp:

v=0 o=- 0 0 IN IP4 127.0.0.1
 
s=RTP Video
 
c=IN IP4 127.0.0.1
 
t=0 0
 
a=tool:libavformat 56.15.102
 
m=audio 60000 RTP/AVP 111
 
a=rtpmap:111 OPUS/48000/2
 
m=video 60002 RTP/AVP 100
 
a=rtpmap:100 VP8/90000
 
a=fmtp:100
 
packetization-mode=1

Thank you very much for any suggestion.
Davide

Амнон Исраэли

unread,
Mar 12, 2019, 5:19:55 AM3/12/19
to meetecho-janus
VLC has default input buffer as I remember

вторник, 12 марта 2019 г., 9:00:18 UTC+2 пользователь Davide Caldelari написал:

Mateusz Starzak

unread,
Mar 12, 2019, 6:55:56 AM3/12/19
to meetecho-janus
VLC has a lot of internal buffers so it's not really designed for realtime decoding and playback. For lowest latency video try switching to mpv with --untimed option.

Matt
Reply all
Reply to author
Forward
0 new messages