ValdikSS
7a0e689c45
lavfi/subtitles: introduce stream_index
Signed-off-by: ValdikSS <iam@valdikss.org.ru>
11 years ago
Facundo Gaich
7e6b3ad693
lavfi/subtitles: load attached fonts to libass.
Videos with complex typesetting usually have font files embedded
as attachment streams. vf_subtitles now finds all attachment
streams with a MIME type associated with fonts and loads them
to libass so it can use them for rendering.
The code was basically ported from mpv's loadfile.c@929793be7
Signed-off-by: Facundo Gaich <facugaich@gmail.com>
11 years ago
Clément Bœsch
035a3792c2
lavfi/subtitles: zero-init AVSubtitle.
This avoids invalid free when the stream id doesn't match the packet
stream index.
Ticket #2501
12 years ago
Clément Bœsch
380cfce2b2
lavc: add AV_CODEC_PROP_TEXT_SUB.
CC are not marked. Also allow potential mixed types later.
12 years ago
Michael Niedermayer
fd6228e657
lavfi: remove now unused args parameter from AVFilter.init and init_opaque
This is mostly automated global search and replace
The deprecated aconvert filter is disabled, if it still has users
it should be updated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
e2b0edb6ac
lavfi/subtitles: switch to an AVOptions-based system.
12 years ago
Clément Bœsch
9e21c89841
lavfi/subtitles: use standard options parsing.
12 years ago
Clément Bœsch
9b9d996b34
lavfi/subtitles: fix recently introduced warning about discarded const qualifier.
12 years ago
Clément Bœsch
f3147917bf
lavf/subtitles: error out in case of bitmap subtitles.
12 years ago
Clément Bœsch
90fb3e9bee
lavfi/subtitles: set a different description between ass and subtitles.
12 years ago
Clément Bœsch
2a14b23484
lavfi: rename vf_ass.c to vf_subtitles.c
12 years ago
Clément Bœsch
08d149d688
lavfi/subtitles: support charenc option.
12 years ago
Clément Bœsch
3a0a959dcb
lavfi/subtitles: split options between ass and subtitles.
12 years ago
Nicolas George
c557a5b08e
lavfi/vf_ass: reindent after last commit.
12 years ago
Nicolas George
bb3303b94c
lavfi/vf_ass: ignore subtitles decoding errors.
A broken packet with invalid data in the middle of the stream
should not prevent from decoding the rest of the file.
Work around trac ticket #2264 .
12 years ago
Clément Bœsch
ab5497df15
lavfi/subtitles: 10l close codec before format.
Fix invalid memory accesses.
12 years ago
Clément Bœsch
3313e46c4a
lavfi: add subtitles filter.
12 years ago
Clément Bœsch
031d644878
lavfi/ass: switch to 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
Stefano Sabatini
faa1cb50ed
lavfi/ass: extend syntax for ass filter
Make the filter accept named options for the first argument, and update
documentation accordingly.
12 years ago
Clément Bœsch
74434d3bfe
lavfi/ass: mark ass_libavfilter_log_level_map as static const.
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
Nicolas George
ceb8dc1e04
vf_ass: fix permissions.
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
Michael Niedermayer
be4ffb28b3
vf_ass: fix table name to refer to correct lib.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
98701be356
lavfi/ass: update use of deprecated functions, fix warnings
13 years ago
Paul B Mahol
54101214d8
lavfi: use designated initializers for AVClass
While here:
- add missing .version and .category,
- make .class_name consistent across filters,
- align declarations.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Stefano Sabatini
0f0f3bd1e0
lavfi: use av_default_item_name() as filter private context logger
avfilter_default_filter_name() is supposed to access an AVFilterContext
struct, if used with a private struct it will cause a crash since it will
access fields which are non defined in the private struct.
13 years ago
Stefano Sabatini
4d6a8a2bdb
lavfi: add avfilter_default_filter_name()
The function is modelled after av_default_item_name(), and will print the
name of the instance filter if defined, otherwise the name of the filter.
This allows to show the instance name in the log, which is useful when
debugging complex filter graphs.
13 years ago
Nicolas George
2987efe9ba
vf_ass: use AV_OPT_TYPE_IMAGE_SIZE.
13 years ago
Nicolas George
6c7b5b7b33
vf_ass: use drawutils.
13 years ago
Nicolas George
247fbf071b
ass: fix aspect ratio computation.
13 years ago
Stefano Sabatini
8e0d3c0369
lavfi/ass: add dar option
Allow to specify the display aspect ratio adopted for rendering
subtitles.
13 years ago
Stefano Sabatini
c9399538b7
lavfi/ass: use a default DAR value of 1.0
Previously it was using the same value of the input video DAR, which is
inconsistent with most implementations.
Fix trac ticket #1098 .
13 years ago
Michael Niedermayer
b89f94077d
ass: fix DAR calculation.
Found-by: REN Lifeng <renlifeng@wowfly.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
28338bc2a3
lavfi: add libass based subtitles renderer
13 years ago