Commit Graph

227 Commits

Author SHA1 Message Date
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
Milos Liska
5faf5b671a --video-protocol help fix
--video-protocol help should actually print a list of available
protocols
2020-02-06 10:57:19 +01:00
Martin Pulec
ac2c262f43 Main: use formatting macros instead of rang directly 2019-11-27 11:57:27 +01:00
Martin Pulec
7ff2360e67 Video capture: print FPS generically
Centralized FPS statistics output instead of in individual vidcap
modules in order to avoid multiplicities in code.

+ removed the FPS statistics code from testcard
2019-11-27 11:40:07 +01:00
Martin Pulec
5741982aba state_uv: do not call destructor directly 2019-11-21 08:48:34 +01:00
Martin Pulec
dcdeb276ab Added 5 second timeout to prevent exit hangs
Prevents potential exit hangs.
2019-11-19 19:45:25 +01:00
Martin Pulec
64a2d4bc02 Main: exit modules before common_cleanup
In MSW, pipe is emulated over network socket (used by state_uv).
Common_cleanup, however, calls WSACleanup().
2019-11-19 19:45:20 +01:00
Martin Pulec
71efe75a3f dlclose opened libs 2019-11-19 08:22:50 +01:00
Martin Pulec
ee4646d7cc Separate function for video protocol listing 2019-11-13 16:19:55 +01:00
Martin Pulec
c0677ab2e7 Fixed Windows crash
+ be more verbose about errors
2019-11-09 13:46:52 +01:00
Martin Pulec
df5c22f430 Make should_exit callbacks signal-handler safe
Do not call non-async-signal-safe functions in signal handler. Instead
create dedicated thread for handling the callbacks that will the signal
handler only notify.
2019-11-06 20:46:58 +01:00
Martin Pulec
75fd88c7c3 Show hidden modules when fullhelp is given
+ updated copyrights in that files
2019-11-06 15:26:17 +01:00