1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 06:14:32 +00:00
Commit Graph

169 Commits

Author SHA1 Message Date
michael
9b2c81e1bb very simple filter which can remove a sine at a specified frequency, usefull to get rid of the 50/60hz noise on ultra crappy equipment
probably works only with 1 channel input


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18083 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-13 10:36:17 +00:00
corey
a6de87d626 Fix up libaf unknown-format printing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17877 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-15 21:32:10 +00:00
reynaldo
bfcb1f80f1 last print on libaf to af_msg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17864 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-14 16:57:16 +00:00
reynaldo
4e880d8076 added dinamically calculated gain factor at output stage to avoid clipping on sane ranges
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17813 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-11 21:16:59 +00:00
reimar
694f18ea46 fix memory leak when filter with given name does not exist.
Also prints which filter failed in the malloc-failed case


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17781 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 15:39:53 +00:00
reimar
6c232b95c4 We start with 0, so ch (channel number) == AF_NCH is invalid, too (not just >)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17775 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 13:00:51 +00:00
diego
8c317f72a7 Move conditional compilation out of the code and into the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17523 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-31 23:24:08 +00:00
diego
89d549f984 Make clean/distclean behave uniformly in all directories.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17489 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-27 00:06:42 +00:00
rathann
bb3f61e4ff This patch cleans up OPTFLAGS in Gui, removes hardcoded -Wall from
libaf's and libmenu's Makefiles and -g from main Makefile.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17382 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-13 23:38:16 +00:00
rathann
2601de4120 massive attack: mp_msg printf format fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-12 20:04:36 +00:00
reynaldo
553e29bf7e wrong output level calculation on af_equalizer leaded to low level output even with all octaves at 0db (default), patch by Corey Hickey bugfood-ml AT -fatooh/org-
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17069 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-01 03:14:21 +00:00
diego
8e2dea5f21 Unify include paths by adding -I.. to CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16983 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-13 18:28:44 +00:00
joey
8572f14094 Adds a target parameter to the volnorm filter.
This is useful to avoid clipping when processing data,
  but less important when watching a clip live.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16972 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-11 02:47:21 +00:00
ptt
6e1d740c4a MSGTR_MemAllocFailed printout changed to fit its definition in help/help_mp-en.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16905 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 00:45:56 +00:00
reimar
d475a9523f semi-hack: avoid passing 0-length blocks to audio filters.
Fixes bugzilla bug #391 (lavcresample crashes).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16816 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-20 09:12:28 +00:00
reimar
81827eb239 much simpler signed/unsigned conversion.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16665 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-04 21:49:56 +00:00
reimar
01ced1e49e documentation-only patch: make doxygen compatible and create
af_chain and af_filter doxygen modules.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16628 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-01 12:55:34 +00:00
reimar
e3d0df70fe Fix af_pan commandline mess and (hopefully) improve description.
It should now output the right number of channels and it doesn't silently
clamp values to the too restrictive [0, 1] range.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16494 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-09-15 11:41:23 +00:00
alex
e54b5d16df code reduction and less error prone, use the same table
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16260 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-18 11:37:16 +00:00
ivo
812ee3753e Removed in-filter int to float conversion. af_ladspa now demands floats as
that's what LADSPA filters use internally too. conversion from int, if needed,
is done by af_format as it's supposed to.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16196 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-10 23:27:39 +00:00
reimar
19760a4dca libavutil compile fix (working also with old libavcodec)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16169 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-01 22:09:17 +00:00
gpoirier
e5b52ff472 10l to beastd due to new libavutil introduction
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16168 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-01 21:16:43 +00:00
alex
221a599f2a added missing license header
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16116 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-27 11:09:42 +00:00
reimar
2066463ec5 Avoid hang with -af-adv force=3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16073 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-23 16:58:25 +00:00
reimar
d22ae4a4d9 make -srate work again, unify audio filter init and preinit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15812 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-24 10:50:53 +00:00
diego
8475733dc2 Fix mp_msg vs af_msg usage as pointed out by Ivo.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15792 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-21 01:00:35 +00:00
ivo
6a166ddf6a 10l for me. two usages of mp_msg instead of af_msg slipped through
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15791 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-20 23:50:42 +00:00
gpoirier
9dd8f241ac adds some more -identify output, patch by kiriuja < mplayer DASH patches PAM en DASH directo POUM net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15790 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-20 23:07:35 +00:00
ranma
2098665b8d Be more patch-friendly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15773 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-19 22:52:55 +00:00
henry
c9e396b898 - correct the argument in configure check for lrintf() to avoid a warning
- add -D_GNU_SOURCE where lrintf() is used, for the cases when -std=gnu99
  isn't available


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15597 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-30 08:57:30 +00:00
alex
f515356aa3 sanity checks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15539 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-21 15:05:31 +00:00
reimar
313cc2c955 actually output 2 channel audio (instead of 6 channel with 4 empty channels)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15385 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-09 19:46:49 +00:00
reimar
e331e6b94f Prevent segfault when filter chain is empty (e.g. because all
filters returned AF_DETACH). Fixes bugzilla bug #293.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15313 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-01 09:23:31 +00:00
reimar
b7f3811b29 Error out when invalid format is specified
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15312 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-01 09:02:25 +00:00
henry
4ad21b2d7e change list traversal so the loop begins at the first filter after removing
one, instead at the second


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15192 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-16 16:48:15 +00:00
henry
1fd3c733d8 More HRTF enhancements
- a passive locking mechanism to enable the matrix to switch between active
and passive mode, which enhances the stereo image.

- a center front cancellation algorithm that damps the cross-talk if the
sound is coming predominantly from center (e.g. if there is dialogue).

These two new features should enhance the quality of surround downmix
noticeably.

Also a correction to the active gain control is included. The previous
implementation of Lt + Rt/Lt - Rt AGC should be fine in most cases, but the
calculation was inconsistent (gain unitarity is not guaranteed to be
preserved).

Signed off by Yue Shi Lai <ylai@users.sourceforge.net>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15125 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-11 14:01:29 +00:00
henry
108b3bc6a5 HRTF filter updates:
- Bass compensation gain corrected (which was set too low), now the
  sound should be even more transparent
- A (unified) dual axes active matrix decoder with adaptive steering
  - capable of decoding matrix surround encoded inputs, with stereo rear
  - capable of decoding matrix encoded rear center
- Purely stereo mixing without unneccessary rear filter calculations
- The decoding structure message is moved, because at the old place it
  gave incorrect messages.

Patch by Yue Shi Lai <ylai@users.sourceforge.net>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15083 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-10 08:47:16 +00:00
rathann
d8cd8fd5e9 obvious typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14884 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-03-01 22:52:02 +00:00
ivo
4c3d533c7d 10l fix. misplaced ;
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14849 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-27 22:36:04 +00:00
alex
6dbf6b4df1 finally remove the refences to bps outside libaf. also simplification of some messages and removed redundants
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14819 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-25 11:11:07 +00:00
alex
104f9e8872 better infoline
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14817 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-25 10:43:31 +00:00
rfelker
e6819bc591 100l for me, lrintf is better. now fixed so it should be prototyped, and should work even if there is no prototype
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14792 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-24 16:48:18 +00:00
rfelker
66b1d8c94b finally the dreaded white-noise-with-floats bug is fixed!!!!
the problem is that lrintf was not prototyped on some systems, but
it's easier and faster just not to use it at all. looks like the cola
goes to our friends the glibc developers for forgetting to put lrintf
in math.h in some versions. :))) i'm sure there are other broken libcs
too though.

also fixed a minor bug in the int->float conversion where the range
for float samples was exceeded...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14759 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-22 02:12:58 +00:00
alex
5aa4b2505f filter for adding a center channel, adding a high pass filter would be nice
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14751 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-21 17:14:00 +00:00
alex
f139d7ead2 filter for adding a center channel, adding a high pass filter would be nice
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14750 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-21 17:08:45 +00:00
alex
f3cfe83983 move the format related stuff to format.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14749 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-21 16:41:15 +00:00
reimar
80ddeccff9 confusing mixture of typecasts and casted variable, removed typecasts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14718 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-17 15:35:44 +00:00
henry
e1b32c8f54 removed forgotten old license clause
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14657 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-05 16:57:45 +00:00
alex
bf4b07cf12 now supports float based operation aswell
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14625 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-31 11:46:01 +00:00
alex
4ec530c8a0 using af_softclip
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14624 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-31 11:43:36 +00:00