Commit Graph

10211 Commits

Author SHA1 Message Date
Martin Pulec
13c2e6ac6c vdec/lavc: accept corrupted to separate fn
+ print the value in VERBOSE (for all video decoders)
2025-04-11 12:01:15 +02:00
Martin Pulec
6d2ab24bcd vdec/lavc: fix H.265 decode with intra-refresh
Fix decoding of HEVC streams with intra-refresh and current Git FFmpeg
code. When intra-refresh is enabled and we are not catching the first
frame, no frame will be decoded without the flag
AV_CODEC_FLAG_OUTPUT_CORRUPT. This corresponds with FFmpeg commit
bc1a3bfd (2025-02-20), not yet included in current 7.1.1 / lavc 61,
should appear in lavc 62.

Steps to reproduce:
```
uv -t testcard -c lavc:e=libx265 -d gl
```
2025-04-11 11:04:35 +02:00
Martin Pulec
0ccf0f2461 main/parse_cuda_device: validate
Validate the number, eg. `--cuda-device list` (instead of "help") now
triggers error.
2025-04-10 16:16:54 +02:00
Martin Pulec
403a751c5c audio/types: IWYU 2025-04-10 16:16:54 +02:00
Martin Pulec
fc257ff83d vo_pp/text: fix CID 480256 2025-04-10 16:16:54 +02:00
Martin Pulec
eea61b2604 audio_frame2::change_ch_count: fix CID 480257
the behavior is now very slightly modified but effectively the same,
eg. change 1 to 3 channels copies now channel 0 to 1 and then 1 to 2
(before it copies 0 to both 1 and 2).
2025-04-10 16:16:53 +02:00
Martin Pulec
94665c52fb vdec/lavc: thread option to keep default val 2025-04-10 16:16:53 +02:00
Martin Pulec
e8e44012be vdec/lavc: for wrong param write error not warn
For incorrect param lavd-thread-count write an error and if fatal error
handling is enabled, also exit.
2025-04-10 16:16:53 +02:00
Martin Pulec
8068038cc3 vdec/lavc: allow omission of thr count
eg. `--param lavd-thread-count=FS' to allow thread paralellism (`0FS`
neede be before)
2025-04-10 16:16:53 +02:00
Martin Pulec
3f85a03fda rtpdec h265: debug: print aggrated NALU type name 2025-04-10 16:16:53 +02:00
Martin Pulec
91595b6dcd tx/h265: fix CID 480258 2025-04-10 16:16:49 +02:00
Martin Piatka
d3258a1606 aplay/pipewire: Drop log priority of stream state change 2025-04-08 13:13:15 +02:00
Martin Piatka
feb0790977 aplay/pipewire: Report playback latency 2025-04-08 13:13:15 +02:00
Martin Pulec
20304e0ccd vo_pp/text: unify err handling
use common macro outputting the error (also instead of asserts)

+ avoid transparent_bg leak if error occurs
2025-04-07 16:34:22 +02:00
Martin Pulec
46f686bbc9 vo_pp/text: add option for font
- do not exit if font failed to set (maybe the system one will be tried?)
- removed implicit helvetica (seem to be set by IM6 by default, anyways
so just not setting it won't solve the problem when helvetica not found
in sys)
2025-04-07 13:46:48 +02:00
Martin Pulec
8c73534128 create-appimages.sh: print errors bold/red
The errors are not fatal unless in CI but user should be notified.
2025-04-04 22:42:44 +02:00
Martin Pulec
05187ea56d AppImage: bundle aux data for IM magickwand 2025-04-04 22:42:41 +02:00
Martin Pulec
f66be72148 vo_pp/text: avoid crashes (abort in magick) if not init 2025-04-04 22:41:45 +02:00
Martin Pulec
fe5b5074a9 vulkan_context: portability ext compat 2025-04-04 22:41:45 +02:00
Martin Pulec
8fb185ee6c vcomp/cmpto_j2k: include cmath
needed for isnan
2025-04-04 22:41:44 +02:00
Martin Pulec
4a68419fb6 vo_pp/text: some more debugging msgs on err 2025-04-04 22:41:44 +02:00
Martin Pulec
192252c102 vo_pp/text: load available system font
If font is not set explicitly, MagickQueryFontMetrics fails with:
```
[text vo_pp.] MagickQueryFontMetrics failed: unable to read font `helvetica' @ error/annotate.c/RenderFreetype/1658!
```
(using ImageMagick 7.1.1)
2025-04-04 22:41:43 +02:00
Martin Pulec
584a19037e utils/text: IWYU 2025-04-04 22:41:43 +02:00
Martin Pulec
f44839bc5f vo_pp/text: print error descriptions
+ use MSG instead of log_msg (shorter)
2025-04-04 22:41:42 +02:00
Martin Pulec
8b887ca8c3 vo_pp/text: IWYU 2025-04-04 22:41:41 +02:00
Martin Piatka
b713be7c75 disp/vulkan: Consolidate class public and private sections 2025-04-04 16:28:52 +02:00
Martin Piatka
68168c582f disp/vulkan: Remove unused LogLevel enum 2025-04-04 14:12:13 +02:00
Martin Pulec
937d07ded2 CI: fix XIMEA URL 2025-04-04 11:58:23 +02:00
Martin Pulec
465f939b86 tx_send_h265: emit AP if possible
It is perhaps not worth sending VPS/SPS/PPS in separate packets.
2025-04-04 09:27:29 +02:00
Martin Pulec
770c44a737 rtsp server: support for sending H.265 2025-04-04 09:27:27 +02:00
Martin Pulec
b7601d25ee rtsp server: fix media type print on err
this fixes the commit 6d5c6fe1 (2024-08-04)
2025-04-03 11:54:52 +02:00
Martin Pulec
37e2298ffd decklink: warn if IP addr given but DHCP=no not 2025-04-03 11:54:52 +02:00
Martin Pulec
c7bf90fdf6 decklink fcc opt parse unified + moved to common 2025-04-03 11:54:52 +02:00
Martin Pulec
26794a1971 decklink: fix FourCC opts without val
fixes the regression by commit d71c28eef (2024-11-18)
2025-04-03 11:54:52 +02:00
Martin Piatka
5325a2b78c disp/vulkan: Use unique_ptr for frame mappings 2025-04-02 15:49:39 +02:00
Martin Piatka
aa79670280 disp/vulkan: Drop standard layout requirement
Not really needed
2025-04-02 15:49:39 +02:00
Martin Piatka
36a2f2d97b disp/vulkan: Fix spelling of 'attributes' 2025-04-02 15:49:39 +02:00
Martin Piatka
943ca22be3 disp/vulkan: Use log_msg for logging 2025-04-02 15:49:39 +02:00
Martin Pulec
96486494cd tests improvements
- suppress the output for unit_evaluate
- improve debug printout codec_conversion_test_testcard_uyvy_to_i420
- improve C variant of ASSERT_EQUAL_MESSAGE macro (prints num values
also in hex)
- remove VLA from codec_conversions_test.cpp (not valid in C++)
2025-04-01 15:42:13 +02:00
Martin Pulec
b86d62876d configure.ac: sdl2_compat detect fix
sdl2.pc does no longer provide sdl2_compat - add a fallback parsing
it from the .pc file manually (pkgconf) and from --debug (pkg-config).
2025-04-01 14:09:45 +02:00
Martin Pulec
f6dd5b15c2 uuvu_to_nv12: handle irregular sizes 2025-04-01 14:02:32 +02:00
Martin Pulec
301aa47a88 y216_to_p010le: handle odd number of rows/lines 2025-04-01 14:02:32 +02:00
Martin Pulec
c06691d045 add test for y216_to_p010le 2025-04-01 14:02:31 +02:00
Martin Pulec
92e8d99b28 fixed uyvy_to_i420
fix test codec_conversion_test_testcard_uyvy_to_i420 fail caused by the
merge of testcard_common toI420 to to_lavc uyvy_to_yuv420p

Last line was incorrectly checked in case of odd number of lines.
2025-04-01 14:02:31 +02:00
Martin Pulec
5c13644cd8 configure: sdl aux fix
Fixed $sdl_ver_suffix used instead of $sdl_version - the former is ""
for SDL1 - when testing _ttf and _mixer.
2025-04-01 14:02:31 +02:00
Martin Pulec
1092abdfe8 sdl3: blacklist P010 for direct3d[12] 2025-04-01 14:02:31 +02:00
Martin Pulec
39554640f9 sdl_mixer (3): if mono requested, capture stereo
Workaround for SDL3 mixer, that doesn't respect selected ch_count=1 now.

Reduced the channel count later in audio stack (this will work for other
acaps as well).
2025-04-01 14:02:31 +02:00
Martin Pulec
85679c4fad sdl3: add errata + Vulkan warning 2025-04-01 14:02:30 +02:00
Martin Pulec
b073f9d105 configure.ac: add option not to use MoltenVK [mac]
On mac, we can link either to MoltenVK or the vulkan-loader. The MoltenVK
variant is default, because the bundler then bundles the library as the
compat layer. If linked to vulkan-loader, Vulkan will likely not work if
the MoltenVK is not installed on the host computer.

But it is useful for debugging (the behavior is slightly different if
loaded via vulkan-loader even if the backend is MoltenVK - the KHR
portability bit/enumeration stuff).
2025-04-01 14:02:30 +02:00
Martin Pulec
fa764db2d6 share some more convs between sdl3, to_lavc, testc
1. to SDL3 nv12 (not supported before)

2. to_lavc - use rgba_to_bgra - the vc_copyline version was not keeping alpha
(if ever used - this may cause regressions, unfortunately, if alpha is
assumed to be 100%, because the orig version set it always)

3. uyvy_to_i420 use by testcard and to_lavc

uyvy_to_i420: do not write out of bounds

If width % 2 = 1, 1 extra luma on first line of pair will override the
first luma on the second.
2025-04-01 14:02:30 +02:00