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
66408fce
Commit
66408fce
authored
Jul 21, 2016
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: add an Ogg Video muxer
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
ec0e888e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
2 deletions
+29
-2
Changelog
Changelog
+1
-0
configure
configure
+1
-0
Makefile
libavformat/Makefile
+2
-0
allformats.c
libavformat/allformats.c
+1
-0
oggenc.c
libavformat/oggenc.c
+23
-1
version.h
libavformat/version.h
+1
-1
No files found.
Changelog
View file @
66408fce
...
...
@@ -5,6 +5,7 @@ version <next>:
- libopenmpt demuxer
- tee protocol
- Changed metadata print option to accept general urls
- Alias muxer for Ogg Video (.ogv)
version 3.1:
...
...
configure
View file @
66408fce
...
...
@@ -2860,6 +2860,7 @@ nut_muxer_select="riffenc"
nuv_demuxer_select
=
"riffdec"
oga_muxer_select
=
"ogg_muxer"
ogg_demuxer_select
=
"dirac_parse"
ogv_muxer_select
=
"ogg_muxer"
opus_muxer_select
=
"ogg_muxer"
psp_muxer_select
=
"mov_muxer"
rtp_demuxer_select
=
"sdp_demuxer"
...
...
libavformat/Makefile
View file @
66408fce
...
...
@@ -340,6 +340,8 @@ OBJS-$(CONFIG_OGA_MUXER) += oggenc.o \
vorbiscomment.o
OBJS-$(CONFIG_OGG_MUXER)
+=
oggenc.o
\
vorbiscomment.o
OBJS-$(CONFIG_OGV_MUXER)
+=
oggenc.o
\
vorbiscomment.o
OBJS-$(CONFIG_OMA_DEMUXER)
+=
omadec.o
pcm.o
oma.o
OBJS-$(CONFIG_OMA_MUXER)
+=
omaenc.o
rawenc.o
oma.o
id3v2enc.o
OBJS-$(CONFIG_OPUS_MUXER)
+=
oggenc.o
\
...
...
libavformat/allformats.c
View file @
66408fce
...
...
@@ -225,6 +225,7 @@ void av_register_all(void)
REGISTER_DEMUXER
(
NUV
,
nuv
);
REGISTER_MUXER
(
OGA
,
oga
);
REGISTER_MUXDEMUX
(
OGG
,
ogg
);
REGISTER_MUXER
(
OGV
,
ogv
);
REGISTER_MUXDEMUX
(
OMA
,
oma
);
REGISTER_MUXER
(
OPUS
,
opus
);
REGISTER_DEMUXER
(
PAF
,
paf
);
...
...
libavformat/oggenc.c
View file @
66408fce
...
...
@@ -668,7 +668,10 @@ AVOutputFormat ff_ogg_muxer = {
.
name
=
"ogg"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Ogg"
),
.
mime_type
=
"application/ogg"
,
.
extensions
=
"ogg,ogv"
.
extensions
=
"ogg"
#if !CONFIG_OGV_MUXER
",ogv"
#endif
#if !CONFIG_SPX_MUXER
",spx"
#endif
...
...
@@ -705,6 +708,25 @@ AVOutputFormat ff_oga_muxer = {
};
#endif
#if CONFIG_OGV_MUXER
OGG_CLASS
(
ogv
,
Ogg
video
)
AVOutputFormat
ff_ogv_muxer
=
{
.
name
=
"ogv"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Ogg Video"
),
.
mime_type
=
"video/ogg"
,
.
extensions
=
"ogv"
,
.
priv_data_size
=
sizeof
(
OGGContext
),
.
audio_codec
=
CONFIG_LIBVORBIS_ENCODER
?
AV_CODEC_ID_VORBIS
:
AV_CODEC_ID_FLAC
,
.
video_codec
=
AV_CODEC_ID_THEORA
,
.
write_header
=
ogg_write_header
,
.
write_packet
=
ogg_write_packet
,
.
write_trailer
=
ogg_write_trailer
,
.
flags
=
AVFMT_TS_NEGATIVE
|
AVFMT_ALLOW_FLUSH
,
.
priv_class
=
&
ogv_muxer_class
,
};
#endif
#if CONFIG_SPX_MUXER
OGG_CLASS
(
spx
,
Ogg
Speex
)
AVOutputFormat
ff_spx_muxer
=
{
...
...
libavformat/version.h
View file @
66408fce
...
...
@@ -32,7 +32,7 @@
// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
// Also please add any ticket numbers that you belive might be affected here
#define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR 4
3
#define LIBAVFORMAT_VERSION_MINOR 4
4
#define LIBAVFORMAT_VERSION_MICRO 100
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
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