Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b78c30d7
Commit
b78c30d7
authored
Aug 01, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Add mpeg2_metadata bitstream filter
parent
2bc9ba8d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
0 deletions
+39
-0
configure
configure
+1
-0
bitstream_filters.texi
doc/bitstream_filters.texi
+36
-0
Makefile
libavcodec/Makefile
+1
-0
bitstream_filters.c
libavcodec/bitstream_filters.c
+1
-0
mpeg2_metadata_bsf.c
libavcodec/mpeg2_metadata_bsf.c
+0
-0
No files found.
configure
View file @
b78c30d7
...
...
@@ -2329,6 +2329,7 @@ h264_metadata_bsf_select="cbs_h264"
h264_redundant_pps_bsf_select
=
"cbs_h264"
hevc_metadata_bsf_select
=
"cbs_h265"
mjpeg2jpeg_bsf_select
=
"jpegtables"
mpeg2_metadata_bsf_select
=
"cbs_mpeg2"
trace_headers_bsf_select
=
"cbs_h264 cbs_h265 cbs_mpeg2"
# external libraries
...
...
doc/bitstream_filters.texi
View file @
b78c30d7
...
...
@@ -210,6 +210,42 @@ avconv -i frame_%d.jpg -c:v copy rotated.avi
@section movsub
@section mpeg2_metadata
Modify metadata embedded in an MPEG-2 stream.
@table @option
@item display_aspect_ratio
Set the display aspect ratio in the stream.
The following fixed values are supported:
@table @option
@item 4/3
@item 16/9
@item 221/100
@end table
Any other value will result in square pixels being signalled instead
(see H.262 section 6.3.3 and table 6-3).
@item frame_rate
Set the frame rate in the stream. This is constructed from a table
of known values combined with a small multiplier and divisor - if
the supplied value is not exactly representable, the nearest
representable value will be used instead (see H.262 section 6.3.3
and table 6-4).
@item video_format
Set the video format in the stream (see H.262 section 6.3.6 and
table 6-6).
@item colour_primaries
@item transfer_characteristics
@item matrix_coefficients
Set the colour description in the stream (see H.262 section 6.3.6
and tables 6-7, 6-8 and 6-9).
@end table
@section mp3_header_compress
@section mp3_header_decompress
...
...
libavcodec/Makefile
View file @
b78c30d7
...
...
@@ -786,6 +786,7 @@ OBJS-$(CONFIG_IMX_DUMP_HEADER_BSF) += imx_dump_header_bsf.o
OBJS-$(CONFIG_MJPEG2JPEG_BSF)
+=
mjpeg2jpeg_bsf.o
OBJS-$(CONFIG_MJPEGA_DUMP_HEADER_BSF)
+=
mjpega_dump_header_bsf.o
OBJS-$(CONFIG_MOV2TEXTSUB_BSF)
+=
movsub_bsf.o
OBJS-$(CONFIG_MPEG2_METADATA_BSF)
+=
mpeg2_metadata_bsf.o
OBJS-$(CONFIG_NOISE_BSF)
+=
noise_bsf.o
OBJS-$(CONFIG_NULL_BSF)
+=
null_bsf.o
OBJS-$(CONFIG_REMOVE_EXTRADATA_BSF)
+=
remove_extradata_bsf.o
...
...
libavcodec/bitstream_filters.c
View file @
b78c30d7
...
...
@@ -37,6 +37,7 @@ extern const AVBitStreamFilter ff_imx_dump_header_bsf;
extern
const
AVBitStreamFilter
ff_mjpeg2jpeg_bsf
;
extern
const
AVBitStreamFilter
ff_mjpega_dump_header_bsf
;
extern
const
AVBitStreamFilter
ff_mov2textsub_bsf
;
extern
const
AVBitStreamFilter
ff_mpeg2_metadata_bsf
;
extern
const
AVBitStreamFilter
ff_null_bsf
;
extern
const
AVBitStreamFilter
ff_text2movsub_bsf
;
extern
const
AVBitStreamFilter
ff_noise_bsf
;
...
...
libavcodec/mpeg2_metadata_bsf.c
0 → 100644
View file @
b78c30d7
This diff is collapsed.
Click to expand it.
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