From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id F327149776 for ; Wed, 23 Apr 2025 20:47:26 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A914168B253; Wed, 23 Apr 2025 23:46:42 +0300 (EEST) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 54ED968A0C3 for ; Wed, 23 Apr 2025 23:45:46 +0300 (EEST) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-39ee623fe64so239902f8f.1 for ; Wed, 23 Apr 2025 13:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20230601.gappssmtp.com; s=20230601; t=1745441145; x=1746045945; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=sTcBL8WVY9UV8yAATRUBIz5pC6D6Jwkg79GNB7hkz/o=; b=GFKMNsvL3vZCHwgCyYzlan4pdea/LTDN5FbM2Y3oZ/QSGXYlu4mIqVHvKc+0ohpNrK rAr63fNkW3YfSIBXsj7znw5EsYUgUBQTK/aoMSpQx2g7LGJGKuRiIEHgTmSsPeusrzSh ix3lUHUmUZ3ygWIapIZimRDdoZXJ3hY3NLhv6Oo1ROgNqELYWZAdpRCxEZyA4zpH2p+7 8zaTz+xe+ZBcWdul6Dp8HssaF4gpOsLV3rY5p9XUus5DFQvaBwUi6DcKhlC5ZToPIX3+ 7DZLpb+5Dx6TMxmO4/CdDIqF+GexUAUwum9XJQb5tbmXeAWb4fIt/qsowhOE2QVaffxn 73gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745441145; x=1746045945; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sTcBL8WVY9UV8yAATRUBIz5pC6D6Jwkg79GNB7hkz/o=; b=i6GMNi0pDPNCdmDUVHfb/EE0G3ALquHOOt6WnsEFLUs4xaNj3iuH7qXbco4Oi2FsW8 26iccrLofzYEsSl3WswlQlYIvQCB3DjUWNWCeVonSzJQXeEn5DOJDHYwgq885f6lMRtM XBhImK0CvzaEgBIItxoaiaRprghkTim5nX2Knp0Jx9pEUDLsYipu46LU1YfSQch6yDRD +uUw2aX2WUXmr6y+flLaJcj4ZyQ2cYthcZjlr5p/Je5rV7q0y7bdu+IbzTo+DeOK6Geg MMOJPBospAAM/FkMsfTeYXEHNNQU/Nn8ZerGGAsIE6PDCp1rpPCpTyx9+wvCIhfd5qu1 4y5g== X-Gm-Message-State: AOJu0Yy29AamSPR6ErXpJjaKNKcseNfiOmUkqjYN4mlhKyafrhY+qucI 1yJx5T1JyEyZuoFFngD6OovA8JDqJZXiItt9xlJEeNqmRuPYNrwRxhxEHvRAA2qR+xRxtzbnLqQ d X-Gm-Gg: ASbGncv2vR36+q1Z4PczuYMlwOF4UNEwCbKuwI/EQSGQZm20e74frXOyfMDXA8rFJVC 4EtmTUzIGILsDhZ+wZ6uiEjLfvHAzMxXhmeqY6+UEuUae+F4TqtCj3E7uawr8aYJLc55UAdep3Q k50JRqfJRO11YM3k7L0IO8OQ8coyCLDiSyNKAiAnEZsp6nfFLhvTduuU/sUW9gkF2Pgxg3Th2nw bF3puKZCDuRR28LIE3gquZNgDeHSP3Nx259hxoavZ4mDcYIXCXINNJH3g0mhA/9HS7WiRbalRc2 rn9/i6Z6nhky0WFfDgfn36BUqNIaCrMAEECtPRJ+nO2Q34fAKvIfa+r59a4sZ3/XKG8LPieJYUx oHasXVo80c1iDiaxa1bJnBt0= X-Google-Smtp-Source: AGHT+IG9NRp6zkuHTPJd2ABujk448sDr33KFaOGKb8iD6Rj7Cb0nWt0a7HRK2pA+YdumhN82k/OD0A== X-Received: by 2002:a5d:5888:0:b0:39f:28de:468 with SMTP id ffacd0b85a97d-3a06c4105e8mr845119f8f.28.1745441145414; Wed, 23 Apr 2025 13:45:45 -0700 (PDT) Received: from localhost.localdomain (cpc92320-cmbg19-2-0-cust719.5-4.cable.virginm.net. [82.13.66.208]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4408c8b0ea0sm33736775e9.2.2025.04.23.13.45.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Apr 2025 13:45:45 -0700 (PDT) From: Mark Thompson To: ffmpeg-devel@ffmpeg.org Date: Wed, 23 Apr 2025 21:45:25 +0100 Message-ID: <20250423204531.2432180-8-sw@jkqxz.net> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250423204531.2432180-1-sw@jkqxz.net> References: <20250423204531.2432180-1-sw@jkqxz.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 7/7] lavf: APV muxer 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/apvenc.c | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 libavformat/apvenc.c diff --git a/libavformat/Makefile b/libavformat/Makefile index ef96c2762e..6c9992adab 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -120,6 +120,7 @@ OBJS-$(CONFIG_APTX_MUXER) += rawenc.o OBJS-$(CONFIG_APTX_HD_DEMUXER) += aptxdec.o OBJS-$(CONFIG_APTX_HD_MUXER) += rawenc.o OBJS-$(CONFIG_APV_DEMUXER) += apvdec.o +OBJS-$(CONFIG_APV_MUXER) += apvenc.o OBJS-$(CONFIG_AQTITLE_DEMUXER) += aqtitledec.o subtitles.o OBJS-$(CONFIG_ARGO_ASF_DEMUXER) += argo_asf.o OBJS-$(CONFIG_ARGO_ASF_MUXER) += argo_asf.o diff --git a/libavformat/allformats.c b/libavformat/allformats.c index 90a4fe64ec..b5a23f9c17 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -73,6 +73,7 @@ extern const FFOutputFormat ff_aptx_muxer; extern const FFInputFormat ff_aptx_hd_demuxer; extern const FFOutputFormat ff_aptx_hd_muxer; extern const FFInputFormat ff_apv_demuxer; +extern const FFOutputFormat ff_apv_muxer; extern const FFInputFormat ff_aqtitle_demuxer; extern const FFInputFormat ff_argo_asf_demuxer; extern const FFOutputFormat ff_argo_asf_muxer; diff --git a/libavformat/apvenc.c b/libavformat/apvenc.c new file mode 100644 index 0000000000..9c4d33fdae --- /dev/null +++ b/libavformat/apvenc.c @@ -0,0 +1,40 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "libavcodec/apv.h" + +#include "avformat.h" +#include "mux.h" + +static int apv_write_packet(AVFormatContext *s, AVPacket *pkt) +{ + avio_wb32(s->pb, pkt->size); + avio_write(s->pb, pkt->data, pkt->size); + return 0; +} + +const FFOutputFormat ff_apv_muxer = { + .p.name = "apv", + .p.long_name = NULL_IF_CONFIG_SMALL("APV raw bitstream"), + .p.extensions = "apv", + .p.audio_codec = AV_CODEC_ID_NONE, + .p.video_codec = AV_CODEC_ID_APV, + .p.subtitle_codec = AV_CODEC_ID_NONE, + .flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH, + .write_packet = apv_write_packet, +}; -- 2.47.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".