Commit Graph

238 Commits

Author SHA1 Message Date
Martin Pulec
e28c79f717 Fixed some warnings 2021-11-25 15:49:19 +01:00
Martin Pulec
09426b2a7c print rather err msg on wrong unit_evaluate(_dbl) val
Use an user-friendlier error message than assert.
2021-10-05 10:26:48 +02:00
Martin Pulec
ba5763ef1a NAT: don't show NAT traversal hint for priv addr
Do not show hint to use NAT traversal if user uses private or loopback
address as a peer address.

This avoids misleading displaying in otherwise legitimate cases -
transmissions over loopback or behind NAT but just inside LAN.
2021-10-04 11:24:15 +02:00
Martin Pulec
83ede03194 Set crash_signal_handler early
To allow generating stacktrace of crashes occuring during init.
2021-08-24 18:54:49 +02:00
Martin Pulec
9eadbe2465 ug_options: fixed wrong variable used 2021-07-09 10:20:13 +02:00
Martin Pulec
1f3e266478 Sender mode: client - send keep-alive only 1/s 2021-07-09 10:20:13 +02:00
Martin Pulec
49208387da main: moved getopt parsing to a separate function 2021-07-09 10:20:13 +02:00
Martin Pulec
3b6a1dd160 main: decouple verbosity parsing to host.cpp 2021-07-09 10:20:13 +02:00
Martin Pulec
8e5855e109 main: moved some logic to adjust_params 2021-07-09 10:20:12 +02:00
Martin Pulec
785405f885 main: options to separate struct
To allow a refactor.

+ ditto for audio init
2021-07-09 10:20:12 +02:00
Martin Pulec
941fdf6961 Server mode: start dummy/testcard cap/disp only if necessary 2021-06-29 14:33:10 +02:00
Martin Pulec
df7958487a Server mode: support audio 2021-06-29 14:06:47 +02:00
Martin Pulec
b023e8e608 Added server/client mode
Allows NAT traversal when server (sender) is outside the NAT.
2021-06-29 08:59:29 +02:00
Martin Pulec
120a7b4ff6 Changed some messages verbosity
- signal handler - verbose
- frame incomplete - debug (usually quite chatty)
2021-04-14 13:55:57 +02:00
Martin Pulec
75bd2ad232 Set OPUS as a codec when audio protocol is RTSP/SDP
Do not depend on video protocol which may be different.
2021-04-08 13:57:41 +02:00
Martin Pulec
5cefcf803a Do not restore crash signals with SIG_DFL
The backtrace may still be useful and the crash_signal_handler() triggers
the default handler anyway.
2021-03-30 12:10:41 +02:00
Martin Pulec
59f276cc96 Handle some more signals with crash_signal_handler() 2021-03-30 12:08:56 +02:00
Martin Pulec
03a822cfd6 If audio index is not set, enable audio for all devices
This allows in theory capturing multiple sources with eg. switcher
(provided that the sources are compatible, eg. all using "embedded").
2021-03-30 09:28:53 +02:00
Martin Pulec
e488e3c00f Set default TTL to -1
This will return unicast TTL to default values as has recently been.

Multicast TTL may need to be adjusted by user, but there is a warning if
not and this is quite convenient behavior.
2021-03-30 08:41:17 +02:00
Martin Pulec
644fa9b48a Added -T/--ttl parameter 2021-03-29 16:13:17 +02:00
Martin Pulec
ff888b6a1f Main: catch also generic exceptions
We are passing some generic exceptions that were not handled, eg.
std::invalid_argument exception from std::stoi.
2021-03-29 11:04:32 +02:00
Martin Pulec
a7ec1a42b7 crash_signal_handler: simplify + URL for REPORTING_BUGS
Abstract string handling + provide URL to online version of
REPORTING_BUGS.md.

+ use the append() also in signal_handler()
2021-02-25 16:37:47 +01:00
Martin Pulec
371146b393 Generate backtrace when crashed in Linux+mac 2021-02-23 15:09:03 +01:00
Martin Pulec
018590b576 Main: typo - fixed REPORTING_BUGS.md name 2021-02-23 15:00:58 +01:00
Martin Pulec
f1d0b1898d Hd-rum-translator: accept --param 2021-02-11 15:45:07 +01:00
Martin Pulec
24ca1513ae NAT: allow method selection 2020-12-01 08:26:39 +01:00
Martin Pulec
f364cc0a8c Added NAT PMP 2020-11-23 09:12:43 +01:00
Martin Pulec
49dd332639 SDP: Set correct IP version
+ some documentation
2020-11-11 15:56:23 +01:00
Martin Pulec
efd2c70235 Platform pipe: use plain pipe if TCP compat fails
Use plain pipe if the TCP compat fails in Linux. This fixes a problem
when there is unavailable loopback connection (eg. running in a separate
network namespace with unassigned loopback address).
2020-11-10 14:04:28 +01:00
Martin Pulec
bd552be430 Allow verbosity increase with -V
+ small updates
2020-11-05 09:30:15 +01:00
Martin Pulec
024494f4b8 Option to disable message repeats suppressing 2020-11-05 09:21:33 +01:00
Martin Pulec
72bc7c45a0 Updated documentation 2020-10-08 11:06:20 +02:00
Martin Pulec
c8535466e5 Use rather sigdescr_np than sigabbrev_np
This is more consistent with former sys_siglist
2020-09-22 08:28:01 +02:00
Martin Piatka
1c7b30d34c main: Fix compilation on glibc >= 2.32 (sys_siglist) 2020-09-21 14:25:47 +02:00
Martin Pulec
745f247dbc Make: distcheck - check module errors
This check for errors caused by wrong module dependencies.
2020-09-16 11:56:51 +02:00
Martin Pulec
15df3f7268 Video display: get_property->ctl_property
Renamed display_get_property to display_ctl_property to indicate that
the function can be used as a setter as well.
2020-08-28 15:10:28 +02:00
Martin Pulec
710b1d7652 Revert to C++14
C++17 causes problems in Ubuntu 16.04 because increased C++ ABI version
(rather problem with GitHub runner compilers that were downloaded from
outside official repos - official clang-8 looked to work well).
2020-08-06 15:52:45 +02:00
Martin Pulec
0c8d0afa00 Main: check port value 2020-08-03 10:06:03 +02:00
Martin Pulec
055483276c --param decoder-use-codec help 2020-06-29 14:15:07 +02:00
Martin Pulec
14b9a7c151 Main: case insensitive proto comparison 2020-06-10 15:56:46 +02:00
Martin Pulec
91a2769f3e Fixed commit 3657dcaa2 2020-06-10 11:52:04 +02:00
Martin Pulec
3657dcaa2c Capture: print dev name in FPS status 2020-06-09 12:25:51 +02:00
Lukas Rucka
020cc636c2 FIX: Include MTU setting in full help 2020-04-28 13:30:08 +02:00
Martin Pulec
3f5e7b0a0a Do not rename main thread
Do not rename main thread since it renames a process as well and then it
doesn't respond to eg. killall as expected.

+ name the display thread (run if display worker doesn't require to be
  run in main thread)
2020-04-21 18:27:57 +02:00
Martin Pulec
31d80b34b9 Video display: run mainloop only if needed
Do not run the display worker in the main thread if not needed.

This would allow to run a custom mainloop (eg. from Syphon) while being able
to run a display that doesn't need to be run in the main thread.
2020-04-14 10:52:54 +02:00
Martin Pulec
f8d756d165 Windows doesn't have SIGALRM 2020-04-07 11:18:28 +02:00
Martin Pulec
9f4032abe3 Main: only notify about potentilan hang
Some modules on some hardware need considerable time to finish
(SVT HEVC ~8s, AV1 >30s) so do not force quit after fixed amount
of time. Instead display only a warning and let use kill UG manually
if needed. Since previous commit, SIGINT causes usual termination.
2020-04-07 10:33:56 +02:00
Martin Pulec
f47dede849 Main: restore signals instead of ignoring 2020-04-07 10:33:56 +02:00
Martin Pulec
86c5b6815c Removed forgotten MAX_AUDIO_CAPTURE_CHANNELS 2020-02-06 20:57:59 +01:00
Martin Pulec
1802760437 Removed no longer used MAX_AUDIO_CAPTURE_CHANNELS 2020-02-06 17:22:00 +01:00