Re: Making MS teams work on openbsd

2023-04-18 Thread Denis Fondras
Le Fri, Mar 31, 2023 at 03:42:48PM +0200, Divan Santana a écrit :
> 
> - if no audio, mute and unmute the tab
> 

Thank you for the tip, it solved my audio issue.
Unfortunately, I lost the mic in the battle :D

So back to Firefox for Teams despite the screen sharing problem.



Re: Making MS teams work on openbsd

2023-03-31 Thread Divan Santana
Divan Santana  writes:

> Greetings friends :)
>
> In short MS teams works via chrome on openbsd7.2 for me except for the
> camera.
>
> (The camera with webrtc works fine for other sites, just not teams)
>
> The screen share too works, but not the camera.  It detects the camera,
> but when you try switch it on, it remains black.
>
> Firefox has a range of other issues and various workarounds that work
> for some don't work on my testing.
>
> Anyway, I'm pretty sure a workaround to get teams video to work via
> chrome on openbsd is to create a virtual camera with a res up to 720p
> and make chrome use that (or buy another camera).  It seems anything
> higher, and teams has an issue with it.
>
> It's reported that on Linux one can do this via:
>
> ```
> apt install v4l2loopback-dkms
> modprobe v4l2loopback
>
> ffmpeg -f v4l2 -i /dev/video0 -vf format=yuv420p,scale=1280x720 -f v4l2 
> /dev/video1
> ```
>
> Would someone know the steps to do this on OpenBSD (if possible)?


Just an update on this (using teams on openbsd):

I finally have teams working close to perfect (or certainly good enough
- for now anyway) on openbsd 7.2.

Some problems and solutions to share with others.
(the problems are with ms teams, not openbsd, no doubt)

1) screensharing doesn't work in firefox (and firefox-esr).  Yes the
readme says disable pledge.  That still doesn't fix screensharing, but
does prevent it from crashing.
Besides screen sharing, I find the audio out, microphone to work without
issues.  The camera "just works" better with teams via firefox then
chrome, generally.

2) with teams via chrome, I find the audio doesn't always work.  I've
seen once that output.mute was set to 1.  Not sure how, but checking
that is good.  But the main issue I find consistently that the audio
doesn't work, until I mute the tab and then unmute the tab again.  Then
the sound works perfectly fine.  So generally for calls or meetings, I
just mute and unmute the tab to work around this.  Not too bad.  I
tested this on a fresh openbsd 7.3 system with chrome, but it had the
same issue.

3) Screensharing and the microphone seem to work reliably in chrome.

4) The camera in chrome is problematic.  If the camera works in other
webrtc systems like zoom, jitsi etc, doesn't mean it will work in teams.
I find, you need a low megapixel camera, then the camera works without
issues in teams.

I had a usb logitech C310.  Works perfectly everywhere except in teams.
A usb logitech C270 which has lower specs resolves the issue.

So in summary:

- use chrome for teams
- get a low res camera that works in openbsd
- if no audio, mute and unmute the tab



Re: Making MS teams work on openbsd

2023-01-21 Thread Divan Santana
>> Any workaround is better then nothing, painful or not.
>
> Perhaps doing up a package of Jami for BSDs would be a cleaner/better 
> option?
> I wouldn't pollute my harddrive with anything MS, quite frankly.
> For me, straightaway that would be a security issue, at the least.
>
> https://jami.net/

Look, I agree with you 1000%.  But sadly, the company I work for
requires it.  And most companies do.

As much as I'd love to work for a company that doesn't, they are very few
these days sadly.



Re: Making MS teams work on openbsd

2023-01-20 Thread Peter Hessler
On 2023 Jan 20 (Fri) at 19:20:10 +1100 (+1100), curmudg...@telaman.net.au wrote:
:Perhaps doing up a package of Jami for BSDs would be a cleaner/better option?

People don't _want_ to run MS Teams.  People _need_ to run MS Teams so
they can communicate with co-workers or partner companies.

Offering some random other service, won't actually help solve that
problem.


-- 
Keep emotionally active.  Cater to your favorite neurosis.



Re: Making MS teams work on openbsd

2023-01-20 Thread curmudgeon

On 2023-01-20 17:25, Divan Santana wrote:

Thomas Frohwein  writes:


On Wed, Jan 18, 2023 at 10:19:25PM +0200, Divan Santana wrote:

Greetings friends :)

In short MS teams works via chrome on openbsd7.2 for me except for 
the

camera.


I was on an MS Teams meeting a few weeks ago with camera working. The
main issue from my experience was the web client auto disconnecting
after a while.



I guess it's somewhat hardware based.



(The camera with webrtc works fine for other sites, just not teams)


The screen share too works, but not the camera.  It detects the 
camera,

but when you try switch it on, it remains black.


I've seen testing/preview camera output being just a black rectangle, 
but

it worked in the meeting itself.



Yeah for me, it's black in screen preview and when one goes into the
meeting it doesn't work immediately with something like

"Your camera stopped working" says teams...

Shortly after visiting teams I went to jitsi in the same chrome 
browser.


When I joined the meeting, my openbsd72 system froze with the fans
making lots of noise.  That also happens sometimes to me.

This is with export ENABLE_WASM=1 on.

My camera is via usb:

Jan 19 22:01:24 swift /bsd: uvideo0 at uhub1 port 9 configuration 1
interface 0 "Logitech Webcam C310" rev 2.00/0.12 addr 5

But generally the camera normally works in chrome at jitsi and other 
sites.



Creating a virtual camera with lower specs, may be worth a shot.

Any workaround is better then nothing, painful or not.


Perhaps doing up a package of Jami for BSDs would be a cleaner/better 
option?

I wouldn't pollute my harddrive with anything MS, quite frankly.
For me, straightaway that would be a security issue, at the least.

https://jami.net/

Cheers!



Re: Making MS teams work on openbsd

2023-01-19 Thread Divan Santana
Thomas Frohwein  writes:

> On Wed, Jan 18, 2023 at 10:19:25PM +0200, Divan Santana wrote:
>> Greetings friends :)
>> 
>> In short MS teams works via chrome on openbsd7.2 for me except for the
>> camera.
>
> I was on an MS Teams meeting a few weeks ago with camera working. The
> main issue from my experience was the web client auto disconnecting
> after a while.


I guess it's somewhat hardware based.


> (The camera with webrtc works fine for other sites, just not teams)
>> 
>> The screen share too works, but not the camera.  It detects the camera,
>> but when you try switch it on, it remains black.
>
> I've seen testing/preview camera output being just a black rectangle, but
> it worked in the meeting itself.


Yeah for me, it's black in screen preview and when one goes into the
meeting it doesn't work immediately with something like

"Your camera stopped working" says teams...

Shortly after visiting teams I went to jitsi in the same chrome browser.

When I joined the meeting, my openbsd72 system froze with the fans
making lots of noise.  That also happens sometimes to me.

This is with export ENABLE_WASM=1 on.

My camera is via usb:

Jan 19 22:01:24 swift /bsd: uvideo0 at uhub1 port 9 configuration 1 interface 0 
"Logitech Webcam C310" rev 2.00/0.12 addr 5

But generally the camera normally works in chrome at jitsi and other sites.


Creating a virtual camera with lower specs, may be worth a shot.

Any workaround is better then nothing, painful or not.

lol

I tried this with no luck:

cd /dev
doas ./MAKEDEV video2
chown ds video2
ffmpeg -f v4l2 -i /dev/video0 -vf format=yuv420p,scale=1280x720 -f v4l2 
/dev/video2

fails with

[video4linux2,v4l2 @ 0x9e663e36000] Unable to open V4L2 device '/dev/video2'
Could not write header for output file #0 (incorrect codec parameters ?): 
Device not configured
Error initializing output stream 0:0 --
Conversion failed!



Re: Making MS teams work on openbsd

2023-01-18 Thread Thomas Frohwein
On Wed, Jan 18, 2023 at 10:19:25PM +0200, Divan Santana wrote:
> Greetings friends :)
> 
> In short MS teams works via chrome on openbsd7.2 for me except for the
> camera.

I was on an MS Teams meeting a few weeks ago with camera working. The
main issue from my experience was the web client auto disconnecting
after a while.

> 
> (The camera with webrtc works fine for other sites, just not teams)
> 
> The screen share too works, but not the camera.  It detects the camera,
> but when you try switch it on, it remains black.

I've seen testing/preview camera output being just a black rectangle, but
it worked in the meeting itself.

I have package libv4l installed; not sure if that is involved.
Otherwise, would check that everything has been set up correctly -
correct permissions on /dev/video0 (rw), sysctl kern.video.record=1,
and chromium running with ENABLE_WASM=1 in the environment.

Do other browser-based video calls work? Can test for example with Zoom
here: https://zoom.us/test 

> Anyway, I'm pretty sure a workaround to get teams video to work via
> chrome on openbsd is to create a virtual camera with a res up to 720p
> and make chrome use that (or buy another camera).  It seems anything
> higher, and teams has an issue with it.

That seems like a painful workaround; check the above if that helps
narrow down the problem.



Making MS teams work on openbsd

2023-01-18 Thread Divan Santana
Greetings friends :)

In short MS teams works via chrome on openbsd7.2 for me except for the
camera.

(The camera with webrtc works fine for other sites, just not teams)

The screen share too works, but not the camera.  It detects the camera,
but when you try switch it on, it remains black.

Firefox has a range of other issues and various workarounds that work
for some don't work on my testing.

Anyway, I'm pretty sure a workaround to get teams video to work via
chrome on openbsd is to create a virtual camera with a res up to 720p
and make chrome use that (or buy another camera).  It seems anything
higher, and teams has an issue with it.

It's reported that on Linux one can do this via:

```
apt install v4l2loopback-dkms
modprobe v4l2loopback

ffmpeg -f v4l2 -i /dev/video0 -vf format=yuv420p,scale=1280x720 -f v4l2 
/dev/video1
```

Would someone know the steps to do this on OpenBSD (if possible)?