Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
ff68ceb1
Commit
ff68ceb1
authored
10 years ago
by
Kevin Mitchell
Committed by
Michael Niedermayer
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
avfilter/vf_idet: add both multiple and single frame detection metadata
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b5583fc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/filters.texi
+28
-0
28 additions, 0 deletions
doc/filters.texi
libavfilter/version.h
+2
-2
2 additions, 2 deletions
libavfilter/version.h
libavfilter/vf_idet.c
+9
-4
9 additions, 4 deletions
libavfilter/vf_idet.c
with
39 additions
and
6 deletions
doc/filters.texi
+
28
−
0
View file @
ff68ceb1
...
@@ -5573,6 +5573,34 @@ Detect video interlacing type.
...
@@ -5573,6 +5573,34 @@ Detect video interlacing type.
This filter tries to detect if the input is interlaced or progressive,
This filter tries to detect if the input is interlaced or progressive,
top or bottom field first.
top or bottom field first.
The filter will log these metadata values:
@table @option
@item single.tff
Cumulative number of frames detected as top field first using single-frame detection.
@item multiple.tff
Cumulative number of frames detected as top field first using multiple-frame detection.
@item single.bff
Cumulative number of frames detected as bottom field first using single-frame detection.
@item multiple.bff
Cumulative number of frames detected as bottom field first using multiple-frame detection.
@item single.progressive
Cumulative number of frames detected as progressive using single-frame detection.
@item multiple.progressive
Cumulative number of frames detected as progressive using multiple-frame detection.
@item single.undetermined
Cumulative number of frames that could not be classified using single-frame detection.
@item multiple.undetermined
Cumulative number of frames that could not be classified using multiple-frame detection.
@end table
The filter accepts the following options:
The filter accepts the following options:
@table @option
@table @option
...
...
This diff is collapsed.
Click to expand it.
libavfilter/version.h
+
2
−
2
View file @
ff68ceb1
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
#include
"libavutil/version.h"
#include
"libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 5
#define LIBAVFILTER_VERSION_MAJOR 5
#define LIBAVFILTER_VERSION_MINOR
1
#define LIBAVFILTER_VERSION_MINOR
2
#define LIBAVFILTER_VERSION_MICRO 10
6
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
LIBAVFILTER_VERSION_MINOR, \
...
...
This diff is collapsed.
Click to expand it.
libavfilter/vf_idet.c
+
9
−
4
View file @
ff68ceb1
...
@@ -178,10 +178,15 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref)
...
@@ -178,10 +178,15 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref)
filter
(
ctx
);
filter
(
ctx
);
av_dict_set_int
(
metadata
,
"lavfi.idet.tff"
,
idet
->
prestat
[
TFF
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.single.tff"
,
idet
->
prestat
[
TFF
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.bff"
,
idet
->
prestat
[
BFF
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.single.bff"
,
idet
->
prestat
[
BFF
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.progressive"
,
idet
->
prestat
[
PROGRESSIVE
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.single.progressive"
,
idet
->
prestat
[
PROGRESSIVE
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.undetermined"
,
idet
->
prestat
[
UNDETERMINED
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.single.undetermined"
,
idet
->
prestat
[
UNDETERMINED
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.multiple.tff"
,
idet
->
poststat
[
TFF
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.multiple.bff"
,
idet
->
poststat
[
BFF
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.multiple.progressive"
,
idet
->
poststat
[
PROGRESSIVE
],
0
);
av_dict_set_int
(
metadata
,
"lavfi.idet.multiple.undetermined"
,
idet
->
poststat
[
UNDETERMINED
],
0
);
return
ff_filter_frame
(
ctx
->
outputs
[
0
],
av_frame_clone
(
idet
->
cur
));
return
ff_filter_frame
(
ctx
->
outputs
[
0
],
av_frame_clone
(
idet
->
cur
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment