7150 Commits

Author SHA1 Message Date
Martin Pulec
edd627917a UltraGrid 1.8.3 v1.8.3 2023-05-04 10:32:25 +02:00
Martin Pulec
975919d9f1 CI mac compilation fix
Fixes failed run:

    https://github.com/CESNET/UltraGrid/actions/runs/4827804161/jobs/8600918491
2023-05-04 10:32:24 +02:00
Martin Pulec
dd7316b5de added 1.8.3 section to FIXES.md 2023-05-04 10:32:19 +02:00
Martin Pulec
5f4e9c7087 bmd_common: BMC_CONFIG_SET - set bools unconditionally
see GH-306
2023-05-03 16:32:47 +02:00
Martin Piatka
ede867ca93 reflector: Fix removing conference participant
Delete the participant only after we take it's address. Fixes deleting the
wrong port.
2023-05-03 15:20:07 +02:00
Martin Piatka
801b9b6702 reflector: Fix replica module name
The string length calculation didn't consider the ':' separating address
and port, thus cutting out the last digit of the port.
2023-05-03 15:20:06 +02:00
Martin Pulec
cb3054784b dshow: index by number +1
Fixes commit c171ef44 from 2022-10-19 that changed the indexing from
zero.
2023-04-26 15:37:55 +02:00
Martin Pulec
ad2083de4d Reed-Solomon video: support multiple tiles 2023-04-24 11:07:40 +02:00
Martin Pulec
9dbe0e7396 GPUJPEG: fixed parsing of q=/restart= parameters 2023-04-24 11:04:33 +02:00
Martin Pulec
784ff61599 echo: lock_guard should not be a temporary 2023-04-24 10:25:40 +02:00
Martin Pulec
719dacbdb6 gpustitch: fixed mismatched new/free 2023-04-24 10:25:15 +02:00
Martin Pulec
a24004a6cb FEC help: excess second %
perhaps a relict from printf printout
2023-04-24 10:18:02 +02:00
Martin Pulec
bda2f83fcf lavc: allocate at least 4 KiB buf for compressed
When compressing very small video (16x16) with libx265, first frame is
2690 B, which is more than W*H*4 (1024) leading to a crash on assert.

steps to reproduce the fixed problem:

    uv -t testcard:size=16x16 -c libavcodec:encoder=libx265
2023-04-24 10:07:40 +02:00
Martin Pulec
37173381fc Spout: fixed missing GL include
fixes failed run:

   https://github.com/MartinPulec/UltraGrid/actions/runs/4665946519/jobs/8259953664
2023-04-11 15:54:58 +02:00
Martin Pulec
5c43904776 CI Linux: remove AOM U18 compat 2023-04-06 14:49:58 +02:00
Martin Pulec
1ab112673c CI Linux: use Vulkan directy from repo 2023-04-06 14:49:58 +02:00
Martin Pulec
60a10478b7 CI Linux: install wayland with apt
Previously, actually the same version was used but downloaded directly
and installed with dpkg, because it has been used a version from U20
(now default) to U18.
2023-04-06 14:49:57 +02:00
Martin Pulec
d8a64655c9 AppImage: don't use bundled Wayland libraries
Don't use bundled Wayland libraries when running on Wayland but use it
otherwise to satisfy possibly unsatisfied dependencies.

See also previous commit - Wayland libraries seem not to be portable and
prevent SDL2 native run on Wayland. After this change, SDL2 runs on
U22.04 in Weston (without Xwayland).
2023-04-06 14:49:57 +02:00
Martin Pulec
594e81addf CI Linux: do not build own SDL2 anymore
SDL2 now obviously works on U20.04, because we are building there. It
doesn't work on U22.04, but neither the build with SDL 2.0.20 nor 2.26.2
does.

The problem seems actually to be the inclusion of Wayland libraries in
AppImage.
2023-04-06 14:49:57 +02:00
Martin Piatka
740543be00 CI/Linux: Migrate to Ubuntu 20.04 2023-04-06 14:49:39 +02:00
Martin Pulec
f032226791 UltraGrid 1.8.2 v1.8.2 2023-03-21 12:39:43 +01:00
Martin Pulec
88e9ee6bff added v1.8.2 FIXES.md 2023-03-21 12:39:43 +01:00
Martin Pulec
fd522907ce video_rxtx: do not crash after querying rtsp usage
do not crash after `uv --video-protocol rtsp:help` call

Note: other video_rxtx modules handle help differently, eg. h264_sdp
throws 0 from constructor instead of returning nullptr from ::create.
2023-03-21 12:39:43 +01:00
Martin Pulec
0b9a008632 portaudio cap.: use default ch_count if undef
Maximal number of channels was chosen instead of
DEFAULT_AUDIO_CAPTURE_CHANNELS. This was noticable especially for
Pulseaudio plugin, which has 64 channels.

fixes commit 89747981
2023-03-21 12:39:43 +01:00
Martin Pulec
89f9a56a45 portaudio cap/play: fixed default device selection
Passed configuration string is empty ("") if no configuration given by
user. Which evaluates incorrectly as 0 if parsed with atoi.
2023-03-21 12:39:43 +01:00
Martin Pulec
ec80275cfc CI Linux FFmpeg: use a mirror for nv-codec-headers
The master repo https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git
is currently unresponsive. The mirror would be perhaps more reliable
since it is hosted on the GitHub, anyways.
2023-03-21 12:39:42 +01:00
Martin Pulec
3d35f42751 CI Linux FFmpeg: apply patches with 'git am'
see also a30a8945

This may fix failed run:

    https://github.com/MartinPulec/UltraGrid/actions/runs/4466205698/jobs/7844098282
2023-03-21 12:39:42 +01:00
Martin Pulec
857da67340 CI Linux: set git user identity
otherwise 'git am' fails
2023-03-21 12:39:42 +01:00
Martin Pulec
3ef33247fd CI macOS: add readline to PKG_CONFIG_PATH
brew port readline is no longer liked to system path by default.

Fixes failed build:

    https://github.com/MartinPulec/UltraGrid/actions/runs/4202715324/jobs/7291225396
2023-03-21 12:39:42 +01:00
Martin Pulec
f4fdf7e707 CI: fix Windows build upload workaround
Used msys/curl instead of clang64/mingw-w64-clang-x86_64-curl for the
upload.

For whatever reason, the other curl variant ceased to collaborate with
GitHub, see failed run (and subsequent ones):

    https://github.com/CESNET/UltraGrid/actions/runs/4223917061/jobs/7334218587

I didn't manage to reproduce it on a local Windows machine so there is
perhaps some hidden factor present.

This change is just a workaround and should be removed when not needed.
2023-03-21 12:39:42 +01:00
Martin Pulec
6cc697991b CI Linux FFmpeg: patch SVT-VP9 patch 2023-03-21 12:39:42 +01:00
Martin Piatka
a18d7e0dc4 create-appimage: Bundle qt plugins with correct version
Starting from about 20th January, the wrong version (qt4) started
getting bundled on the Ubuntu runner.
2023-03-21 12:39:42 +01:00
Martin Piatka
be415f5cb4 GUI: Fix specific display device selection 2023-03-21 12:39:39 +01:00
Martin Pulec
4bc5614fa6 RTP: mem safety imrovement
The handling of source::sr is MT-Unsafe when the library is used from
within 2 threads. Typically when running `uv -t testcard -d dummy` (with
-DDEBUG), check_database() is run from sender thread while process_rtcp_sr
from receiver thread leading to a crash on line 589 using the old
structure data that has been freed and overwritten by some new data.

The above mentioned crash doesn't usually occur since check_database()
is run only if DEBUG is defined. However, in theory it may happen that
both threads accidentaly run process_rtcp_sr() (alhough not observed). In
that case either double-free or a leak could occur if the runs of
process_rtcp_sr() is interleaved in a wrong way. Unfortunately, as the
RTP library is originally mt-unsafe, there can be plenty of similar
undiscovered problems.

(Note: to test the check_database() crash, running in GDB seems to
increase the likelihood that it crashes. This change on the other hand
seems to retuce that, but clearly doesn't eliminate that because the
content of the struct is read while it may be freed by the other thread.)
2023-03-07 08:50:51 +01:00
Martin Pulec
827d0f9834 parse_bitrate: fixed parsing of spec vals
fixes 03f70eade

closes GH-300
2023-03-07 08:41:43 +01:00
Martin Pulec
3680ded789 DeckLink: continue if CoInit fails on diff. mode 2023-03-07 08:37:31 +01:00
Martin Pulec
9f296b2dfa lavd: fixed sws setting NULL before a clear
leads to a leak
2023-03-07 08:31:14 +01:00
Martin Pulec
9df60d3114 RTP: attempt also other ports on error
We want perhaps attempt another ports even though there is another error
from udp_port_pair_is_free() than the port is taken. This error is on
hand unpredicted but by no means fatal.

Fixes:

    https://github.com/CESNET/UltraGrid/actions/runs/4225115209/jobs/7336964502
2023-03-07 08:29:48 +01:00
Martin Piatka
e440195df4 CI: Fix libde265dec patch
AV_CODEC_CAP_AUTO_THREADS was removed in ffmpeg commit 10c9a08
It was replaced by AV_CODEC_CAP_OTHER_THREADS (same macro value)
2023-02-21 11:37:49 +01:00
Martin Pulec
756a92f93f macOS: replace altool with notarytool 2023-02-21 11:35:12 +01:00
Martin Pulec
6495c3ace8 aggregate vicdap: fixed a leak 2023-02-21 11:34:37 +01:00
Martin Pulec
2963393f3d Revert "CI: patch SVT-HEVC patch"
This reverts commit 842a86b82f.

no more needed, patch was rebased in upstream
2023-02-21 11:33:09 +01:00
Martin Piatka
34d262925f vulkan: Fix Y416 conversion
see GH-291
2023-02-21 11:31:06 +01:00
Martin Piatka
ccb7f876e1 vulkan: Fix shader conversions not processing whole image
When the image resolution was not cleanly divisible by the local
workgroup size, the remaining pixels were left unprocessed.
2023-02-21 11:30:53 +01:00
Martin Piatka
220f115974 vulkan: Fix shader UYVY conversion
There were 2 issues:
1. normalized floating coords causing artifacts (see GH-291)
2. The resulting image width was incorrectly doubled
2023-02-21 11:30:29 +01:00
Martin Piatka
4f478c730d vulkan: RGB10A2_conv: Use unnormalized integer coords
closes GH-291
2023-02-21 11:25:53 +01:00
Martin Pulec
9a230136e7 lavc: subsampling is now internally a four-digit
Three digit subsampling is obsolete, now the format 'JabA' is used (so
4220 instead of 422), so represent it internally in that way in order to
the comparison work.
2023-02-21 11:06:27 +01:00
Martin Piatka
17998f52e1 swmix: Fix trimming trailing space
The previous implementation could corrupt memory before the string
buffer, if the string contained only whitespace or was empty.
2023-02-21 11:03:57 +01:00
Martin Pulec
85607c6873 lavd: fixed directly mapped pixfmts memcpy
it should respect AVFrame set linesize
2023-02-21 11:01:23 +01:00
Martin Pulec
cebd5bf517 lavc: dump/transfer correct frame
Input frame may not be s->in_frame if just setting the pointers to input
buffer (without copying).
2023-02-21 11:00:44 +01:00