Commit Graph

6824 Commits

Author SHA1 Message Date
Martin Pulec
066dec5287 audio: small refactor
moved the code to audio_decoder_state_create()
2022-10-26 11:10:01 +02:00
Martin Pulec
75bc9e0a30 replaced unqualified move with std::move
see also commit 3bee13f
2022-10-26 10:22:23 +02:00
Martin Pulec
cdf96b75fc handle audio resampler init exception gracefully
Catch the exception. Can occur mainly if wrong '--param resampler='
option is given.
2022-10-26 10:07:14 +02:00
Martin Pulec
45b815952b DeckLink disp.: small updates
- try to minimize git diff with fc5f482 for DeckLink disp
- hide the resampler parameters to fullhelp
2022-10-26 09:20:50 +02:00
Martin Pulec
bbdc0efb0c moved DeckLink drift related code to sep. file. 2022-10-26 09:20:50 +02:00
Martin Pulec
befb613532 DeckLink disp.: AudioDriftFixer - del default dct.
Removed default destructor - the values were hardcoded anyways, so use
brace-or-equals initializers directly.
2022-10-26 09:20:50 +02:00
Martin Pulec
787731fd96 DeckLink disp.: simplified parsing
rather hard-fail than silently continue (user may not see the message)
2022-10-26 09:20:50 +02:00
Martin Pulec
a6235673d5 DeckLink disp.: don't measure dur. of (audio) putf
Frame scheduling is clearly non-blocking but even the sync calls are
non-blocking - for video, next video frame is replaced, for audio, the
samples are written to ring buffer (with possible overflow). So the
numbers are almost everytime near zero.
2022-10-26 09:20:50 +02:00
Martin Pulec
45c33130ba moved DecklinkAudioSummary calls to AudioDriftFixer 2022-10-26 09:20:49 +02:00
Martin Pulec
8039506d72 DeckLink disp.: simplify _init
this reverts the corresponding changes in db20fa3
2022-10-26 09:20:49 +02:00
Martin Pulec
44c77fa88e fixed log levels
reverted some increased verbosity from merge
2022-10-26 09:20:49 +02:00
Martin Pulec
603d5f8b6d CI: added Soxr 2022-10-26 09:20:49 +02:00
Martin Pulec
dd28beea10 configure: warn if neither Soxr nor SpeexDSP found 2022-10-26 09:20:49 +02:00
Martin Pulec
179c3f6b88 readded SpeexDSP resampler 2022-10-26 09:20:45 +02:00
Martin Pulec
1de6e15f83 sox_resampler: reinit on channel count change 2022-10-25 16:28:22 +02:00
Martin Pulec
897538e48d sox_resampler: added missing deleter 2022-10-25 16:28:22 +02:00
Martin Pulec
20c2d8540c audio_frame2_resampler: hide implementation
use pimpl pattern
2022-10-25 16:26:11 +02:00
Martin Pulec
a5c059da60 moved audio resampler to separate file 2022-10-25 15:51:03 +02:00
Martin Pulec
d19135f979 soxr_resampler: reflect bps change
If bps is changed, the resampler must be rebuilt.
2022-10-25 15:51:03 +02:00
Martin Pulec
bb9fb011da audio resampler: separate impl from iface
made API for resamplers (mainly to readd speex)
2022-10-25 15:51:01 +02:00
Martin Pulec
f224e62872 DeckLink disp.: disable resampler by default 2022-10-25 15:50:11 +02:00
Martin Pulec
c302e11710 configure: fixed Soxr cflags var name 2022-10-25 15:50:11 +02:00
Martin Pulec
861a3e1de1 removed soxr submodule 2022-10-25 15:50:11 +02:00
Martin Pulec
226d828d4a fixed warnings when Soxr not available 2022-10-25 15:50:11 +02:00
Martin Pulec
1122cfe410 removed unused code after merge 2022-10-25 15:50:08 +02:00
Martin Pulec
ca5dd15587 audio_decoders: fixed removed codition with merge 2022-10-25 15:48:45 +02:00
Martin Pulec
14bff97622 Merge branch 'aw-sohonet-wip-deck-drift' 2022-10-25 15:47:31 +02:00
Martin Pulec
3b15dd2926 AppRun: do not print misleading message
Do not warn that bundled libva is used when libavcodec is not compiled
at all.
2022-10-24 15:06:53 +02:00
Martin Pulec
168f282536 main: do not show help on '-d gl:help'
Processing arguments actually "wipes" help from argv (optarg is split by
'\0' to a driver name and its arguments). Thus evaluate help before option
parsing.
2022-10-24 15:06:53 +02:00
Martin Pulec
0ad25c6c6d create-appimage.sh: extract mkappimage if no fuse
extract mkappimage if fuse is not available, eg. in docker containers

+ use curl instead of wget - curl is already used a line above so it
  must be present, wget don't
2022-10-24 15:06:53 +02:00
Martin Pulec
3830817f17 create-appimage.sh: added another excludelist opts
- use local version if available in $CWD
- if wget fails, try curl
2022-10-24 15:06:53 +02:00
Martin Pulec
dae8192c4d CI Linux: build own SDL2
This fixed crashing on Wayland (only - Weston without XWayland) in both U20.04 and
U22.04.
2022-10-24 15:06:23 +02:00
Martin Pulec
0a894d9f4b CI Linux FFmpeg: disable SDL2
we don't need it as FFmpeg dep and it adds needless dependency
2022-10-24 11:49:22 +02:00
Martin Pulec
0b0fb18747 CI Linux: fixed FFmpeg dep path 2022-10-24 11:49:22 +02:00
Martin Pulec
21b8e2e40f control socket: moved a init msg to control_start
When in control_init, it has been displayed eg. even on '-d gl:help'
while it was not accurate since the control_thread was newer run,
anyways.
2022-10-24 08:09:08 +02:00
Martin Pulec
2f03636d02 NDI disp.: added norgb option
Some NDI receivers do not support RGB (including NDI Studio Monitor).

GH issue #250
2022-10-21 16:05:19 +02:00
Martin Pulec
6b6070dcef AppRun: fixed exiting if TERM is not defined
tput returns non-zero if TERM is not set (eg. run by the CI check) and
shell is set to errexit (-e). (Previously the return value was hidden by
return value of calling echo).
2022-10-21 15:27:46 +02:00
Martin Pulec
762dbb0eae AppRun: colored output 2022-10-21 14:45:22 +02:00
Martin Pulec
fba27c434b Revert "AppRun: added libva-wayland to preload"
This reverts commit e687bd35ac.

This currently cause following error on Arch:

    expr: symbol lookup error: /lib/libva-wayland.so.2: undefined symbol: wl_proxy_marshal_flags
    id: symbol lookup error: /lib/libva-wayland.so.2: undefined symbol: wl_proxy_marshal_flags
2022-10-21 14:45:22 +02:00
Martin Pulec
8ff9156b53 CI Linux: moved FFmpeg deps install to sep file
The file with dependencies installation is a prerequisity for FFmpeg
rebuild so move it to a smaller file to reduce number of required FFmpeg
rebuilds if that file changes.

Install libopencv-core-dev instead of libopencv-dev because it
transitively (libopencv-highgui-dev) depend on libswscale-dev that is
going to be removed.
2022-10-21 14:45:18 +02:00
Martin Pulec
2db2a73803 resize cap. f.: replace opencv.hpp -> imgproc.hpp
Replaced generic opencv.hpp with imgproc.hpp - the former one includes
dependencies on headers that may not be available (at least U18.04 has
this header in -core but references also non-core components).
2022-10-21 12:18:58 +02:00
Martin Pulec
dd817a4f68 configure: allow configuration without pkg-config 2022-10-21 12:18:58 +02:00
Martin Pulec
057aae7503 configure: remove unused OpenCV code 2022-10-21 12:18:58 +02:00
Martin Pulec
8b87811587 configure: removed duplicite HAVE_OPENCV
has exactly the same value as $opencv
2022-10-21 12:18:57 +02:00
Martin Pulec
6eeef0b635 configure: fail if OpenCV requested but not found 2022-10-21 12:18:57 +02:00
Martin Pulec
8413b6f117 Coverity CI: check result of submission
fail if was not successful (eg. quota reached)
2022-10-21 10:56:58 +02:00
Martin Pulec
0b157dae41 control socket: removed a duplicite function
already defined in utils/net.c
2022-10-21 09:07:42 +02:00
Martin Pulec
fa6ff516cd wav_reader: check read ds64 - check overflow 2022-10-21 08:24:21 +02:00
Martin Pulec
a005e9169e 3d-interlaced vo_postprocess fixed
fixed 6f6680fd & CID 401454
2022-10-21 08:18:39 +02:00
Martin Pulec
48ddd23ae1 blackmagic_common.cpp profiles: fixed notification
CID 401453
2022-10-21 08:18:39 +02:00