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 ESMTP id 6456E4A3AF for ; Wed, 27 Mar 2024 12:05:45 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0252D68D650; Wed, 27 Mar 2024 14:05:44 +0200 (EET) Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6DD9A68D62B for ; Wed, 27 Mar 2024 14:05:38 +0200 (EET) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a467d8efe78so797443866b.3 for ; Wed, 27 Mar 2024 05:05:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711541137; x=1712145937; darn=ffmpeg.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=BpNX7h8dR/smXYWTCoqtm8pzAZFVdQEiNf/pL7kYdsk=; b=G+cnys5u+U9B6MUzyxkxwPdASaoMMKwPuPZCOxspLUuTSSfblkwHTOZH8i+FTgtpPc gqqqcQux9xfByGC14+OePT14V0OJGahqYnfE3aQbbIHMjVwjGfIh/lYbfN13B6iRBJne JKBSQcDo59/bzG9654BDWBQE+vxkbhbEjNQ7GKJ5H6+Fz5m5qO6BEvvdCMw9wVkXuRX4 BbYDQYH3HLDgycbR8J3WXUGH9wScklmDSRTv3S4bX1u7siUoMDsVvm4ICxnhGMJ6SfY7 lkYNfVlbOa3u3w/CKB12Axet6s7/D69H4SJnOmFS69dIB+zNWaLv46wds17Te7L+P5fm u/jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711541137; x=1712145937; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BpNX7h8dR/smXYWTCoqtm8pzAZFVdQEiNf/pL7kYdsk=; b=hg45pm5T8ntjLzmkWZpNBSKsU84mbZMhvOZ+oEp6a3CUazQPE1qEDEsIHDYZHP8Z32 1GgnsdIeRvl32/OWTKPUmfvFUhaAAkbMQZUxeyQW2QGwAAIDFdHLx286Pg1z25/IQmSN SbATGtEYWlp6lonVv6vi+dhbizmWT6XrwfhRemXv34225/hBjRdSUh+RExAoWj3UlKKF J/64Vzu+IKODvTrXnBvmiF8Y3oand7LkHMDyeh+nqVq27Ziu8+qkuFNgjUZ0pafh5qti be9qu1HF301Ck5l3wjdlGRfZP64DEdtsV54semdqcbyJ/F++myfF+n+2GUO/IHk1w33v 9tFw== X-Gm-Message-State: AOJu0YzDcFAE4GkW/QF+Xua3pwSP0jmOnV5rSIljhrnMryDwvrPzKOcm VhU5/P7gWTiovML+HxS4orm5ij6YytR8J+jlrYFkaPeTlGn5ZL72dIDH51Xn X-Google-Smtp-Source: AGHT+IH655J+Tpi03sjCf9gZIcEiKUREbX/DVlZzBKCl2JjBsQcOxWRtpcEywWSDuVtNQajuKXXPcQ== X-Received: by 2002:a17:907:bb85:b0:a46:a1d0:8451 with SMTP id xo5-20020a170907bb8500b00a46a1d08451mr963923ejc.16.1711541137333; Wed, 27 Mar 2024 05:05:37 -0700 (PDT) Received: from mariano (net-93-70-84-101.cust.vodafonedsl.it. [93.70.84.101]) by smtp.gmail.com with ESMTPSA id kh12-20020a170906f80c00b00a413d1eda4bsm5326847ejb.87.2024.03.27.05.05.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 05:05:36 -0700 (PDT) Received: by mariano (Postfix, from userid 1000) id C2EE6BFCE0; Wed, 27 Mar 2024 12:59:59 +0100 (CET) Date: Wed, 27 Mar 2024 12:59:59 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches , Antoine Soulier References: <20240326230757.282319-1-asoulier@google.com> <20240326230757.282319-4-asoulier@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240326230757.282319-4-asoulier@google.com> User-Agent: Mutt/2.1.4 (2021-12-11) Subject: Re: [FFmpeg-devel] [PATCH 4/5] doc: Add LC3/LC3plus muxer and encoder parameters documentation 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: Antoine Soulier 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: On date Tuesday 2024-03-26 23:07:56 +0000, ffmpeg-devel Mailing List wrote: > Signed-off-by: Antoine Soulier > --- > doc/encoders.texi | 57 +++++++++++++++++++++++++++++++++++++++ > doc/general_contents.texi | 11 +++++++- > doc/muxers.texi | 6 +++++ > 3 files changed, 73 insertions(+), 1 deletion(-) > > diff --git a/doc/encoders.texi b/doc/encoders.texi > index 7c223ed74c..0719ba13cc 100644 > --- a/doc/encoders.texi > +++ b/doc/encoders.texi > @@ -814,6 +814,63 @@ ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a > @end example > @end itemize > > +@anchor{liblc3-enc} > +@section liblc3 > + > +liblc3 LC3 (Low Complexity Communication Codec) encoder wrapper. > + > +Requires the presence of the liblc3 headers and library during configuration. > +You need to explicitly configure the build with @code{--enable-liblc3}. > + > +This encoder has support for the Bluetooth SIG LC3 codec for the LE Audio > +protocol, and the following features of LC3plus: > +@itemize @minus nit: you can skip @minus (I don't think it's much used in other places) > +@item > +Frame duration of 2.5 and 5ms. > +@item > +High-Resolution mode, 48 KHz, and 96 kHz sampling rates. > +@end itemize > + > +For more information see the liblc3 project at > +@url{https://github.com/google/liblc3}. > + > +@subsection Options > + > +The following options are mapped on the shared FFmpeg codec options. > + > +@table @option > +@item b nit: here and below you can use: @item b @var{bitrate} to clarify the argument content > +Set the bit rate in bits/s. This will determine the fixed size of the encoded > +frames, for a selected frame duration. > + > +@item ar > +Set the audio sampling rate (in Hz). > + > +@item channels > +Set the number of audio channels. > + > +@item frame_duration > +Set the audio frame duration in milliseconds. Default value is 10ms. > +Allowed frame durations are 2.5ms, 5ms, 7.5ms and 10ms. > +LC3 (Bluetooth LE Audio), allows 7.5ms and 10ms; and LC3plus 2.5ms, 5ms > +and 10ms. > + > +The 10ms frame duration is available in LC3 and LC3 plus standard. > +In this mode, the produced bitstream can be referenced either as LC3 or LC3plus. > + > +@item high_resolution in this case it would be @var{bool} > +Enable the high-resolution mode if set to 1. The high-resolution mode is > +available with all LC3plus frame durations and for a sampling rate 48 KHz, something is missing, for a sampling rate _of_ 48 KHz ? > +and 96 KHz. > + > +The encoder automatically turns off this mode at lower sampling rates and > +activates it at 96 KHz. > + > +This mode should be preferred at high bitrates. In this mode, the audio > +bandwidth is always up to the Nyquist frequency, compared to LC3 at 48 KHz, > +which limits the bandwidth to 20 KHz. > +@end table > + > @anchor{libmp3lame} > @section libmp3lame > > diff --git a/doc/general_contents.texi b/doc/general_contents.texi > index f269cbd1a9..e7cf4f8239 100644 > --- a/doc/general_contents.texi > +++ b/doc/general_contents.texi > @@ -237,6 +237,14 @@ Go to @url{http://sourceforge.net/projects/opencore-amr/} and follow the > instructions for installing the library. > Then pass @code{--enable-libfdk-aac} to configure to enable it. > > +@subsection LC3 library > + > +FFmpeg can make use of the Google LC3 library for LC3 decoding & encoding. > + > +Go to @url{https://github.com/google/liblc3/} and follow the instructions for > +installing the library. > +Then pass @code{--enable-liblc3} to configure to enable it. > + > @section OpenH264 > > FFmpeg can make use of the OpenH264 library for H.264 decoding and encoding. > @@ -1300,7 +1308,8 @@ following image formats are supported: > @tab encoding and decoding supported through external library libilbc > @item IMC (Intel Music Coder) @tab @tab X > @item Interplay ACM @tab @tab X > -@item MACE (Macintosh Audio Compression/Expansion) 3:1 @tab @tab X > +@item LC3 @tab E @tab E > + @tab supported through external library liblc3 > @item MACE (Macintosh Audio Compression/Expansion) 6:1 @tab @tab X > @item Marian's A-pac audio @tab @tab X > @item MI-SC4 (Micronas SC-4 Audio) @tab @tab X > diff --git a/doc/muxers.texi b/doc/muxers.texi > index a10a8e216f..9687746c30 100644 > --- a/doc/muxers.texi > +++ b/doc/muxers.texi > @@ -2612,6 +2612,12 @@ WebDAV server every second: > ffmpeg -f x11grab -framerate 1 -i :0.0 -q:v 6 -update 1 -protocol_opts method=PUT http://example.com/desktop.jpg > @end example > > +@section lc3 > +Bluetooth SIG Low Complexity Communication Codec audio (LC3), or > +ETSI TS 103 634 Low Complexity Communication Codec plus (LC3plus). > + > +This muxer accepts a single @code{lc3} audio stream. > + > @section matroska LGTM otherwise, thanks. Note: you might move the doc bits to the relevent functional changes and drop this patch. _______________________________________________ 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".