Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2e2fa2d6
Commit
2e2fa2d6
authored
Apr 13, 2020
by
Gyan Doshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/filters: clarify metadata and logging for blackdetect
parent
4e0cf81b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
filters.texi
doc/filters.texi
+14
-5
vf_blackdetect.c
libavfilter/vf_blackdetect.c
+0
-1
No files found.
doc/filters.texi
View file @
2e2fa2d6
...
...
@@ -6532,11 +6532,20 @@ Default is disabled.
Detect video intervals that are (almost) completely black. Can be
useful to detect chapter transitions, commercials, or invalid
recordings. Output lines contains the time for the start, end and
duration of the detected black interval expressed in seconds.
In order to display the output lines, you need to set the loglevel at
least to the AV_LOG_INFO value.
recordings.
The filter outputs its detection analysis to both the log as well as
frame metadata. If a black segment of at least the specified minimum
duration is found, a line with the start and end timestamps as well
as duration is printed to the log with level @code{info}. In addition,
a log line with level @code{debug} is printed per frame showing the
black amount detected for that frame.
The filter also attaches metadata to the first frame of a black
segment with key @code{lavfi.black_start} and to the first frame
after the black segment ends with key @code{lavfi.black_end}. The
value is the frame'
s
timestamp
.
This
metadata
is
added
regardless
of
the
minimum
duration
specified
.
The
filter
accepts
the
following
options
:
...
...
libavfilter/vf_blackdetect.c
View file @
2e2fa2d6
...
...
@@ -136,7 +136,6 @@ static int request_frame(AVFilterLink *outlink)
return
ret
;
}
// TODO: document metadata
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
picref
)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment