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
569721ac
Commit
569721ac
authored
Aug 01, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Add mpeg2_metadata bitstream filter
(cherry picked from commit
b78c30d7
)
parent
278c308c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
351 additions
and
0 deletions
+351
-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
+312
-0
No files found.
configure
View file @
569721ac
...
...
@@ -2917,6 +2917,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 @
569721ac
...
...
@@ -324,6 +324,42 @@ See also the @ref{text2movsub} filter.
Decompress non-standard compressed MP3 audio headers.
@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 mpeg4_unpack_bframes
Unpack DivX-style packed B-frames.
...
...
libavcodec/Makefile
View file @
569721ac
...
...
@@ -1027,6 +1027,7 @@ OBJS-$(CONFIG_MPEG4_UNPACK_BFRAMES_BSF) += mpeg4_unpack_bframes_bsf.o
OBJS-$(CONFIG_MOV2TEXTSUB_BSF)
+=
movsub_bsf.o
OBJS-$(CONFIG_MP3_HEADER_DECOMPRESS_BSF)
+=
mp3_header_decompress_bsf.o
\
mpegaudiodata.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 @
569721ac
...
...
@@ -38,6 +38,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_mp3_header_decompress_bsf
;
extern
const
AVBitStreamFilter
ff_mpeg2_metadata_bsf
;
extern
const
AVBitStreamFilter
ff_mpeg4_unpack_bframes_bsf
;
extern
const
AVBitStreamFilter
ff_mov2textsub_bsf
;
extern
const
AVBitStreamFilter
ff_noise_bsf
;
...
...
libavcodec/mpeg2_metadata_bsf.c
0 → 100644
View file @
569721ac
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