Commit Graph

3615 Commits

Author SHA1 Message Date
Martin Pulec
49cc88bba7 Disable assertion for pitches in libavcodec
Can still be used for probing
2021-06-15 08:52:06 +02:00
Martin Pulec
19f4ae770f Libug: added force_ip_version 2021-06-14 10:06:09 +02:00
Martin Pulec
96f8db95f5 GPUJPEG dec.: respect RGBA pitch also for unstripped 2021-06-11 14:41:17 +02:00
Martin Pulec
0f4c1658ea GPUJPEG dec.: unstripe - respect pitches
+ allow decoding to RGBA/I420 (in addition to CUDA_RGBA/CUDA_I420)
2021-06-11 14:41:17 +02:00
Martin Pulec
bd47298961 Stripe cap. f.: fixed irregular I420 sizes 2021-06-11 14:40:53 +02:00
Martin Pulec
2a7f2a535c GPUJPEG dec.: unstripe for CUDA_I420
Divisibility by 8 (16) is required.
2021-06-11 14:33:25 +02:00
Martin Pulec
aa660ffaff Reenable loopback connections for VRG 2021-06-11 14:33:25 +02:00
Martin Pulec
3ff957fce5 Merge branch 'master' into vr 2021-06-11 14:33:16 +02:00
Martin Pulec
0a1f29533d NDI cap.: better stride handling
- do not assert it equal line width - may be either different or 0 (default)
- respect the stride where possible (not sure for P216, which is planar)
2021-06-08 16:04:44 +02:00
Martin Piatka
eab94c12c0 Remove some unused includes
Removes some unused includes reported by include-what-you-use
2021-06-08 15:22:25 +02:00
Martin Pulec
e6a59fe0ed NDI disp.: fixed parsin of name opt 2021-06-07 08:23:36 +02:00
Martin Pulec
460302b6eb Libug: option to set sender compression GPUJPEG 2021-06-04 10:56:37 +02:00
Martin Pulec
bda8f19a25 Libug: added cuda_device 2021-06-04 10:44:38 +02:00
Martin Pulec
f7354f6ab4 VRG, dummy: make managed default
HostMalloc was poor for unstriped GPUJPEG dec
2021-06-01 11:47:04 +02:00
Martin Pulec
2c7a7c3d2d Libug: provide option for UDP packet pool
+ set rtp-multithreaded also with value 1 - this will enable the
appropriate code
2021-06-01 10:59:18 +02:00
Martin Pulec
8042cf6b7d VR: Added packet pool 2021-05-28 11:12:06 +02:00
Martin Pulec
21733a0765 udp_reader: duration measurement in debug mode 2021-05-28 11:12:04 +02:00
Martin Pulec
376e3e4bcf gettimeofday_replacement: improved computitation
* simplified + keep computation in long long
* overflow check with DEBUG
2021-05-28 08:52:00 +02:00
Martin Pulec
f8fd2f872e Logger: option to enable/disable timestamps 2021-05-26 16:15:39 +02:00
Martin Pulec
f06204262b Use environment variable ULTRAGRID_VERBOSE 2021-05-26 14:48:53 +02:00
Martin Pulec
1ff532840e Merge branch 'master' into vr-devel 2021-05-26 14:23:32 +02:00
Martin Pulec
1d47a5f00d Initialize audio network only if used 2021-05-26 11:19:18 +02:00
Martin Pulec
613c62bf54 Lavc: fixed get_decoder_from_uv_to_uv
Improved UG decoder selection in get_decoder_from_uv_to_uv - now is
selected nearest better codec.

+ written a test for the above
2021-05-25 10:11:30 +02:00
Martin Pulec
3c81b3b04c SDL2: dropped frame warn with logger
Allows aggregation of messages and thus not congesting the output.
2021-05-25 08:22:34 +02:00
Martin Pulec
ec854785ce Video codec: added subsampling 2021-05-21 19:40:18 +02:00
Martin Pulec
5fdaef03a3 GitHub CI [Linux ARM]: use code checked out by GitHub
Use code checked out by GitHub Action - previously there was a clone
but we want rather the actual code, which doesn't need to be in master
branch of the main repository.

This also requires a small refactor (chroot in home rather than in
$GITHUB_WORKSPACE)
2021-05-21 19:40:15 +02:00
Martin Pulec
bb1405fad3 Added hint to disable output buffering in MSYS terminal 2021-05-21 13:43:56 +02:00
Martin Pulec
3783ac09bf hwaccel_vaapi.h: remove libavcodec/vaapi.h include
Include libavcodec/vaapi.h only if used. It is already removed upstream.
2021-05-21 13:43:55 +02:00
Martin Pulec
23c887d0a3 Debug: allow ANSI colors for MSYS
Assume that MSYS is capable of displaying ANSI sequences even if
setWinTermAnsiColors fails.
2021-05-20 13:42:15 +02:00
Martin Pulec
c0a17534cc Fixed newly detected Coverity issues 2021-05-20 11:04:52 +02:00
Martin Pulec
7af48e236b Libavcodec compat fix
av_packet_alloc/av_packet_free were actually added already in lavc 57.8.0.

+ handle NULLs
+ av_packet_free: fix - set pointed pointer to NULL
2021-05-20 10:33:40 +02:00
Martin Pulec
50a6eb229c Receive all RTCP packets at once in sender mode
Repeatedly call rtcp_recv_r() until there are packets available.
2021-05-18 16:28:31 +02:00
Martin Pulec
ad6342fab4 Libug sender: added optional parameter for BW 2021-05-18 16:25:51 +02:00
Martin Pulec
8f96422860 Receive all RTCP in a separate thread
This fixes late RTCP received due the fact that only one RTCP frame was
received per sended frame.

Note: this solution is different than in upstream UG where there is only
fixed that all available RTCP packets are received but not in the
context of receiving thread as this change. Here the advantage is that
the RTCP APP packets will be processed more timely (which is not
important for mainstream UG).
2021-05-18 16:25:49 +02:00
Martin Pulec
e1920cb738 VRG: print debug message if dropping frame 2021-05-18 11:13:44 +02:00
Martin Pulec
da13458b08 VRG: print vrgStreamRenderFrame duration 2021-05-18 10:22:21 +02:00
Martin Pulec
377c9f0a1b VRG: print RTT 2021-05-18 09:28:06 +02:00
Martin Pulec
8b9b3310dc Merge branch 'master' into vr-devel 2021-05-17 15:10:24 +02:00
Martin Pulec
4ab7aaf643 Audio buffer: fixed minor leak 2021-05-17 13:27:06 +02:00
Martin Pulec
a186ae2112 Libavcodec: removed deprecated AVPacket usage
+ make usages of AVCodec const
2021-05-17 13:17:09 +02:00
Martin Pulec
876331055a Libavcodec: use direct conversion first
Currently the list of conversions is traversed sequentially. Thus the
order of the list uv_to_av_conversions is important, it allows eg.
something like RG48->R12L->Y444P16 if R12L->Y444P16 is earlier than
direct RG48->Y444P16.
2021-05-14 16:09:24 +02:00
Martin Pulec
c606fd35e9 FFmpeg: compilation fix
The compat FF_API_PLUS1_MINUS1 macro (babdb792) was incorrectly used -
if it were defined, the new depth field is already present. On contrary,
if not, depth_minus1 needed to be used. Rather do not depend on it,
anyway and use libavutil version.
2021-05-14 15:20:58 +02:00
Martin Pulec
9a3412fdd5 Libavcodec conversions: use 14-bit precision coefs
This yields precision ~12 bit precision but avoids integer overflows.
2021-05-14 13:56:44 +02:00
Martin Pulec
24a06795c8 Updated EmbeddableWebServer.h
Upstream is https://github.com/MartinPulec/EmbeddableWebServer.git
2021-05-13 09:08:27 +02:00
Martin Pulec
c13a84cd66 Another Windows fixes
UNIQUE_NAME is defined somewhere in MinGW headers.
2021-05-13 09:08:27 +02:00
Martin Pulec
b97dc5ffda Fixed some Windows warnings 2021-05-13 09:08:26 +02:00
Martin Pulec
986606f1e7 Renamed error() to handle_error()
to avoid clashes with GNU function error()
2021-05-13 09:08:26 +02:00
Martin Pulec
7b5f83292d Pbuf: do not delete immediately
Wait 2*playout_delay_us before deletion - this allows correct discarding
of late packets (with optional warning).
2021-05-13 09:08:26 +02:00
Martin Pulec
5a734625d3 Pbuf: auto-adjust stat interval
To prevent incorrect statistics to be presented.
2021-05-13 09:08:26 +02:00
Martin Pulec
eeba905142 Pbuf: moved stat processing to separate function 2021-05-13 08:23:10 +02:00