Anton Khirnov
4c973de9a5
vf_fieldorder: require write permissions
This filter modifies the input frame.
13 years ago
Anton Khirnov
49dd71a6f1
vf_fieldorder: reindent
13 years ago
Anton Khirnov
565e4993c6
lavfi: merge start_frame/draw_slice/end_frame
Any alleged performance benefits gained from the split are purely
mythological and do not justify added code complexity.
13 years ago
Anton Khirnov
bb6c67bb36
lavfi: remove vf_slicify
The following commit will make it useless.
The crop_scale_vflip FATE test changes because of off-by-one differences
in output when vflipped slices are passed to sws.
13 years ago
Anton Khirnov
af7d13ee4a
asink_nullsink: plug a memory leak.
13 years ago
Stefano Sabatini
2ac6a3d1bf
lavfi/drawtext: add support to expansion of generic expressions
13 years ago
Mark Himsley
13c6252536
lavfi/overlay: enable yuva420p as overlay background
Same calculation as for RGBA etc to create unpremultiplied output.
Useful for creating an intermediate "Mix/Effects bank", in vision mixer
(switcher) terminology.
Example command:
ffmpeg -i input.mov -vf
"[in]scale=iw:ih:interl=1,format=yuv420p[bg];movie=BBC_blocks_watermark.png,scale=iw:ih:interl=1,format=yuva420p[dog];movie=Kickabout_strap.mov,scale=iw:ih:interl=1,format=yuva420p[strap];[strap][dog]overlay=0:0[me1];[bg][me1]overlay=0:0,scale=0:0:interl=1[out]"
-b:v 3M -an output.mov
Fix trac ticket #549 .
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
13 years ago
Michael Niedermayer
8d231e37af
af_aresample: consistently use ROUNDED_DIV
This fixes issues with negative timestamps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4b5a12a2cb
af_aresample: fix rounding of negative timestamps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
69d45d2ecb
avfiltergraph: add aresample_swr_opts
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8f507feecb
avfiltergraph: add AVOption table
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
014058abea
af_aresample: check ff_get_audio_buffer() failure
Fixes null pointer dereference
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0efcf16a3e
replace av_log(0, by av_log(NULL,
The first parameter is a pointer and NULL is more correct
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c322f19855
vf_mandelbrot: give all av_log a context
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
f67ebf5b77
lavfi/avfiltergraph: improve error message in graph_check_validity()
Fix trac ticket #1944 .
13 years ago
Stefano Sabatini
eb87b340e8
lavfi/drawtext: add support for printing frame numbers
Fix trac ticket #1949 .
13 years ago
Michael Niedermayer
c44a028e19
af_aresample: allocate at least 1 sample buffer. Fix null ptr dereference.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
27d39c225b
liavfi/avcodec: allow channel layouts with fewer channels than actually available.
This fixes the regression with Ticket1726, where some audio was lost.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
158763312f
lavfi/frei0r: in init() check path loop, free resources in a single point
13 years ago
Stefano Sabatini
6c7ae49330
lavfi/frei0r: extend load_path() to support arbitrarily long paths
13 years ago
Clément Bœsch
f6be711a69
lavfi/mp/pp: use PP_CPU_CAPS_AUTO.
13 years ago
Nicolas George
c437c251b8
lavfi/drawtext: implement more generic expansion.
The new expansion mechanism uses the %{...} notation.
For compatibility reasons, it must be enabled explicitly,
but a warning is printed if a conflict is likely to happen.
13 years ago
Nicolas George
29e388abcb
lavfi/drawtext: use bprint for the expanded text.
13 years ago
Clément Bœsch
b3bf9b1d97
lavfi/geq: fix GPL license header.
100l: original code is GPL, header miscopied. LICENSE file and configure
dependency are fine.
13 years ago
Stefano Sabatini
334a0d15c6
lavfi/frei0r: add additional trailing slash in FREI0R_PATH paths
Allow to accept paths with no ending trailing slash.
Based on a patch by rogerdpack <rogerpack2005@gmail.com>.
13 years ago
Stefano Sabatini
9a2028d4f4
lavfi/frei0r: correctly handle paths longer than 1023 chars
13 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>
13 years ago
Stefano Sabatini
7945665200
lavfi: store and propagate number of channels information in audio buffer properties
The channels field is required since the channel layout is not always
available.
13 years ago
Clément Bœsch
3a7f00810c
lavfi: remove mp=geq filter.
Native geq video filter is now available.
13 years ago
Clément Bœsch
8eecbaf5e4
lavfi: add geq filter.
13 years ago
Clément Bœsch
2b3597f0d1
lavfi: remove mp=fixpts filter.
lavfi/f_setpts.c should allow everything mp=fixpts supports, with a lot
of additional control.
13 years ago
Clément Bœsch
84aed3faf0
lavfi: remove mp=tile filter.
The native tile video filter is now feature equivalent.
13 years ago
Clément Bœsch
7582012058
lavfi/tile: extend shorthand parameters.
This makes the syntax similar to mp=tile.
13 years ago
Clément Bœsch
4a90e7124d
lavfi/tile: add nb_frames option.
13 years ago
Clément Bœsch
ecfaff350f
lavfi/tile: add margin and padding options.
13 years ago
Clément Bœsch
aa5a029091
lavfi/tile: allow named arguments.
13 years ago
Justin Ruggles
a903f8f087
Include libavutil/channel_layout.h instead of libavutil/audioconvert.h
Also reorder some other #include when applicable.
13 years ago
Michael Niedermayer
47ca2487ae
lavfi/avcodec: check that injected avframes use a supported channel layout
This fixes out of array accesses.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a150bad406
lavfi/avcodec: check avfilter_copy_frame_props() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
2b442ff5f5
lavfi/movie: return proper error code in case of av_get_token() allocation failure
Also slightly clarify logic, and should fix coverity issue CID 717771.
13 years ago
Stefano Sabatini
b5436f4b5d
lavfi/showwaves: return error in case of allocation failure in filter_samples()
13 years ago
Stefano Sabatini
5f634480d1
lavfi/showwaves: simplify check in filter_samples()
Also fix Coverity issue CID 733743: Dereference after null check
13 years ago
Michael Niedermayer
44e9d7f182
vf_drawbox: dont move uninitialized and then unused colors around
Fixes CID741419
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 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>
13 years ago
Stefano Sabatini
1ba2459fbb
lavfi/scale: declare the filter private class
Allow to show the supported options in the ffmpeg -h full output.
13 years ago
Michael Niedermayer
4a2599b0e6
transform: give avfilter_transform() a return value for returning an error
Fixes CID703674
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
d034847f7a
lavfi/earwax: add missing NULL check in filter_samples()
13 years ago
Michael Niedermayer
ac2a3a7a05
vf_tinterlace: check av_image_get_linesize() return value
Fixes CID703717
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
03764f6735
af_earwax: remove unused pointer value
Fixes CID703849
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
b68aac7ea3
vf_drawtext: do not use deprecated av_tree_node_size
13 years ago