5494 Commits

Author SHA1 Message Date
Martin Pulec
c019d8b2da UltraGrid 1.7.6 v1.7.6 2022-08-23 07:50:28 +02:00
Martin Pulec
702b530866 create_[con_]release.sh: handle HTTP status != 200 2022-08-23 07:50:28 +02:00
Martin Pulec
f628a16a9a CI: json-common.sh - safety check + escape 2022-08-23 07:50:21 +02:00
Martin Pulec
9c79ef9f73 create_release.sh: enable debug output 2022-08-23 07:39:22 +02:00
Martin Pulec
dbe05eab33 create_continuous_release.sh: other fixes
- fetch really 'continuous' release, not $TAG (perhaps c&p error from
  create_release.sh)
- create tag only if not exists
2022-08-23 07:39:22 +02:00
Martin Pulec
492f9b8351 create_continuous_release.sh: force fetch
It looks like git on GH tags without signatures first and thus the
consequent fetch in create_continuous_release.sh fails because it
fetches signed tag (although it is the same object).

See also:
https://github.com/MartinPulec/UltraGrid/actions/runs/2902280934

+ enable debugging in the script (`-x`)
2022-08-23 07:39:22 +02:00
Martin Pulec
06b2d13ee7 restore old tio in crash_signal_handler
In case of crash, atexit callbacks are not called, thus terminal state
is not restored (if modified by keyboard control).
2022-08-23 07:39:22 +02:00
Martin Pulec
c03ba7bcad DeckLink disp.: use unique_ptr for VideoDelegate
was leaked before
2022-08-23 07:39:22 +02:00
Martin Pulec
f2664a4bd8 DeckLink cap.: release decklinkAttributes
(+ removed needless /but harmless/ repeated releasing of
   decklinkConfiguration)
2022-08-23 07:39:21 +02:00
Martin Pulec
59a1d24ef3 DeckLink cap.: supress IDeckLinkDisplayMode::GetName fail
For a reason, this sometime fail resulting to following error:

    [DeckLink capture] set_display_mode_properties: out of memory

+ release_bmd_api_str: NOOP if nullptr passed (can be now the case since
  the code is more permissive)
2022-08-23 07:39:18 +02:00
Martin Piatka
5f7ea72c0d CI: Update svt-av1 repo URL 2022-08-22 15:25:05 +02:00
Martin Piatka
2f3bd0ec54 screen_win: Fix crash on startup
The crash was caused by null parent module in the vidcap_params created
by vidcap_screen_win_init().
2022-08-22 09:56:21 +02:00
Martin Pulec
0475bbffab NDI cap.: default val for NDIlib_recv_create_v3_t
Since default C++ constructors are no longer used for NDI,
zero-initialization intializes NDIlib_recv_create_v3_t::bandwidth to 0,
which is NDIlib_recv_bandwidth_lowest.
2022-08-22 09:48:23 +02:00
Martin Pulec
b118062b8e UltraGrid 1.7.5 v1.7.5 2022-06-21 12:25:43 +02:00
Martin Piatka
08dc697267 GUI: When killing processes leave a message in log
When ug process doesn't respond to termination GUI needs to kill it.
This makes the return code equal to 9 and GUI complains about a crash.
Without a message in the log this could have been confusing.
2022-06-21 12:22:51 +02:00
Martin Pulec
4b5eaebafc Revert "GitHub CI C/C++ Lin. FFmpeg: disable SVT HEVC/VP9"
This reverts commit 9fbd18b53d.
2022-06-21 10:16:08 +02:00
Martin Pulec
c983447039 V4L2 cap.: unmap buffers 2022-06-21 10:12:25 +02:00
Martin Pulec
bb88cd034f mac: display warning to use alt-build on <10.15 2022-06-21 09:55:58 +02:00
Martin Pulec
11644a2479 GLSL: compilation, link: check errors 2022-06-21 09:34:11 +02:00
Martin Pulec
0fb77b0a5e Worker: signal after unlock
This is more correct anyway but for some reason, it hung when
instrumented by valgrind.
2022-06-21 09:32:31 +02:00
Martin Pulec
7f2d148e9f GitHub CI Win: Version.txt is not present in NDI
Windows distribution of NDI usually doesn't contain Version.txt so do
not use it. Moreover the previous way of creating the version file (in
.bashrc) was not perfect.

Write at least NDI major version if NDI_VERSION is not present.
v1.7.4
2022-05-23 10:07:10 +02:00
Martin Pulec
609ecccf33 UltraGrid 1.7.4 2022-05-23 10:07:09 +02:00
Martin Pulec
afd87e3df3 Backported RTSP capture from master 2022-05-23 10:07:09 +02:00
Martin Piatka
efbf0be226 ldgm gpu: Move cuda_check_error macro
nvcc had some problems with gcc 12.1 stl map templates when compiling gpu.cu.
And since ldgm-session-gpu.h which contained the c++ code was only needed for
this one macro, it's probably better to move it to gpu.cuh which is
already included by all files that need it.
2022-05-23 10:07:09 +02:00
Martin Piatka
514c9966a4 display/dummy: Add missing <memory> include 2022-05-23 10:07:09 +02:00
Martin Pulec
761167c308 C/C++ CI: fixed failed run 658
Fixed failed run:

  https://github.com/CESNET/UltraGrid/actions/runs/2274530865
2022-05-23 10:07:08 +02:00
Martin Pulec
5948fc3d03 dump display: fixed a crash
For opaque codecs (H.264), the allocated size was actually smaller than
(maximal) data len set. That is usually not an issue, but when
destroying, the invalid maximum is exported (because PUTF_DISCARD with
unmodified frame). Steps to reproduce:

    uv -t testcard:size=1280x128 -c libavcodec:codec=H.264 -d dump
2022-05-23 10:07:05 +02:00
Martin Pulec
59ac7e486e lavc: intra-refresh fix 2022-04-12 09:07:24 +02:00
Martin Pulec
443a38bd85 lavc: disable intra refresh for nvenc
Do not enable intra-refresh for NVENC - current implementation in FFmpeg
implies infinite GOP, which is useless for UltraGrid.

+ added option to explicitly enable intra refresh (eg. when we know that
  it is safe to enable it with FFmpeg, eg. with our patched FFmpeg built
  with Linux CI).
2022-04-11 16:39:17 +02:00
Martin Pulec
e072dade13 CI Win FFmpeg: use MSYS2 pkg instead of ext. build
Use MSYS2 version instead of external builds from gyan.net. FFmpeg gets
installed as a dependency anyway and this causes crashes because of
binary incompatibility between those two. See failed run:

https://github.com/CESNET/UltraGrid/actions/runs/2076078289
2022-04-11 16:35:24 +02:00
Martin Pulec
403e4a007d UltraGrid 1.7.3 v1.7.3 2022-03-23 11:12:09 +01:00
Martin Pulec
d858961344 dlerror Win compat: use FormatMessageA explicitly
With current flags, -DUNICODE is defined, thus compiling preview.cpp
using wide function (FormatMessageW) implicitly, thus use FormatMessageA
explicitly.
2022-03-23 11:12:09 +01:00
Martin Pulec
a9e6e05b75 GitHub CI Win: install windeployqt for Qt6 2022-03-23 11:12:09 +01:00
Martin Pulec
a5dd3938d7 GitHub CI C/C++ Win: use Qt 6 2022-03-23 11:12:09 +01:00
Martin Pulec
59f0cdb891 Makefile: QT_CFLAGS->QT_CXXFLAGS
Qt toggles some C warnings not known to C++.
2022-03-23 11:12:09 +01:00
Martin Pulec
3711f78ac6 configure: fixed Qt6 in Windows
The generated Makefile is only umbrella for Debug and Release makefiles.
2022-03-23 11:12:08 +01:00
Martin Pulec
5fd96af8e4 Makefile.astat: build with c++ instead of g++
GCC is not always present (eg. in MSYS2 clang env).
2022-03-23 11:12:08 +01:00
Martin Pulec
599616ea22 confiugre.ac: Qt - search also for qmake6
qmake6 is available in MSYS2 qt6.
2022-03-23 11:12:08 +01:00
Martin Piatka
0dace6272c GUI: Fix direct OpenGL calls 2022-03-23 11:12:08 +01:00
Martin Pulec
a126236fcf DeckLink cap.: Windows compilation fix
BMDVideoOutputConversionMode is enum in Windows (compared to uint32_t in
Linux) and thus the compiler complains about the int->enum cast.
2022-03-23 09:58:12 +01:00
Martin Pulec
20f107df66 GitHub CI C/C++ [Win]: updated CUDA toolkit
To fix failed run:
https://github.com/MartinPulec/UltraGrid/runs/5646203963

See also e2174fba

+ use network installer again (see 0a1b71789)
2022-03-23 09:43:47 +01:00
Martin Pulec
4f42ed73ae GitHub CI [Win]: use CUDA 11.5
+ derive used version from URL
2022-03-23 09:43:46 +01:00
Martin Pulec
cd09212088 GitHub CI C/C++ [Win]: fixed JACK2 installation
JACK installed with Chocolatey ceased to run unattendedly thus
installing it directly now.
2022-03-23 09:43:46 +01:00
Martin Pulec
16108d0f36 GitHub CI C/C++ Lin. FFmpeg: disable SVT HEVC/VP9
Temporarily disable SVT HEVC/VP9.

With current FFmpeg upstream updates, patch doesn't apply and there is
no simple way to fix now (FFCodec was introduced in addition to AVCodec)
so disable it at least temporarily until the patch is fixed.

References:
- https://github.com/CESNET/UltraGrid/actions/runs/2016955211
- https://github.com/OpenVisualCloud/SVT-HEVC/issues/614
2022-03-23 09:43:44 +01:00
Martin Pulec
12da43bc8a .github/scripts/macOS/sign.sh: do not leak password 2022-03-04 10:14:01 +01:00
Martin Pulec
f73691687d configure.ac: remove bashism + unused parameter
This partially reverts eb390d344.
2022-03-02 10:25:09 +01:00
Martin Pulec
79781e37fb Fixed crash from commit 54befa49
Fixed incorrect number of channels allocated when there is channel
remapping, eg.:

    uv -s testcard -r dummy --audio-channel-map 0:1

The problem occurs in code introduced by commit 54befa49 but the array
is also used elsewhere, namely read by decode_audio_frame().
2022-03-02 10:25:09 +01:00
Martin Pulec
e0516a3819 DeckLink disp.: fix not supported conversion mode
refers to GitHub issue #215
2022-03-02 10:24:59 +01:00
Martin Pulec
4d9df49ead tv_add_usec: fixed handling of > 2^31 ms offset
+ improved a bit
2022-01-25 12:11:22 +01:00
Martin Pulec
a06d459a80 UltraGrid 1.7.2 v1.7.2 2022-01-18 11:56:26 +01:00