Multistream Help

111 views
Skip to first unread message

Jim O'Carroll

unread,
Dec 29, 2021, 3:15:05 PM12/29/21
to meetecho-janus
I have what I'd describe as a fairly rudimentary understanding of Janus, Have an application where I've successfully displayed 3 concurrent video streams in separate iframes. Streams originate from 3 cameras on a locally connected raspberry pi using Gstreamer. Streaming config file has 3 separate mountpoints e.g.  
h264-ExploreHD: {
        type = "rtp"
        id = 6
        description = "H.264 live stream coming from ExploreHD Camera"
        audio = false
        video = true
        videoport = 8006
        videopt = 126
        videortpmap = "H264/90000"
        videofmtp = "profile-level-id=42e01f;packetization-mode=1"
}
I have tried unsuccessfully to create a Multistream configuration with no success - expect I'm missing something obvious - not to me :-) I simply added a multistream section to the config file per below and used the multistream demo html/JS code. I did not change any of the core files. First and obvious problem is that the returned stream list does not contain the multistream test entry below. 

  1. {streaming: 'list', list: Array(6)}
    1. list: Array(6)
      1. 0: {id: 1, type: 'live', description: 'Opus/VP8 live stream coming from external source', metadata: 'You can use this metadata section to put any info you want!', enabled: true, …}
      2. 1: {id: 2, type: 'live', description: 'a-law file source (radio broadcast)', enabled: true}
      3. 2: {id: 3, type: 'on demand', description: 'mu-law file jim source (music)', enabled: true}
      4. 3: {id: 4, type: 'live', description: 'H.264 live stream coming from Blue Rov', enabled: true, video_age_ms: 15}
      5. 4: {id: 5, type: 'live', description: 'H.264 live stream coming from Pi Camera', enabled: true, video_age_ms: 20}
      6. 5: {id: 6, type: 'live', description: 'H.264 live stream coming from ExploreHD Camera', enabled: true, video_age_ms: 26}


Hoping for some guidance. Thanks.


multistream-test: {
        type = "rtp"
        id = 7
        description = "Multistream test (3 video)"
        metadata = "This is an example of a multistream mountpoint: you'll get $
        media = (
                {
                        type = "video"
                        mid = "v1"
                        label = "Blue Robotics"
                        port = 8004
                        pt = 126
                        rtpmap = "H264/90000"
                        fmtp = "profile-level-id=42e01f;packetization-mode=1"
                },
                {
                        type = "video"
                        mid = "v2"
                        label = "Pi Cam"
                        port = 8005
                        pt = 126
                        rtpmap = "H264/90000"
                        fmtp = "profile-level-id=42e01f;packetization-mode=1"
                },
                {
                        type = "video"
                        mid = "v3"
                        label = "Video stream #2"
                        port = 8006
                        pt = 126
                        rtpmap = "H264/90000"
                        fmtp = "profile-level-id=42e01f;packetization-mode=1"
                }
        )
        secret = "adminpwd"
}


trunki 3

unread,
Dec 30, 2021, 2:20:32 AM12/30/21
to meetecho-janus
Multistream its for videoroom plugin, not for straming plugin.

Lorenzo Miniero

unread,
Dec 30, 2021, 9:13:58 AM12/30/21
to meetecho-janus
Il giorno giovedì 30 dicembre 2021 alle 08:20:32 UTC+1 trunk...@gmail.com ha scritto:
Multistream its for videoroom plugin, not for straming plugin.


What?! Absolutely NOT! The Streaming plugin DOES support multistream! There's even a demo on the website for that!

L.

Lorenzo Miniero

unread,
Dec 30, 2021, 9:15:22 AM12/30/21
to meetecho-janus
This is the syntax for the multistream branch of Janus, is that what you're testing or did you install Janus master?

Lorenzo

Jim O'Carroll

unread,
Dec 30, 2021, 10:14:17 AM12/30/21
to meetecho-janus
Ciao Lorenzo
Thank you for the speedy response. I was trying it with Master and suspected that was the issue once I realized there was a separate multistream branch. Do you plan to merge these? 
J

Reply all
Reply to author
Forward
0 new messages