Martin Pulec
772ef5de19
utils/sdp: improved string handling
...
- use snprintf instead of strncat (better behavior - always appends \0 and
no need to subtract 1 from len /and expecting that there is \0 at the end)
- use actual string length with sizeof than STR_LEN (which may get
removed because it is misleading in respect to global STR_LENi value)
2024-02-05 16:42:31 +01:00
Martin Pulec
6b03287fa0
utils/sdp: use CRLF
...
CRLF should be used in SDP (the same as for HTTP for robots.txt+security)
2024-02-05 16:37:20 +01:00
Martin Pulec
f28371c2e0
utils/sdp: separate and export PT+rtpmap fn
...
Separated packet type computation + eventual rtpmap generation to a
separate function, that may be used also by RTSP.
2024-02-05 15:00:06 +01:00
Martin Pulec
731a48e94f
rxtx/sdp: default to mjpeg+mp3
...
Those doesn't need to be signalized in any way (PT is defined), so that
the receiver can play the streams directly without SDP - eg. `ffplay
rtp://[::1]:5004` (and similarly on port 5006).
MP3 (just added std TX) is set as default for RTSP as well - perhaps
not a big difference if MP3 or Opus so we do not need to handle two
cases. Also MP3 could be more compatible.
2024-02-05 09:40:49 +01:00
Martin Pulec
fcc7190bc6
transmit: support for RFC 2550 MP3 packetization
...
the packet header is very simple (just fragment offset)
2024-02-05 09:40:49 +01:00
Martin Pulec
e872453595
rxtx/sdp: print receiver for the stream
...
Print explicity that the SDP served over HTTP is valid only for the
specified receiver.
2024-02-05 09:40:43 +01:00
Martin Pulec
eb0f52e686
fix cycle in win_has_ancestor_process
...
In W11, there is a cycle between processes services.exe and wininit.exe:
```
[utils/win] have_ancestor: services.exe PID: 788, PPID: 892
[utils/win] have_ancestor: wininit.exe PID: 892, PPID: 788
```
which caused infinite cycle between these 2 processes.
2024-01-29 12:01:29 +01:00
Martin Pulec
bb2a72f67f
issue a warning in legacy W10 terminals (PS/cmd)
...
Those terminal emulators block stdout/stderr output when scrolled,
which effectively stops UltraGrid. The behavior doesn't occur in MS
Terminal app, which is encouraged instead.
Note that Windows Terminal still runs cmd.exe or powershell.exe as a shell
while the cmd/PS process can acts like both terminal emulator and
shell. We also do not trigger the warning if UG is run from within
MSYS2 terminal.
2024-01-29 12:00:44 +01:00
Martin Pulec
c074bdfd41
vcap/dshow: GetSubtypeName - handle non-printable characters
...
added resolve_fourcc to utils/string
- fixed wrong signal.h include guard (it should be definitely included
in mac, it was perhaps meant to be MSW, but it is needed there too)
- removed config*h
2024-01-25 17:07:41 +01:00
Martin Pulec
2f56acbf7a
vcap/dshow: optimized including
2024-01-25 17:07:39 +01:00
Martin Pulec
783fb8a5f9
vcap/dshow: print whole grabber out command + conv
...
Print the grabber format + set the conversion according to that format,
not the streaming format.
2024-01-25 17:07:39 +01:00
Martin Pulec
45f51f8bb0
display_gl_get_property: assert correct size
...
Enough space is rather assumed because in the oppiste case, hard-to-detect
behavior may occur, especially while the problem is not reported.
2024-01-22 12:53:14 +01:00
Martin Pulec
1fa19a6844
dshow: print error info
2024-01-19 16:49:58 +01:00
Martin Pulec
0db80ba471
JPEG read_dqt: improvements
...
- allow reading up to 4 quantization tables (extended mode)
- check errors (unsupported/wrong precision)
2024-01-16 14:45:50 +01:00
Martin Pulec
bbbf0bc7db
JPEG reader: handle quant tables more generically
...
- do not assume in reader indices 0 for Y a 1 for Cb/Cr
- check the RTP egligibility later
- handle lavc-compressed JPEG (using only table 0) properly, not as a
hack until today
2024-01-16 14:45:50 +01:00
Martin Pulec
5c35bddd4d
jpeg reader: RTP compatibility check to sep fn
2024-01-16 14:45:49 +01:00
Martin Pulec
64d088f5e7
SDP: set audio ch count 2 for Opus
...
According to RFC 7587, channel count must be set always to 2 (actual
channel count like mono is signalized in-band in Opus)
2024-01-08 17:18:31 +01:00
Martin Pulec
3d0fb3e5fd
simple_linked_list: replace NULL with nullptr
...
cstddef is not included, anyways
2023-11-30 16:35:15 +01:00
Martin Pulec
6183399199
fixed CID 424188, 42421{0,1,2,6}
...
COPY_INSTEAD_OF_MOVE
2023-11-30 16:05:54 +01:00
Martin Pulec
8b61234e9c
simple_linked_list_remove: return bool
...
+ modernize
2023-11-30 09:38:12 +01:00
Martin Pulec
c66d4f3194
unit_evaluate_dbl: renamed end_ptr var
...
Since now we receive endptr as a parameter, it is somehow misleading to
have both endptr and end_ptr vars. Use endptr_tmp instead.
2023-11-29 15:27:32 +01:00
Martin Pulec
40a7d04ec1
unit_evaluate[_dbl]: added endptr param
2023-11-29 15:27:32 +01:00
Martin Piatka
dd57e4ab86
testcard: diagonal pattern: Fix writing past bound
2023-11-21 13:33:03 +01:00
Martin Pulec
5d835ca100
fixed CID 424201
2023-11-21 10:04:10 +01:00
Martin Pulec
c6a53c7943
video_frame_pool: fixed CID 424191
...
\+ removed config*h inclusion (except of config_msvc.h which is still
needed)
2023-11-21 09:51:19 +01:00
Martin Piatka
9b1f2fea70
testcard: Add diagonal pattern generator
2023-11-14 14:37:55 +01:00
Martin Pulec
6b12ca5231
write_all: take the fd as 1st arg
...
Make the function more universal by not writting implicitly to
STDERR_FILENO.
2023-11-13 16:48:22 +01:00
Martin Pulec
88834e113b
parallel_pix_conv: accept 0 for thread count (auto)
...
\+ document
\+ remove inclusion of config*.h (in worker.h as well; fixed a guard
macro there as well)
\+ ptrdiff_t for iteration to compute in wider type (clang-tidy
bugprone-implicit-widening-of-multiplication-result)
2023-11-13 10:27:10 +01:00
Martin Pulec
c14ad5f95e
pixfmt_conv.h: small doxy update
...
\+ added some direct pixfmt_conv.h includes (in attempt to remove its
inclusion from video_codec.h, which finally didn't take place but still
it is better to include this directly)
2023-11-13 10:27:09 +01:00
Martin Pulec
deab6eecf9
thread.h: guard variables defined in host
...
This allows linking the file outside UltraGrid.
2023-11-13 10:25:19 +01:00
Martin Pulec
ddaba11059
fixed previous commit
...
pthread.h was not included in thread.c in the end
\+ small improvements
2023-11-10 16:04:53 +01:00
Martin Pulec
9f5530df1b
build: hedge lavc depends
...
Allow linking libavcodec conversions outside UG with reasonably small
amount of dependencies.
2023-11-10 15:49:53 +01:00
Martin Pulec
ea9558cab1
thread.c: removed SetThreadDescription ptype [Win]
...
already included in MinGW headers, moreover with additiona `__declspec
(dllimport)` attribute.
2023-11-08 16:54:06 +01:00
Martin Pulec
8b412140d7
renamed get_win_error->get_win32_error
...
it formats win32 errors, but not HRESULT in general
2023-10-27 12:18:17 +02:00
Martin Pulec
9ac5e932c5
hresult_to_str: use HRESULT_FACILITY win32 check
...
Not all upper 16 bits denote the facility, only least significant last
13 of them. Eg. the most significant bit set to 1 indicates error.
2023-10-27 12:13:08 +02:00
Martin Pulec
bf5e2f0896
win hresult_to_str: get_win_error for win32 errs
2023-10-26 15:32:13 +02:00
Martin Pulec
309f2dfa80
append_sig_desc: support for MSW
2023-10-26 09:18:57 +02:00
Martin Pulec
f3d7f996ce
strappend doxy: clarification + use case
2023-10-26 08:44:45 +02:00
Martin Pulec
06956f0544
print caught signal desc in verbose
2023-10-26 08:44:43 +02:00
Martin Pulec
fc9257053c
packet counter: modernize
2023-10-16 16:29:24 +02:00
Martin Pulec
2191dfd228
Revert "audio decompress: pass packet list (iterator)"
...
This reverts commit 29421cd1fe .
2023-10-16 16:19:56 +02:00
Martin Pulec
175844d63a
Revert "lavd audio: use packet API"
...
This reverts commit 7f810b8ddd .
2023-10-16 16:19:56 +02:00
Martin Pulec
0b33b0a781
Revert "packet counter: remoed unneeded packet store"
...
This reverts commit f106180bbf .
2023-10-16 16:19:56 +02:00
Martin Pulec
4bdac86e67
Revert "packet counter: modernize"
...
This reverts commit 371e99de02 .
2023-10-16 16:19:56 +02:00
Martin Pulec
447f1f3fd9
DeckLink disp.: use prefix-matching for "synchronized"
2023-10-12 16:53:53 +02:00
Martin Piatka
a1ac44a2e2
holepunch: add bind_ip option
2023-10-06 14:00:48 +02:00
Martin Piatka
1cbb716198
vcap/pipewire: Buildable without screencast dbus portal stuff
2023-10-05 16:05:17 +02:00
Martin Pulec
869fac9c78
win build fix
...
fixes Windows build
<https://github.com/CESNET/UltraGrid/actions/runs/6297538250/job/17094711745 >
2023-09-25 12:09:05 +02:00
Martin Pulec
84ba09f4f7
lavc: wrap codec lines
2023-09-15 15:36:43 +02:00
Martin Pulec
2f995895c8
rename indent_paragraph to wrap_paragraph
...
More suitable name - the function doesn't indent but just wraps long
lines.
2023-09-15 15:36:41 +02:00