History

avformat: add an AV1 Low overhead bitstream format muxer

James Almer committed 5 years ago

Commit 8a6becc1 parent 2818b147 files · +27 −2Browse files

Unified · Split

7 files
  1. Changelog +1 −0
  2. configure +1 −0
  3. doc/general_contents.texi +1 −0
  4. libavformat/Makefile +1 −0
  5. libavformat/allformats.c +1 −0
  6. libavformat/rawenc.c +20 −0
  7. libavformat/version.h +2 −2
Changelog+1−0
@@ -15,6 +15,7 @@ version <next>: · 14 unmodified lines
15- adecorrelate audio filter15- adecorrelate audio filter
16- atilt audio filter16- atilt audio filter
17- grayworld video filter17- grayworld video filter
18- AV1 Low overhead bitstream format muxer
18 19
19 20
20version 4.4:21version 4.4:
configure+1−0
@@ -3388,6 +3388,7 @@ mxf_opatom_muxer_select="mxf_muxer" · 3387 unmodified lines
3388nut_muxer_select="riffenc"3388nut_muxer_select="riffenc"
3389nuv_demuxer_select="riffdec"3389nuv_demuxer_select="riffdec"
3390obu_demuxer_select="av1_frame_merge_bsf av1_parser"3390obu_demuxer_select="av1_frame_merge_bsf av1_parser"
3391obu_muxer_select="av1_metadata_bsf"
3391oga_muxer_select="ogg_muxer"3392oga_muxer_select="ogg_muxer"
3392ogg_demuxer_select="dirac_parse"3393ogg_demuxer_select="dirac_parse"
3393ogv_muxer_select="ogg_muxer"3394ogv_muxer_select="ogg_muxer"
doc/general_contents.texi+1−0
@@ -599,6 +599,7 @@ library: · 598 unmodified lines
599@item raw NULL @tab X @tab599@item raw NULL @tab X @tab
600@item raw video @tab X @tab X600@item raw video @tab X @tab X
601@item raw id RoQ @tab X @tab601@item raw id RoQ @tab X @tab
602@item raw OBU @tab X @tab X
602@item raw SBC @tab X @tab X603@item raw SBC @tab X @tab X
603@item raw Shorten @tab @tab X604@item raw Shorten @tab @tab X
604@item raw TAK @tab @tab X605@item raw TAK @tab @tab X
libavformat/Makefile+1−0
@@ -379,6 +379,7 @@ OBJS-$(CONFIG_NUT_MUXER) += nutenc.o nut.o · 378 unmodified lines
379OBJS-$(CONFIG_NUV_DEMUXER) += nuv.o379OBJS-$(CONFIG_NUV_DEMUXER) += nuv.o
380OBJS-$(CONFIG_AV1_DEMUXER) += av1dec.o380OBJS-$(CONFIG_AV1_DEMUXER) += av1dec.o
381OBJS-$(CONFIG_OBU_DEMUXER) += av1dec.o381OBJS-$(CONFIG_OBU_DEMUXER) += av1dec.o
382OBJS-$(CONFIG_OBU_MUXER) += rawenc.o
382OBJS-$(CONFIG_OGG_DEMUXER) += oggdec.o \383OBJS-$(CONFIG_OGG_DEMUXER) += oggdec.o \
383 oggparsecelt.o \384 oggparsecelt.o \
384 oggparsedirac.o \385 oggparsedirac.o \
libavformat/allformats.c+1−0
@@ -305,6 +305,7 @@ extern const AVInputFormat ff_nut_demuxer; · 304 unmodified lines
305extern const AVOutputFormat ff_nut_muxer;305extern const AVOutputFormat ff_nut_muxer;
306extern const AVInputFormat ff_nuv_demuxer;306extern const AVInputFormat ff_nuv_demuxer;
307extern const AVInputFormat ff_obu_demuxer;307extern const AVInputFormat ff_obu_demuxer;
308extern const AVOutputFormat ff_obu_muxer;
308extern const AVOutputFormat ff_oga_muxer;309extern const AVOutputFormat ff_oga_muxer;
309extern const AVInputFormat ff_ogg_demuxer;310extern const AVInputFormat ff_ogg_demuxer;
310extern const AVOutputFormat ff_ogg_muxer;311extern const AVOutputFormat ff_ogg_muxer;
libavformat/rawenc.c+20−0
@@ -453,6 +453,26 @@ const AVOutputFormat ff_mpeg2video_muxer = { · 452 unmodified lines
453};453};
454#endif454#endif
455 455
456#if CONFIG_OBU_MUXER
457static int obu_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
458{
459 AVStream *st = s->streams[0];
460 return ff_stream_add_bitstream_filter(st, "av1_metadata", "td=insert");
461}
462
463const AVOutputFormat ff_obu_muxer = {
464 .name = "obu",
465 .long_name = NULL_IF_CONFIG_SMALL("AV1 low overhead OBU"),
466 .extensions = "obu",
467 .audio_codec = AV_CODEC_ID_NONE,
468 .video_codec = AV_CODEC_ID_AV1,
469 .init = force_one_stream,
470 .write_packet = ff_raw_write_packet,
471 .check_bitstream = obu_check_bitstream,
472 .flags = AVFMT_NOTIMESTAMPS,
473};
474#endif
475
456#if CONFIG_RAWVIDEO_MUXER476#if CONFIG_RAWVIDEO_MUXER
457const AVOutputFormat ff_rawvideo_muxer = {477const AVOutputFormat ff_rawvideo_muxer = {
458 .name = "rawvideo",478 .name = "rawvideo",
libavformat/version.h+2−2
@@ -32,8 +32,8 @@ · 31 unmodified lines
32// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)32// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
33// Also please add any ticket numbers that you believe might be affected here33// Also please add any ticket numbers that you believe might be affected here
34#define LIBAVFORMAT_VERSION_MAJOR 5934#define LIBAVFORMAT_VERSION_MAJOR 59
35#define LIBAVFORMAT_VERSION_MINOR 435#define LIBAVFORMAT_VERSION_MINOR 5
36#define LIBAVFORMAT_VERSION_MICRO 10236#define LIBAVFORMAT_VERSION_MICRO 100
37 37
38#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \38#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
39 LIBAVFORMAT_VERSION_MINOR, \39 LIBAVFORMAT_VERSION_MINOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t