flathub / net.jami.Jami

https://flathub.org/apps/details/net.jami.Jami
GNU General Public License v3.0
7 stars 7 forks source link

Jami flatpak do not make video communications on my system ! #4

Closed Nokia808 closed 3 years ago

Nokia808 commented 5 years ago

Hi. I tested current Jami flatpak on my Fedora 28 X64 Cinnamon edition. As title said, I'm currently not able to make or received neither audio, video nor even I.M messages ! I can not send nor receive any of them ! Only I can ringing on other & they can ringing me ! Please your kind fix for that.

Nokia808 commented 5 years ago

Is there is some informations that can I supply you to help to fix this ? Is you still intended in make Jami available as flatpak or this failed ? Please inform me so as to remove Jami from my system if no hope to make it work as faltpak

Best.

ntninja commented 5 years ago

@Nokia808: Well, if you could adopt a more sober tone of voice that would be hopeful honestly. Particularly your first message didn't really leave me with a desire to write any response. Also I'm not working full time on this and I have other things to do as well.

Regarding the points you mentioned: I did test IM and it worked. Video is broken because you cannot even select a video device to use (shm doesn't work for some reason). Audio I did not test yet. So yes, the package is work in progress.

At the moment I'm stuck at this build error, which blocks updating to GNOME 3.32: https://flathub.org/builds/#/builders/32/builds/2360 The other issues will likely have to wait until whatever causes this is resolved, but any ideas would be appreciated as I cannot reproduce this on my system. :confused:

PS: Sorry for the harsh tone of mine, but it had to be said.

Nokia808 commented 5 years ago

@alexander255

I'm who have to say sorry for you not you to say sorry for me ! Please accept my apologize from my harshness in my 1st message in this issue. I will edit title & contents to be soft.

Take your time as convenient to you.

Sorry again.

Nokia808 commented 5 years ago

Hi. Is there any hope to continue update & fix of this package ?

Nokia808 commented 4 years ago

Hi. With the current new version on FlatHub, only IM messages possible while both audio & video calls are impossible ! For that I will change the title of this thread.

ntninja commented 4 years ago

@Nokia808: Audio calls should also work in latest version – codec support for video calls has been prepared, but camera detection (UDev) and video recording (SHM) are both broken. Please test!

Nokia808 commented 4 years ago

@alexander255 Excellent work ! It is working ! I will change title now to be restricted only for video. Now Jami really usable as flatpak ! Many thanks for your hard work !

Nokia808 commented 4 years ago

@alexander255 Hi. Any progression regarding video chat fix ?

eyecreate commented 4 years ago

Perhaps it is being blocked by flatpak sandbox? A number of other flatpak apps that use camera also seems to use

--device=all

in finish-args.

ntninja commented 4 years ago

@eyecreate: It's nothing that simple. There is some problem with how jami-daemon/ringd tries to set up a shared memory session with the jami-gnome frontend. I have not spent much time debugging and I have other priorities right now, so please don't expect a fix from me anytime soon.

Contributors/Maintainers welcome!

kingemir commented 4 years ago

@alexander255 for your interest: I linked to your previous comment here: https://git.jami.net/savoirfairelinux/ring-client-gnome/issues/1149#note_18522

Nokia808 commented 4 years ago

@alexander255 Is there any progression in this issue ? The person who gave PR for updating Jami, can help ?

ntninja commented 4 years ago

@Nokia808: Not from my side, no. As for “the person who gave PR”, I don't know if they are interested, but we could just ask them. :wink:

@ravvle: Are you interested in taking a closer at this package and try to figure why video doesn't work? Some person here would be very happy if you did – but don't feel compelled to anything, I totally understand if you decline :grin:.

Nokia808 commented 4 years ago

@alexander255 @ravvle Hi dears. I thing I discovered something very related to this issue & may lead you to fix it ! I'm not sure but please see these posts:

https://github.com/flathub/io.github.qtox.qTox/issues/15 & https://github.com/qTox/qTox/issues/6059

It seem that error is related to a run time (ffmpeg-full run time) - see last 2 comments in the above link by @marcecj & @sudden6

Best.

ravvle commented 4 years ago

I've had a bit of a look, jami isn't using the freedesktop ffmpeg that they're talking about, it looks like it's built as part of the main build of the jami daemon. It also looks jami is already being built with '--enable-indev=v4l2" which is the flag that the qtox people were saying they needed for cameras to work.

From what I can see of the code history it looks like this flatpak used to use the freedesktop one and switching to building it natively is what fixed the issue of no audio. I've tried messing around with the build some more but I can't figure out how to get the camera to work :(

Nokia808 commented 4 years ago

@ravvle Hi. I detected that the developers of freedesktop marked the issue opened by "Alexander Schlarb" as linked to milestone 20.08 - see at the inferior of: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/941

ntninja commented 4 years ago

For some background: The reason I've switched to using a custom FFMPEG build was because the FFMPEG in the runtime lacks RTP/SRTP protocol support which is the media protocol used in SIP and also used by peer-to-peer media sessions in Jami.

FuchtelJockel commented 3 years ago

Please update and test again.

Nokia808 commented 3 years ago

@FuchtelJockel Hi. It does not work on my system, but there is a hope for that !

I re-install Jami flatpak package from scratch since I was loss any hope in this flatpak. The package crash on my system when try to activate camera whether by video call or from "setting" > media. In both cases the camera laptop LED switched on for sec then application crashed !

Is there a hope to fix this finally ?

My system is: Lenovo ThinkPad e550 with Fedora Linux 32 X64 bit Cinnamon edition. specifications of my hardware are: Intel core i7 5500 CPU @ 2.40 GH X 2, RAM = 8 GB, HHD = 1 TB, Hybrid VGA (Intel Corporation HD Graphic 5500 + Radeon R7 M265 2GB)

Nokia808 commented 3 years ago

@FuchtelJockel Hi. I attached log that obtained from run Jami from within terminal. I masked certain value that I suspected them as confidential (& I'm not sure) by xxxxxxxxxxxxxxxx. Also, I hide my user name by "myusername".

Also, the system show me a system notification after Jami crashing when I used to "setting" > "media". The Jami crashed & the following system notification: "bwrap --args 35 jami-gnome" jami-log.txt

FuchtelJockel commented 3 years ago

Log is cut off nothing seems wrong, maybe try to disable hw-decoding? Have you tried creating a new user with fresh settings? Settings are under ~/.var/app/net.jami.Jami/

Nokia808 commented 3 years ago

@FuchtelJockel What you mean by "new user" ? Do you mean creating new Jami ID (account) ?

Nokia808 commented 3 years ago

@FuchtelJockel I created, just few minutes ago, new Jami ID & test it but I got the same error ! Camera is impossible to be utilized !

FuchtelJockel commented 3 years ago

You can create a local user without creating a Jami ID. You have to uncheck register user and click next. The camera gets detected correctly in your logs but encoding the video stream crashes it or something (log is cut off). Have you tried it without hardware decoding?

To do this edit ~/.var/app/net.jami.Jami/config/jami/dring.yml and change these lines: from

  decodingAccelerated: true
  encodingAccelerated: true

to

  decodingAccelerated: false
  encodingAccelerated: false

and try again.

Nokia808 commented 3 years ago

@FuchtelJockel Hi. Very very surprising result !!! 1st of all, I opened file ~/.var/app/net.jami.Jami/config/jami/dring.yml to see it. And I saw the following:

decodingAccelerated: true encodingAccelerated: false

So, BY DEFAULT one of them was not set at "true" (the encodingAccelerated) !! I edit file so that BOTH of them became "false", then I tried again, but it end with same crashing .....

At this point I behaved from myself & set the 2 line at "true", then tried again. It working very okay & camera worked both by "setting" > "media" & by making video calls & also by receiving video calls !!

So, the error is that BY DEFAULT account set at "encodingAccelerated: false" !!!

Kindly, review your patch. It seem that you made it very excellent on your machine, but making a mistake when implement it to flatpak !!

Nokia808 commented 3 years ago

By the way, I'm already creating Jami account with "Register user" option disabled ! Is this of role here ?

FuchtelJockel commented 3 years ago

By the way, I'm already creating Jami account with "Register user" option disabled ! Is this of role here?

No

but making a mistake when implement it to flatpak

I have no control over these files because Jami creates them.

So, BY DEFAULT one of them was not set at "true" (the encodingAccelerated) !! I edit file so that BOTH of them became "false", then I tried again, but it end with same crashing .....

At this point I behaved from myself & set the 2 line at "true", then tried again. It working very okay & camera worked both by "setting" > "media" & by making video calls & also by receiving video calls !!

This is very bizarre, I can't explain this.

Nokia808 commented 3 years ago

@FuchtelJockel All what can I said is that the official .rpm package from official Jami site that created for Fedora 32, do not behave in such bizarre way ! I would like to suggest on you to discuss this with them on their repository. Unfortunately, I'm not programmer & can not help too much.

However, this issue is solved in principle & I get relief for ever from repeated add/delete of .rpm official package repository that it is not well maintained from side of creation in suitable time for each new release of Fedora Linux after it's release & subsequent possible interference with system upgrade. For example, Fedora 33 has been released since more than month but still no official package available to it.

For all that you did very well & I would like to say thank you very much for your kind efforts.

I'm not sure now, if we I have to close this ticket or not. Feel free to close it if you see this relevant.