-
Notifications
You must be signed in to change notification settings - Fork 6
Testing
Use Echobot for testing audio and video. If you start a voice/video call with Echobot, it will echo back all audio & video you send it with a 1-2 second delay. Echobot's ID: 76518406F6A9F2217E8DC487CC783C25CC16A15EB36FF32E335A235342C48A39218F515C39A6
When writing a bug report about something wrong with camera, include this info:
lsusb
lsusb -s 1:6 -v # Replace 1:6 by the correct bus/devnum of the webcam if necessary
v4l2-ctl --list-devices
v4l2-ctl --list-formats-ext
ffmpeg -f v4l2 -list_formats all -i /dev/video0
Download, compile & install v4l2loopback (Debian/Ubuntu/Mint: aptitude install v4l2loopback-dkms).
modprobe v4l2loopback max_width=800 max_height=600
ffmpeg -loop 1 -y -i testfile_800x600.png -f v4l2 /dev/video0
If you're using cam under Linux, you may be interested in trying different kernel versions - there already has been a case where changing kernel 3.16 → 4.2 fixed problem with qTox freezing.
Resource: https://wiki.winehq.org/Regression_Testing#Running_the_Bisection
I've based steps below on assumption that one did read link above ↑, even though it's not about qTox.
Differences and general tips.
- Provided that you have needed dependencies all that you need to compile qTox is:
$ qmake && make
It ↑ will create qtox
binary in your qTox directory. You may want to use more than 1 core when compiling, e.g. to use 4 threads:
$ qmake && make -j4
- For compiling with
ccache
, you'll need to have it properly installed, sowhich g++
reports forccache
binary or just addQMAKE_CXX="ccache g++"
to yourqmake
command, i.e.:
$ qmake QMAKE_CXX="ccache g++"
- Before issuing
git bisect
good
/bad
, you should clear changed files. It will remove also compiled binary:
$ make clean && git checkout -f
- To prevent damaging your Tox profile / history, you may want to make qTox use temporary profile. Thus create temporary directory where it'll be stored:
$ mkdir -p /tmp/.config/tox && touch /tmp/.config/tox/profile.tox
and then make qTox use it when launching from compiled binary:
$ HOME="/tmp/" ./qtox -p profile
vruh