Commit Graph

10611 Commits

Author SHA1 Message Date
Martin Pulec
c3749bf63d signal names: handle Linux without glibc
(in general applies to any system exept of Win and macOS)
2025-04-14 15:44:11 +02:00
Martin Pulec
46ecc5ebda avoid use of strdupa 2025-04-14 15:44:10 +02:00
Martin Pulec
d2fab937f7 host/mtrace: use only if using glibc 2025-04-14 15:44:10 +02:00
Martin Pulec
222499a246 host/backtrace: do not use when glibc not used
compat eg. with musl
2025-04-14 15:44:10 +02:00
Martin Pulec
c5628a5a38 main: fix CID 480348
introduced by 0ccf0f24 (2025-04-10)
2025-04-14 15:44:10 +02:00
Martin Pulec
b14624c568 vdec/lavc: fix CID 480349
wrong condition by the recent commit 5affa4d7 (2025-04-10)
2025-04-14 15:44:10 +02:00
Martin Pulec
4ca8b23d07 vo_pp/text: fix CID 480350 2025-04-14 15:44:08 +02:00
Martin Pulec
b7b1d5bf23 vcap/ximea: fix CID 472112
a leak if sym not found
2025-04-11 15:35:05 +02:00
Martin Pulec
c488aa8bcc vcap/ndi: fix CID 472161
a leak on wrong option given by user
2025-04-11 15:19:20 +02:00
Martin Pulec
03d1b215df video_export: fix CID 472184 2025-04-11 14:55:05 +02:00
Martin Pulec
291e8fbf67 aplay/jack: fix CID 472186
a leak on error - call rather the _done function than custom clean-up
2025-04-11 14:50:17 +02:00
Martin Pulec
8b4bad096e rtp: fix CID 472187
fix a leak when udp_init fails
2025-04-11 14:45:55 +02:00
Martin Pulec
2574f5a66a vdisp/sdl2: fix CID 474380 2025-04-11 14:35:03 +02:00
Martin Pulec
55f2f98325 rtpdec/decode_hevc_nal_unit: fix CID 47962{0,1}
The aggregate packets with less than 2 aggregation units are prohibited
by the RFC 6184/7798 and since we must receive the whole UDP packets,
this should not happen (unless UDPlite would be used). But we could
perhaps expect broken encoder (this is std transmission).
2025-04-11 14:30:29 +02:00
Martin Pulec
5affa4d730 vdec/lavc: accept corrupted for all except MJPEG
Retestd with MJPEG, VP9, AV1 and HEVC and except the first one all
(AV1 is indecisive) seem to produce better results. Tested with:
```
tc qdisc replace dev lo root netem loss 0.1%
uv -t testcard:patt=text:s=1280x720 -c lavc:c=CODEC -d gl
```
and with `--param lavd-accept-corrupted[=no]`

Namely HEVC seem to produce significantly better results (often avoiding
the intra refresh wave).

This may be revided later (HW decoders, disabled intra refresh with
H.265 and so).
2025-04-11 12:01:23 +02:00
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
Stefan Hueneke
727b43e20e Merge pull request #5 from ATrivialAtomic/wip-cmpto-j2k-cpu-merge-check
Resolve merge conflicts
2025-04-02 12:10:10 -04:00