Clément Bœsch
60ea6b0996
lavfi/buffersink: typo fix in a comment.
13 years ago
Nicolas George
aa1246ea42
lavfi: unify src_buffer and buffersrc.
...
Most of the code is moved to buffersrc.c
to help Git see the similarities.
src_buffer.c still contains the obsolete compatibility functions.
The format change detection code was removed as it has been
implemented directly in ffmpeg.
It can easily be brought back from the history.
13 years ago
Nicolas George
7997fc49ef
lavfi: remove stray reference to planar/packed.
13 years ago
Nicolas George
9567f410aa
avfilter: move some fields in AVFilterLink.
...
It restores ABI compatibility with libav.
The fields that move were very recent or morally private.
13 years ago
Clément Bœsch
48f30595f5
pan: use ff_parse_channel_layout() instead of av_get_channel_layout().
...
This allow specifying hexadecimal channel layout, and also handle the
error printing internally.
13 years ago
Clément Bœsch
64ff8a7670
lavfi: rename all_channel_layouts.h to all_channel_layouts.inc.
...
all_channel_layouts.h is not a real header file and breaks make checkheaders.
13 years ago
Clément Bœsch
f8f3deb731
lavfi/transform: fix make checkheaders.
13 years ago
Michael Niedermayer
96ac8663de
af_aresample: Consider the swresample delay during calculating timestamps.
...
The difference from this should be pretty small.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6ba692f8a7
af_aresample: fix rounding that led to sample accumulation in the buffers.
...
This fixes a regression that apparently was missed when switching to the
in af resampler
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
db6ef054f5
af_aresample: 10l fix, wrong timebase for next_pts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
17d4233c9c
lavfi/aevalsrc: reindent after the previous commit
13 years ago
Stefano Sabatini
e1a8df70a2
lavfi/aevalsrc: add option channel_layout
...
Allow to explicitly specify the channel layout to select.
13 years ago
Stefano Sabatini
cfde7395b1
lavfi/aevalsrc: remove limitation on the number of channels
13 years ago
Michael Niedermayer
847943bc51
aresample: add code to flush the internal swr buffer.
...
Inspired-by code from af_resample.c written by Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b3e1b95afa
aresample: check return code of swr_convert()
...
Issue found by comparing af_resample.c and af_aresample.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b13d39bd81
av_aresample: Allow changing sample format and channel layout as well
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
5dbd66395a
lavfi/pan: add supported sample rates to avoid a crash.
13 years ago
Michael Niedermayer
3ae64dc48f
avfiltergraph: use aresample not aconvert in the alternative merge code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e3c6b61263
af_aresample: support all swresample parameters.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
47c2e52bc6
af_aresample: fix typo in query formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ac87c273a6
src_buffer: propagate errors from copy_buffer_ref()
...
Fixes a null ptr deref
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
fc49f22c3b
ffmpeg: add support for audio filters.
...
Some of the FATE changes are due to off-by-one different rounding being used
(lrintf vs av_rescale_q).
Some fate changes are due to 1 audio frame less being encoded (the new variant seems
matching what qatar does and according to ffprobe its closer to the requested duration)
the mapchan feature sadly is lost in this commit because it depends on resampling
being done in ffmpeg.c which is now moved completely into the av filter layer
-async is broken after this commit, this will be fixed in subsequent commits
the new filter reconfiguration system is flawed and will drop a frame on each
parameter change which is why the nelly moser checksums need updating.
Conflicts:
ffmpeg.c
tests/ref/fate/smjpeg
13 years ago
Michael Niedermayer
dfa988ee5e
libavfilter: src_buffer: add time_base for audio
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
aa69db3abf
libavfilter: src_buffer: fix planar audio
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
664f0aac62
libavfilter: src_buffer, use only aresample, not aconvert.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
13fdb35535
src_buffer: fix query_formats_audio()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3448404a70
libavfilter: add ff_parse_time_base()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3e2cf79e15
buffersrc: export forgotten function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
e556121ec1
lavfi/aevalsrc: correct the supported sample format
...
The source supports *planar* double, fix regression introduced by me in
4d4098da
.
13 years ago
Stefano Sabatini
986d2f6ec0
lavfi/aevalsrc: fix sample rate negotiation, after the last merge
...
Fix crash.
13 years ago
Stefano Sabatini
4d4098da00
lavfi: drop planar/packed negotiation support
...
The planar/packed switch and the packing_formats list is no longer
required, since the planar/packed information is now stored in the sample
format enum.
This is technically a major API break, possibly it should be not too
painful as we marked the audio filtering API as unstable.
13 years ago
Michael Niedermayer
88d5cfe7c8
avfiltergraph: switch to swresample by default
...
all known bugs in the interface code have been fixed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
efdc895fbd
lavfi: fix pts rescaling in the resampler
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
75492cce8e
lavfi: fix resample with differing formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
91791ac2ed
avfilter: Move ff_get_ref_perms_string() to where it is used.
...
This fixes a compilation failure with -DDEBUG.
13 years ago
Michael Niedermayer
47aae2bc2e
lavfi: switch to _alt functions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
d89eca507c
Add missing version bumps and APIchanges/Changelog entries.
13 years ago
Anton Khirnov
4a1ac8c43f
lavfi: move buffer management function to a separate file.
13 years ago
Anton Khirnov
4c64fed37c
lavfi: move formats-related functions from default.c to formats.c
...
It's more convenient to have them all in one file.
13 years ago
Anton Khirnov
c5432d3ca4
lavfi: move video-related functions to a separate file.
...
This is easier to follow than having them randomly scattered in
avfilter.c and defaults.c.
13 years ago
Anton Khirnov
9f26421b0b
lavfi: add asyncts filter.
13 years ago
Anton Khirnov
fb604ae850
lavfi: add aformat filter
...
Based on a patch by Mina Nagy Zaki <mnzaki@gmail.com>
13 years ago
Anton Khirnov
a2cd9be212
lavfi: add an audio buffer sink.
13 years ago
Anton Khirnov
4c66c40718
lavfi: add an audio buffer source.
13 years ago
Anton Khirnov
720c6b78d1
buffersrc: add av_buffersrc_write_frame().
...
It's the same as av_vsrc_buffer_add_frame(), except it doesn't take pts
or pixel_aspect parameters. Those are read from AVFrame.
Deprecate av_vsrc_buffer_add_frame().
13 years ago
Anton Khirnov
8b05e13df3
buffersrc: fix invalid read in uninit if the fifo hasn't been allocated
13 years ago
Anton Khirnov
fad729fa50
lavfi: rename vsrc_buffer.c to buffersrc.c
...
Most of the code will be shared for both audio and video version.
13 years ago
Anton Khirnov
fd127ede62
avfiltergraph: reindent
13 years ago
Anton Khirnov
ff1f51a8aa
lavfi: add channel layout/sample rate negotiation.
13 years ago
Anton Khirnov
5775a1832c
lavfi: add types and functions for channel layout/samplerate negotiation
13 years ago