Qtox: Flatpak: qTox can't find my webcam

Created on 31 May 2018  路  7Comments  路  Source: qTox/qTox

Brief Description

OS:
Linux 4.16.0-1-amd64 #1 SMP Debian 4.16.5-1 (2018-04-29) x86_64 GNU/Linux
(Debian testing with lxqt)
qTox version:
You are using qTox version v1.15.0.
Commit hash:
Commit hash: 02d6c63acaac0ae95fa8be3a1b9301657e6a4a94
toxcore:
toxcore version: 0.2.2
Qt:
Qt version: 5.10.1
Hardware:
see v4l2-ctl.log

Reproducible: Always

Steps to reproduce
  1. Have a webcam
  2. Install qtox flatpak and open it.
  3. Try to open the webcam
Observed Behavior

No video capturing device is found

Additional Info

Did play around with various flatpak options and looked in .json files of other flatpaks like skype (where the webcam works), but could find nothing do solve the problem, and we have already "--device=all" set in our .json file.
Maybe it has something to do "PipeWire", but I don't really know what that is.

qtox.log
v4l2-ctl.log

M-packaging M-video

Most helpful comment

I'm working on a fix for this.

All 7 comments

Can confirm on openSUSE Tumbleweed. No idea what's causing this, theoretically if qTox has access to the videodevice it should be able to do video right?

EDIT: works normally without flatpak. Maybe the ffmpeg-flatpak we're building with is not a normal ffmpeg?

ffmpeg needs to have the libv4l2 option enabled in it to be usable with webcams: --enable-libv4l2.

I think we can just take the ffmpeg build instructions from https://github.com/flathub/org.freedesktop.Platform.ffmpeg/blob/master/org.freedesktop.Platform.ffmpeg.json and enable only the needed stuff like in https://github.com/qTox/qTox/blob/master/windows/cross-compile/build.sh#L455

Does anybody see problems with this approach?

If we already do that, why not?

I'm working on a fix for this.

qtox.flatpak.zip

The attached file should fix this problem, can someone please test it?

Should be fixed with the newest version

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akhilman picture akhilman  路  7Comments

Tcll picture Tcll  路  3Comments

ghost picture ghost  路  3Comments

anthonybilinski picture anthonybilinski  路  6Comments

Hasshu picture Hasshu  路  5Comments