Low quality in OBS screenshare

291 views
Skip to first unread message

Dharmendra Sinsinwar

unread,
Sep 25, 2023, 9:44:17 AM9/25/23
to BigBlueButton-dev
Screenshot of fullscreen in bigbluebutton
Screenshot (37).png


Screenshot of fullscreen in OBS 
Screenshot (38).png

I used virtual camera in OBS.

file : "/usr/local/bigbluebutton/core/scripts/presentation.yml" 
video_output_width: 640
video_output_height: 480
video_output_framerate: 15
# Alternate output size to use when deskshare videos are present
# Set higher so that deskshare output is higher quality, but uses more space.
deskshare_output_width: 1280
deskshare_output_height: 720
deskshare_output_framerate: 15
# offset applied to audio in the output video file
# audio_offset = 1200 means that the audio will be delayed by 1200ms
audio_offset: 0
include_deskshare: true
 
# For PRODUCTION
publish_dir: /var/bigbluebutton/published/presentation
video_formats:
- webm
- mp4

# For DEVELOPMENT
#publish_dir: /home/ubuntu/temp/published/presentation


file: "/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml"

screenshare:
295       # Whether volume control should be allowed if screen sharing has audio
296       enableVolumeControl: true
297       # Experimental. True is the canonical behavior. Flip to false to reverse
298       # the negotiation flow for subscribers.
299       subscriberOffering: false
300       # Experimental. Server wide configuration to choose which bbb-webrtc-sfu
301       # media server adapter should be used for screen sharing.
302       # Default is undefined, which means the default setting in bbb-webrtc-sfu
303       # prevails (screenshareMediaServer).
304       #mediaServer: Kurento
305       bitrate: 1500
306       mediaTimeouts:
307         maxConnectionAttempts: 2
308         # Base screen media timeout (send|recv) - first connections
309         baseTimeout: 20000
310         # Base screen media timeout (send|recv) - re-connections
311         baseReconnectionTimeout: 8000
312         # Max timeout: used as the max camera subscribe connection timeout. Each
313         # subscribe reattempt increases the reconnection timer up to this
314         maxTimeout: 25000
315         timeoutIncreaseFactor: 1.5
316       constraints:
317         video:
318           frameRate:
319             ideal: 20
320             max: 20
321           width:
322             max: 2560
323           height:
324             max: 1600
325         audio: true




# sudo bbb-conf --check

BigBlueButton Server 2.6.5 (1162)
                    Kernel version: 5.15.0-1047-azure
                      Distribution: Ubuntu 20.04.6 LTS (64-bit)
                            Memory: 16374 MB
                         CPU cores: 4

/etc/bigbluebutton/bbb-web.properties (override for bbb-web)
/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties (bbb-web)
       bigbluebutton.web.serverURL: https://byokulstream.northeurope.cloudapp.azure.com
                defaultGuestPolicy: ALWAYS_ACCEPT
              defaultMeetingLayout: CUSTOM_LAYOUT

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server_name: byokulstream.northeurope.cloudapp.azure.com
                              port: 80, [::]:80127.0.0.1:82 http2 proxy_protocol, [::1]:82 http2127.0.0.1:81 proxy_protocol, [::1]:81

/opt/freeswitch/etc/freeswitch/vars.xml (FreeSWITCH)
                       local_ip_v4: 10.1.0.4
                   external_rtp_ip: 4.231.172.177
                   external_sip_ip: 4.231.172.177

/opt/freeswitch/etc/freeswitch/sip_profiles/external.xml (FreeSWITCH)
                        ext-rtp-ip: $${external_rtp_ip}
                        ext-sip-ip: $${external_sip_ip}
                        ws-binding: 4.231.172.177:5066
                       wss-binding: 4.231.172.177:7443

UDP port ranges

                        FreeSWITCH: 16384-24576
                           kurento: 24577-32768
                    bbb-webrtc-sfu: 24577-32768

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback_host: 10.1.0.4
                 playback_protocol: http
                            ffmpeg: 4.2.7-0ubuntu0.1

/usr/share/bigbluebutton/nginx/sip.nginx (sip.nginx)
                        proxy_pass: 4.231.172.177
                          protocol: https

/usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml (bbb-webrtc-sfu)
/etc/bigbluebutton/bbb-webrtc-sfu/production.yml (bbb-webrtc-sfu - override)
    mediasoup.webrtc.*.announcedIp: 4.231.172.177
  mediasoup.plainRtp.*.announcedIp: 4.231.172.177
                        kurento.ip: 4.231.172.177
                       kurento.url: ws://127.0.0.1:8888/kurento
                 freeswitch.sip_ip: 4.231.172.177
               recordScreenSharing: true
                     recordWebcams: true
                  codec_video_main: VP8
               codec_video_content: VP8

/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml (HTML5 client)
/etc/bigbluebutton/bbb-html5.yml (HTML5 client config override)
                             build: HTML5_CLIENT_VERSION
                        kurentoUrl: wss://byokulstream.northeurope.cloudapp.azure.com/bbb-webrtc-sfu
            defaultFullAudioBridge: sipjs
           defaultListenOnlyBridge: fullaudio
                    sipjsHackViaWs: false

Jean Pluzo

unread,
Sep 26, 2023, 6:24:06 AM9/26/23
to BigBlueButton-dev
Hi,

yes, the quality is lower in BBB compared to other solutions (OBS) since the video stream needs to be sent over the internet.
Your problem being? Please specify.

Regards,
J.

Dharmendra Sinsinwar

unread,
Sep 26, 2023, 8:14:41 AM9/26/23
to BigBlueButton-dev
obs.PNG


So, when selecting the OBS virtual camera and making the screen full,
the view that I got is shown below. I don't think it's from the OBS side because it's preview is crystal clear.


Screenshot (42).png

Jean Pluzo

unread,
Sep 26, 2023, 8:41:28 AM9/26/23
to BigBlueButton-dev
Hi,

again, this is normal for BBB. What is the problem?
- Need higher resolution?
- Need to debug OBS?
- Need lower resolution from OBS?
Please specify your problem.
Also, you're using an older version of BBB. It would help if you can upgrade to the latest version (2.6.14 or 2.7.1)

Regards,
J.

Dharmendra Sinsinwar

unread,
Sep 26, 2023, 10:09:45 AM9/26/23
to BigBlueButton-dev
I apologize for misinterpreting your words, I need higher resolution in BBB from OBS.

Thanks

Chao Chen

unread,
Sep 27, 2023, 1:42:15 AM9/27/23
to BigBlueButton-dev
Have you tried H264 encoding? It seems clearer than VP8.

Dharmendra Sinsinwar

unread,
Sep 27, 2023, 2:43:33 AM9/27/23
to BigBlueButton-dev
Thanks, Let me try.

One thing, I am curious about is that the virtual camera that I am sharing from the OBS, does this comes under the Camera settings or Screenshare settings in bigbluebutton

Dharmendra Sinsinwar

unread,
Oct 3, 2023, 2:45:01 AM10/3/23
to BigBlueButton-dev
I tried the H264 encoding, yet it shows the same quality

Fred Dixon

unread,
Oct 3, 2023, 7:57:38 AM10/3/23
to bigblueb...@googlegroups.com
There is a setting in 

  /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml

For enabling a "full HD camera" for when you are sharing content as a webcam stream. This choice is hidden by default.

      - id: fhd
        name: Camera as content
        hidden: true
        default: false
        bitrate: 1500
        constraints:
          width: 1920
          height: 1080


Try setting `hidden: false` an see if using this camera with OBS achieves a better result.

Regards,... Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/f36da368-02b6-42ef-bc59-aa44901a4ae2n%40googlegroups.com.


--
Co-founder BigBlueButton

Like BigBlueButton?  Tweet us at @bigbluebutton

Dharmendra Sinsinwar

unread,
Oct 4, 2023, 6:48:55 AM10/4/23
to BigBlueButton-dev
Thanks, 
I guess this feature is not available in 2.6.x version of bbb.
However I added that( in 2.6.x) , and I think it worked, on the other hand it works perfectly only when the screen is in full size in bbb

Dharmendra Sinsinwar

unread,
Oct 26, 2023, 1:49:47 AM10/26/23
to BigBlueButton-dev

Morning Dear Friends,

Regarding the above query, I tried it with Cam with OBS and Screenshare, in both the scenarios the if I maximize the screen itself, then it maintains the quality in the final single video(bbb-playback-video, mp4), however not when the screen size is in normal size.

Screenshot (46).png


In the above screenshot, both the Cam and Screenshare are in normal view, so when the single video is created the text is not legible.
Although, when I maximize the screenshot, it is quite legible, in the single video(m4).

Dharmendra Sinsinwar

unread,
Dec 1, 2023, 8:51:42 AM12/1/23
to BigBlueButton-dev
Hello all,
               I talked to some of the people on Github related to the above issue and they also verified this behavior on the newer version 2.7.x.
               This also reflects, when I create the single meeting video using " bbb-playback-video".  https://byokulstorage.blob.core.windows.net/posts/842f4fbe-3ba2-4918-9cbd-576d6611408dvideo-0.m4v

If you have some time, your help would be invaluable.

Dharmendra Sinsinwar

unread,
Dec 2, 2023, 2:12:31 AM12/2/23
to BigBlueButton-dev
Hello Fred,

Thanks and I would like to mentioned that works for me..!!! But there is still once scenario when I was tried it  on extra large button in BBB then it worked but  on normal screen size we still have the issue. So would like to understand if there are other settings I have to manage. Let me know, Thanks in advance.

On Tuesday, 3 October 2023 at 17:27:38 UTC+5:30 Fred Dixon wrote:
Reply all
Reply to author
Forward
0 new messages