Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svt/ffmpeg-filter-proxy
FFmpeg video proxy filter
https://github.com/svt/ffmpeg-filter-proxy
ffmpeg filter video-processing
Last synced: 3 months ago
JSON representation
FFmpeg video proxy filter
- Host: GitHub
- URL: https://github.com/svt/ffmpeg-filter-proxy
- Owner: svt
- License: lgpl-2.1
- Created: 2020-03-27T09:30:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-17T12:29:49.000Z (4 months ago)
- Last Synced: 2024-10-19T16:56:43.943Z (4 months ago)
- Topics: ffmpeg, filter, video-processing
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 4
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ffmpeg-filter-proxy
A [FFMpeg][1] video filter proxy.
## Purpose
- To make it easier to develop and test video filters for use in [FFmpeg][1].
- To make it easier to implement a video filter using different programming
languages.## Proxied filter
A dynamic shared object that provides the following signatures:
- `int filter_init(const char *config, void **user_data)`
- `int filter_frame(unsigned char *data, unsigned int data_size, int width, int height, int line_size, double ts_millis, void *user_data)`
- `void filter_uninit(void *user_data)`On success, `filter_init` and `filter_frame` should return `0`.
A nonzero return value signals an error.The `config` parameter to `filter_init` is filter implementation specific.
It could be a config filename or the complete config, or `NULL` if the proxied
filter doesn't need any specific configuration.## Limitations
Only `AV_PIX_FMT_BGRA` is used right now since that's what we need.
It is possible though, to preserve 10 bit colors using the `clear` param in combination with FFmpegs split and overlay filters:
`-filter_complex "split=2[main][over1];[over1]proxy=clear=1:[over2];[main][over2]overlay=format=yuv420p10`
## License
Copyright 2020 Sveriges Television AB.
This software is released under the GNU Lesser General Public License
version 2.1 or later (LGPL v2.1+).## Primary Maintainers
Christer Sandberg
[1]: https://www.ffmpeg.org