From patchwork Tue Mar 28 13:47:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dawid Kozinski X-Patchwork-Id: 40890 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:7a30:b0:df:834d:2c1a with SMTP id t48csp2195833pzh; Tue, 28 Mar 2023 06:47:27 -0700 (PDT) X-Google-Smtp-Source: AKy350adUMffPYW/Lj5aoZ1xFY37LDcw/KAAafavkfNvwAGgyk5cGNxmZZn4iKMKjFBTWSB3OyvV X-Received: by 2002:a17:907:207b:b0:923:6558:84fb with SMTP id qp27-20020a170907207b00b00923655884fbmr15502539ejb.3.1680011247392; Tue, 28 Mar 2023 06:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011247; cv=none; d=google.com; s=arc-20160816; b=B80kKAScLJlJ6ERf3qnGhpUs25dqI3UUriiSeyhYgLzFd31gJimlqkpOdCCNXyow3V abrxBvDUXMfEFNlxoMPcHMq9M225bKMCpmm4OiKO1MfwypH7iPAXZlNR4uBKiUNFVIrW RS7XUSVOiEE04xcihWSIIY1J8TOGFfW+G2aWfAQ+y/pg2js2p+YjNnqcXxP0kZt+2pCx S/UkpAbnuocwkP2jKh5eyr8fUyjrIKSJCxupd/Wj6bsxCjrtO/vTIwnDEYYYOefk1Ovs DiIYpyVURQj0DfiQA6vSWIRXEGF1ZciACcJFlLeOAwVFktzt038XXth/Uh3Dv6sYPbxT 8g9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:cms-type:mime-version :message-id:date:to:from:dkim-signature:dkim-filter:delivered-to; bh=YyPEuk/3XpY5xJiBbFhP9aku12gOscwhZ0d2o+9YRag=; b=aF1sn5k60fVzjZgAVm2sozu3+LgB3s74J9SWTzlkZ+NFCcYa6egeJ/GQodtw306CQQ 1lq5pgwQQhgxhondKEMQ5jZtgw4DKxyPnZxLI3x9AI0bRonk0SRz9m8MjqHkITukobAM XTqx9U5gT7HOTrhdg0UuPWMrTIetaKR4F8IKNb79AQlE3XT9rHFVdS/7z6CqZUjYOCwR vH6PpRnys3SsmFt7Cgdh7d4URJBRL/ri79Mk0QDcYwJYXU5FU0pvLhqv/whRlk3zvACD RndioO+KI6AnbioiwjqSWO8Xx9AexpPgPhGhcpc+YSd4WXstTWHSR5KVelyP02lWXBjq K0tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=hUXWQzRA; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id gb34-20020a170907962200b0093a0ef38401si21574986ejc.94.2023.03.28.06.47.24; Tue, 28 Mar 2023 06:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=hUXWQzRA; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D4E8668CB43; Tue, 28 Mar 2023 16:47:21 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0F0FA68CAB1 for ; Tue, 28 Mar 2023 16:47:16 +0300 (EEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230328134714euoutp013d5a9885f23cade7d17582ed4ddd0746~QmVElc3Lz3136031360euoutp01S for ; Tue, 28 Mar 2023 13:47:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230328134714euoutp013d5a9885f23cade7d17582ed4ddd0746~QmVElc3Lz3136031360euoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1680011234; bh=sfP9fXeVQZCnBihkd6bclU660PBiv56rnF5/LGTWUl0=; h=From:To:Cc:Subject:Date:References:From; b=hUXWQzRAGxP/i4XlFA1COgPzR8fSNJMJi479uI3dWezzP1n3pedOZSDz3QdiAZJLf x5eI9On8OxefZPAT+HwmHRKL3baRcpdKoape5jS80rYwfSvPWnMHm2fP5JYgDfc0MB 0/KjxpWBr483DdgF14ilcBVkn2raUQ4MXllE6TyY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20230328134714eucas1p17deb37fbd69c752a8f74ddda5640f294~QmVEZSJfB2633826338eucas1p1V; Tue, 28 Mar 2023 13:47:14 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 47.6B.10014.2EFE2246; Tue, 28 Mar 2023 14:47:14 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230328134714eucas1p1bc1401eac8a48cc2dbe5914fdfb33706~QmVEIu4i02415424154eucas1p1f; Tue, 28 Mar 2023 13:47:14 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230328134714eusmtrp29dfd8dc75062fb92bc7338b28b9f8543~QmVEIL-0A1965619656eusmtrp2Q; Tue, 28 Mar 2023 13:47:14 +0000 (GMT) X-AuditID: cbfec7f5-ba1ff7000000271e-66-6422efe20e07 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 52.F9.09583.2EFE2246; Tue, 28 Mar 2023 14:47:14 +0100 (BST) Received: from AMDN5164.EU.corp.samsungelectronics.net (unknown [106.210.132.171]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230328134714eusmtip16122bb8ae0b3fabf1b21a13dae7588aa~QmVD2AbKr2432524325eusmtip19; Tue, 28 Mar 2023 13:47:13 +0000 (GMT) From: Dawid Kozinski To: d.frankiewic@samsung.com, ffmpeg-devel@ffmpeg.org Date: Tue, 28 Mar 2023 15:47:01 +0200 Message-Id: <20230328134701.613-1-d.kozinski@samsung.com> X-Mailer: git-send-email 2.37.3.windows.1 MIME-Version: 1.0 X-Unsent: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFIsWRmVeSWpSXmKPExsWy7djPc7qP3iulGKx4pGjx5doXZouV336z WHz7dIbZgdnjz6LNLB59W1YxBjBFcdmkpOZklqUW6dslcGW0tf9hL/ggWrGzoZGxgbFNsIuR k0NCwETiw6R9rF2MXBxCAisYJebO+c0C4XxhlHixYR87hPOZUeLekaOMXYzsYC2zLCDCyxkl Zq5aCdXQziSx6/ZNNpCxbAK6Ei8/PGICsUUETCVONu8FizMLaEusu/sdzBYWqJPY1rKbBcRm EVCVWN19hxnE5hWwlDiydikTxHmaEhO2zGGCiAtKnJz5hAUizi2xbtYlVoiZ8hLNW2czgxwh IfCTXeLFwy+MEEUuEh/PT4caJCzx6vgWdghbRuL/zvlAcQ4gu1jiUL8DhFkjcehHOkSFtcTb xuOMIGFmoBPW79KHCDtKNF17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ilOBgVhLh/X1NKUWINyWxsiq1KD++qDQntfgQoynQrROZpUST 84Fxk1cSb2hmYGpoYmZpYGppZqwkzutZ0JEoJJCeWJKanZpakFoE08fEwSnVwNQVq/VNy9Bn r/Li7e3CP9ZWzj/OpqyvLTSbS1Pm1Nmfaxaret69E2n8v0Z8/adeLv6Y6ccYEpOTZ1bw1+Q6 buTanR2zr9znRe3Jr0Kv4tW5P+bJuxgtzBO19l+oPPO6/KMDjN/7hePvBx9vs1kqI6DPNu90 24ub7cJHIqZ82j35eb8O18ltkTN2p0yU3z2z9ltSsWaryux3Ttopu6fx9dQeNdLbsiToxzmn wnmCYZ5nCqaJPlu22OjUmdWrFy3K/yM28Y3KifB8zQ9HmV9ozrxayFX40dh3woeLW+Kspjfo 2fLwxX2cwr5+5t3e72pH/mk33QoV/Fowc7vGViFXd581PAcP/OI31N5mUbP022olluKMREMt 5qLiRACZZMwo4wIAAA== X-CMS-MailID: 20230328134714eucas1p1bc1401eac8a48cc2dbe5914fdfb33706 X-Msg-Generator: CA X-RootMTR: 20230328134714eucas1p1bc1401eac8a48cc2dbe5914fdfb33706 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230328134714eucas1p1bc1401eac8a48cc2dbe5914fdfb33706 References: Subject: [FFmpeg-devel] [PATCH v18 03/10] avformat/evc_muxer: Added muxer to handle writing EVC encoded data into file or output bytestream X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Dawid Kozinski Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 8JFhBSpkI4pE - Provided AVOutputFormat structure describing EVC output format (ff_evc_muxer) - Added documentation for EVC muxer Signed-off-by: Dawid Kozinski --- doc/muxers.texi | 6 ++++++ libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 13 +++++++++++++ 4 files changed, 21 insertions(+) diff --git a/doc/muxers.texi b/doc/muxers.texi index 79dd864182..eee3e7c526 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -2120,6 +2120,12 @@ DTS Coherent Acoustics (DCA) audio. Dolby Digital Plus, also known as Enhanced AC-3, audio. +@subsection evc + +MPEG-5 Essential Video Coding (EVC) / EVC / MPEG-5 Part 1 EVC video. + +Extensions: evc + @subsection g722 ITU-T G.722 audio. diff --git a/libavformat/Makefile b/libavformat/Makefile index 048649689b..fafed6d129 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -251,6 +251,7 @@ OBJS-$(CONFIG_HCOM_DEMUXER) += hcom.o pcm.o OBJS-$(CONFIG_HDS_MUXER) += hdsenc.o OBJS-$(CONFIG_HEVC_DEMUXER) += hevcdec.o rawdec.o OBJS-$(CONFIG_HEVC_MUXER) += rawenc.o +OBJS-$(CONFIG_EVC_MUXER) += rawenc.o OBJS-$(CONFIG_HLS_DEMUXER) += hls.o hls_sample_encryption.o OBJS-$(CONFIG_HLS_MUXER) += hlsenc.o hlsplaylist.o avc.o OBJS-$(CONFIG_HNM_DEMUXER) += hnm.o diff --git a/libavformat/allformats.c b/libavformat/allformats.c index cb5b69e9cd..203188cb27 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -154,6 +154,7 @@ extern const AVInputFormat ff_ea_cdata_demuxer; extern const AVInputFormat ff_eac3_demuxer; extern const FFOutputFormat ff_eac3_muxer; extern const AVInputFormat ff_epaf_demuxer; +extern const FFOutputFormat ff_evc_muxer; extern const FFOutputFormat ff_f4v_muxer; extern const AVInputFormat ff_ffmetadata_demuxer; extern const FFOutputFormat ff_ffmetadata_muxer; diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c index 78fadda967..70d6322c53 100644 --- a/libavformat/rawenc.c +++ b/libavformat/rawenc.c @@ -401,6 +401,19 @@ const FFOutputFormat ff_hevc_muxer = { }; #endif +#if CONFIG_EVC_MUXER +const FFOutputFormat ff_evc_muxer = { + .p.name = "evc", + .p.long_name = NULL_IF_CONFIG_SMALL("raw EVC video"), + .p.extensions = "evc", + .p.audio_codec = AV_CODEC_ID_NONE, + .p.video_codec = AV_CODEC_ID_EVC, + .init = force_one_stream, + .write_packet = ff_raw_write_packet, + .p.flags = AVFMT_NOTIMESTAMPS, +}; +#endif + #if CONFIG_M4V_MUXER const FFOutputFormat ff_m4v_muxer = { .p.name = "m4v",