Clément Bœsch
304fdfe9f3
lavfi: add showwavespic filter
This is a variant of showwaves. It is implemented as a different filter
so that the user is not allowed to use meaningless options which belong
to showwaves (such as rate).
Major edits done by Stefano Sabatini, from a patch by ubitux.
See thread:
From: Clément Bœsch <u@pkh.me>
To: ffmpeg-devel@ffmpeg.org
Date: Wed, 24 Dec 2014 15:03:26 +0100
Subject: [FFmpeg-devel] [PATCH] avfilter/showwaves: add single_pic option
10 years ago
Michael Niedermayer
2a34b5099b
avfilter/avf_showwaves: Change enums to int, which are accessed via AVOption as int
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Clément Bœsch
ecafde6606
avfilter/showwaves: fix height range for cline mode
10 years ago
Clément Bœsch
f6950a077c
avfilter/showwaves: use INT16_MAX instead of a self defined macro
10 years ago
Marton Balint
86476c510e
avfilter/avf_showwaves: fix off by one error in loop condition
It caused segfaults.
Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Clément Bœsch
e298b2f5d6
avfilter/showwaves: align const mode values (cosmetics)
10 years ago
Clément Bœsch
e35fb5add4
avfilter/showwaves: add split_channels option
11 years ago
Clément Bœsch
ba29746feb
avfilter/showwaves: split out draw sample code
11 years ago
Clément Bœsch
f2f6d45dbd
avfilter/showwaves: add "cline" mode (centered line)
11 years ago
mrskman
6f3e15af84
avfilter/avf_showwaves: New p2p mode for showwaves filter
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Paul B Mahol
b211607b5c
avfilter: various cosmetics
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
6347824d53
lavfi/showwaves: fix floating exception with >8 channels
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
c645659988
lavfi/showwaves: fix crash in case of negative linesize
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Clément Bœsch
3c2e4c2a9b
lavfi/showwaves: switch to an AVOptions-based system.
12 years ago
Paul B Mahol
ac44e52f50
lavfi/showwaves: make use of AV_OPT_TYPE_VIDEO_RATE
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Stefano Sabatini
e80be5a0aa
lavfi/showwaves: fail in case of push_frame() error
12 years ago
Stefano Sabatini
b7d34b328b
lavfi/showwaves: add display mode option and mode=line
12 years ago
Stefano Sabatini
5b10c5e7e4
lavfi/showwaves: fix check on showwaves->outpicref
outpicref is not always in synch with showwaves->outpicref, which is
changed as a side effect of the call to functions.
Fix regression introduced in 5f634480d1c4ed7711a15d1be07e49177cf351c1,
+10l to me.
12 years ago
Michael Niedermayer
e4eebc2da9
avf_showwaves: fix null pointer dereference
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
9262f13269
lavfi/show{spectrum,waves}: use ff_filter_frame().
12 years ago
Clément Bœsch
2d9d444051
lavfi: convert remaining input/output list compound literals to named objects.
This is following 568c70e79e
.
12 years ago
Michael Niedermayer
cd7febd33f
lavfi: replace filter_samples by filter_frame
Based on patch by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
1acd2f6ba7
Replace rest of libavutil/audioconvert.h with libavutil/channel_layout.h
Also remove it in once case when it is not needed.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Stefano Sabatini
b5436f4b5d
lavfi/showwaves: return error in case of allocation failure in filter_samples()
12 years ago
Stefano Sabatini
5f634480d1
lavfi/showwaves: simplify check in filter_samples()
Also fix Coverity issue CID 733743: Dereference after null check
12 years ago
Paul B Mahol
e870a7dd4a
lavfi: stop using -1 instead use AV_PIX_FMT_NONE/AV_SAMPLE_FMT_NONE
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Stefano Sabatini
42d621d131
lavfi: add priv class to filter definitions and flags to filter internal options
This allows the iteration callbacks to discover the internal class and
options, and show them when required.
12 years ago
Clément Bœsch
cc650cf029
Remove "Error parsing options string [...]" messages.
This reduces from 3 to 2 messages for the same syntax error in ffprobe,
and from 4 to 3 in filters.
12 years ago
Stefano Sabatini
7afd42d9f2
lavfi/showwaves: do not set on outlink->out_buf the sent video frame
The video frame reference is passed along the filterchain, and is not
possessed anymore by the filter. If out_buf is not set to NULL, it will
be freed by ff_end_frame() causing a crash.
12 years ago
Nicolas George
612307978d
lavfi: change "transmedia" into "multimedia".
12 years ago
Stefano Sabatini
fda968aa8f
lavfi: decrease logging level of message showing initial parameters
Reduce log clutter, consistent with 1a49a169eb
.
13 years ago
Stefano Sabatini
abb0a9982f
lavfi: do not pass opaque field to init functions
Fix signature mismatch warnings.
13 years ago
Nicolas George
6fd0b55ab2
showwaves: fix PTS computation.
13 years ago
Nicolas George
6d627eae3c
showwaves: fix first sample of frame test.
Avoids a huge memleak when n != 1.
13 years ago
Stefano Sabatini
c17808cebd
lavfi: define macro AVFILTER_DEFINE_CLASS
The macro can be used to define consistently the internal class of a
filter, save some typing and factorize.
13 years ago
Stefano Sabatini
3ea3e32e03
lavfi: add showwaves filter
13 years ago