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
1515 - adecorrelate audio filter
1616 - atilt audio filter
1717 - grayworld video filter
18+- AV1 Low overhead bitstream format muxer
1819
1920
2021 version 4.4:
configure+1−0
@@ -3388,6 +3388,7 @@ mxf_opatom_muxer_select="mxf_muxer" · 3387 unmodified lines
33883388 nut_muxer_select="riffenc"
33893389 nuv_demuxer_select="riffdec"
33903390 obu_demuxer_select="av1_frame_merge_bsf av1_parser"
3391+obu_muxer_select="av1_metadata_bsf"
33913392 oga_muxer_select="ogg_muxer"
33923393 ogg_demuxer_select="dirac_parse"
33933394 ogv_muxer_select="ogg_muxer"
doc/general_contents.texi+1−0
@@ -599,6 +599,7 @@ library: · 598 unmodified lines
599599 @item raw NULL @tab X @tab
600600 @item raw video @tab X @tab X
601601 @item raw id RoQ @tab X @tab
602+@item raw OBU @tab X @tab X
602603 @item raw SBC @tab X @tab X
603604 @item raw Shorten @tab @tab X
604605 @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
379379 OBJS-$(CONFIG_NUV_DEMUXER) += nuv.o
380380 OBJS-$(CONFIG_AV1_DEMUXER) += av1dec.o
381381 OBJS-$(CONFIG_OBU_DEMUXER) += av1dec.o
382+OBJS-$(CONFIG_OBU_MUXER) += rawenc.o
382383 OBJS-$(CONFIG_OGG_DEMUXER) += oggdec.o \
383384 oggparsecelt.o \
384385 oggparsedirac.o \
libavformat/allformats.c+1−0
@@ -305,6 +305,7 @@ extern const AVInputFormat ff_nut_demuxer; · 304 unmodified lines
305305 extern const AVOutputFormat ff_nut_muxer;
306306 extern const AVInputFormat ff_nuv_demuxer;
307307 extern const AVInputFormat ff_obu_demuxer;
308+extern const AVOutputFormat ff_obu_muxer;
308309 extern const AVOutputFormat ff_oga_muxer;
309310 extern const AVInputFormat ff_ogg_demuxer;
310311 extern const AVOutputFormat ff_ogg_muxer;
libavformat/rawenc.c+20−0
@@ -453,6 +453,26 @@ const AVOutputFormat ff_mpeg2video_muxer = { · 452 unmodified lines
453453 };
454454 #endif
455455
456+#if CONFIG_OBU_MUXER
457+static 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+
463+const 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+
456476 #if CONFIG_RAWVIDEO_MUXER
457477 const AVOutputFormat ff_rawvideo_muxer = {
458478 .name = "rawvideo",
libavformat/version.h+2−2
@@ -32,8 +32,8 @@ · 31 unmodified lines
3232 // Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
3333 // Also please add any ticket numbers that you believe might be affected here
3434 #define LIBAVFORMAT_VERSION_MAJOR 59
35−#define LIBAVFORMAT_VERSION_MINOR 4
36−#define LIBAVFORMAT_VERSION_MICRO 102
35+#define LIBAVFORMAT_VERSION_MINOR 5
36+#define LIBAVFORMAT_VERSION_MICRO 100
3737
3838 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
3939 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