Re: [FFmpeg-devel] [PATCH] avformat/dashenc : Fix streaming mode support for webm output

2019-04-09 Thread Jeyapal, Karthick via ffmpeg-devel
On 4/8/19 7:37 PM, Andreas Rheinhardt via ffmpeg-devel wrote: > Karthick J via ffmpeg-devel: >> --- >> libavformat/dashenc.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c >&

Re: [FFmpeg-devel] [PATCH 1/1] libavformat/dashenc : Prevent writing manifest files multiple times

2019-04-10 Thread Jeyapal, Karthick via ffmpeg-devel
deo) { > +c->nr_of_streams_flushed++; > +if (c->nr_of_streams_flushed != c->nr_of_streams_to_flush) > +return ret; > + > +c->nr_of_streams_flushed = 0; > +} > ret = write_manifest(s, final); >

Re: [FFmpeg-devel] [RFC PATCH] avformat/utils: always seek back after avformat_find_stream_info()

2019-04-10 Thread Andreas Rheinhardt via ffmpeg-devel
the first megabyte of the >>> file still returned from API? Maybe they are being cached somewhere and I >>> did not notice. >>> >> >> As far as I know, the packets read during stream info probing are >> being cached in a buffer and returned to the caller

Re: [FFmpeg-devel] [PATCH] avformat/dashenc : Fix streaming mode support for webm output

2019-04-10 Thread Andreas Rheinhardt via ffmpeg-devel
Jeyapal, Karthick: > > On 4/8/19 7:37 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >> Karthick J via ffmpeg-devel: >>> --- >>> libavformat/dashenc.c | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git

Re: [FFmpeg-devel] Concatenate NAL units in av_write_frame call

2019-04-12 Thread Andreas Rheinhardt via ffmpeg-devel
nly for HEVC, but for other codecs as well. E.g. #6903 is about the H.264 analogue of this where remuxing fails because the a PES packet contained two separately coded fields the second of which lacked timestamps. - Andreas _______ ffmpeg-devel mailing list ffm

[FFmpeg-devel] [PATCH 1/3] lavf/webm_chunk: Respect buffer size

2019-04-13 Thread Andreas Rheinhardt via ffmpeg-devel
_get_frame_filename(filename, MAX_FILENAME_SIZE, s->url, wc->chunk_index - 1) < 0) { -- 2.19.2 _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe

[FFmpeg-devel] [PATCH 3/3] lavf/webm_chunk: Correct duration if start time > 0

2019-04-13 Thread Andreas Rheinhardt via ffmpeg-devel
gt;duration_written += av_rescale_q(pkt->pts - wc->prev_pts, + st->time_base, + (AVRational) {1, 1000}); wc->prev_pts = pkt->pts; } -- 2.19.2 _______ ffmpeg-deve

[FFmpeg-devel] [PATCH] avformat/matroskaenc: Improve log messages for blocks

2019-04-15 Thread Andreas Rheinhardt via ffmpeg-devel
gt;dts, pkt->duration, flags); +av_log(s, AV_LOG_DEBUG, "Writing block at relative offset %" PRId64 " in " + "cluster at offset %" PRId64 "; size %d, pts %" PRId64 ", dts %" PRId64 + ", duration %" PRId64 ",

Re: [FFmpeg-devel] [PATCH] avformat/dashenc: Disable streaming for webm output

2019-04-16 Thread Jeyapal, Karthick via ffmpeg-devel
ing the output > +av_log(s, AV_LOG_WARNING, "One or more streams in WebM > output format. Streaming option will be ignored\n"); > +c->streaming = 0; > +} > } > > ctx->oformat = av_guess_format(os->for

[FFmpeg-devel] [PATCH] avformat/dashenc: Fix a bug with writing "final" manifest

2019-04-16 Thread Karthick J via ffmpeg-devel
of_streams_flushed != c->nr_of_streams_to_flush) return ret; -- 2.20.1 (Apple Git-117) _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above,

Re: [FFmpeg-devel] [PATCH] Updated the documentation for libaom encoder options.

2019-04-17 Thread Sam John via ffmpeg-devel
t; +Flag to enable or disable the use of global motion for block prediction. > +The default value is true. > + > +@item enable-intrabc @var{boolean} > +Flag to enable or disable block copy mode for intra block prediction. > This mode is > +useful for screen content. The default va

[FFmpeg-devel] [PATCH] libavformat: fix inputs initialization in mpegts muxer with filters

2019-04-17 Thread Andreas Håkon via ffmpeg-devel
t->index, st->id); /* update flags */ if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA || is_intra_only(st->codecpar->codec_id)) -- 1.7.10.4 _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavformat: fix inputs initialization in mpegts muxer with filters

2019-04-18 Thread Andreas Håkon via ffmpeg-devel
puts_done = 1; return 0; +} } else if (ost->filter) { int i; for (i = 0; i < ost->filter->graph->nb_inputs; i++) { -- 1.7.10.4 ___________ ffmpeg-devel mailing list [email protected] https://ffmpe

[FFmpeg-devel] [PATCH] libavformat: improve logs with cur_dts

2019-04-18 Thread Andreas Håkon via ffmpeg-devel
), st->index, st->id); /* update flags */ if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA || is_intra_only(st->codecpar->codec_id)) -- 1.7.10.4 _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavformat: fix inputs initialization in mpegts muxer with filters

2019-04-18 Thread Andreas Håkon via ffmpeg-devel
ch/12783/ So, please, mark it as superseded. Regards. A.H. Note: The second part is that: https://patchwork.ffmpeg.org/patch/12791/ Only as reference. . ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg

[FFmpeg-devel] [PATCH] libavformat: fix copyts and muxrate in mpegts muxer

2019-04-18 Thread Andreas Håkon via ffmpeg-devel
/* pcr insert gets priority over null packet insert */ if (write_pcr) mpegts_insert_pcr_only(s, st); else mpegts_insert_null_packet(s); +last_payload_size = payload_size; /* recalculate write_pcr and possibly retransmit si_

[FFmpeg-devel] [PATCH] libavcodec: QSV protect GPB code with CO3 define

2019-04-18 Thread Andreas Håkon via ffmpeg-devel
(avctx->codec_id == AV_CODEC_ID_H264) { av_log(avctx, AV_LOG_VERBOSE, "Entropy coding: %s; MaxDecFrameBuffering: %"PRIu16"\n", -- 1.7.10.4 ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailma

Re: [FFmpeg-devel] [PATCH] libavformat: fix inputs initialization in mpegts muxer with filters

2019-04-18 Thread Andreas Håkon via ffmpeg-devel
> On Wed, Apr 17, 2019 at 08:28:39PM +, Andreas Håkon via ffmpeg-devel > wrote: > > > This patch solves the initialization of the inputs when using filters (a > > graph filter) with the mpegts muxer. > > This bug seems to be generated by a simple forgetting to

Re: [FFmpeg-devel] [PATCH] libavformat: fix inputs initialization in mpegts muxer with filters

2019-04-18 Thread Andreas Håkon via ffmpeg-devel
‐‐‐ Original Message ‐‐‐ On Thursday, 18 de April de 2019 13:14, Andreas Håkon wrote: > > On Wed, Apr 17, 2019 at 08:28:39PM +, Andreas Håkon via ffmpeg-devel > > wrote: > > > > > This patch solves the initialization of the inputs when using filters (

[FFmpeg-devel] [PATCH] avformat/apetag: tag values are unsigned

2019-04-18 Thread Dan Sanders via ffmpeg-devel
fine APE_TAG_FLAG_CONTAINS_HEADER (1U << 31) +#define APE_TAG_FLAG_LACKS_FOOTER (1U << 30) +#define APE_TAG_FLAG_IS_HEADER(1U << 29) +#define APE_TAG_FLAG_IS_BINARY(1U << 1) static int ape_tag_read_field(AVFormatContext *s) { -- 2.21.0.392.gf8f678715

Re: [FFmpeg-devel] [PATCH] avformat/apetag: tag values are unsigned

2019-04-18 Thread Dan Sanders via ffmpeg-devel
> > +#define APE_TAG_FLAG_CONTAINS_HEADER (1U << 31) > > Isn't it enough with this one only? Yes, only APE_TAG_FLAG_CONTAINS_HEADER is problematic. I changed all of them because the tags are only used in unsigned contexts anyway. _____

Re: [FFmpeg-devel] [PATCH] libavformat: improve logs with cur_dts

2019-04-19 Thread Andreas Håkon via ffmpeg-devel
‐‐‐ Original Message ‐‐‐ On Thursday, 18 de April de 2019 22:13, Michael Niedermayer wrote: > On Thu, Apr 18, 2019 at 07:46:43AM +, Andreas Håkon via ffmpeg-devel > wrote: > > > Hi, > > This is the second part of my previous patch: > > https://patch

Re: [FFmpeg-devel] [PATCH] libavformat: fix inputs initialization in mpegts muxer with filters

2019-04-19 Thread Andreas Håkon via ffmpeg-devel
return 0; +} } else if (ost->filter) { int i; for (i = 0; i < ost->filter->graph->nb_inputs; i++) { -- 1.7.10.4 ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/f

Re: [FFmpeg-devel] [PATCH] libavformat: fix copyts and muxrate in mpegts muxer

2019-04-19 Thread Andreas Håkon via ffmpeg-devel
‐‐‐ Original Message ‐‐‐ On Thursday, 18 de April de 2019 11:01, Andreas Håkon via ffmpeg-devel wrote: > Hi, > > This patch resolves one very specific use case: > > - When you use the mpegts muxer; > - And use the global parameter “-copyts”; > - And use th

[FFmpeg-devel] [PATCH] libavformat/mov: limit nb_frames_for_fps to INT_MAX

2019-04-19 Thread Dan Sanders via ffmpeg-devel
;= INT_MAX - sc->nb_frames_for_fps ) { sc->duration_for_fps += duration; sc->nb_frames_for_fps += total_sample_count; -- 2.21.0.593.g511ec345e18-goog --- End Message --- ___________ ffmpeg-devel mailing list [email protected] https://f

Re: [FFmpeg-devel] [PATCH] avformat/mpegtsenc: added support for the write_data_type callback

2019-03-22 Thread Oliver Collyer via ffmpeg-devel
NT); >> +} >> return mpegts_write_packet_internal(s, pkt); >> } >> } >> > > So I've created a patch for this. > > <0001-mpegtsenc-added-support-for-the-write_data_type-call.patch> Ping, for this really trivial patch. ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH 1/2] avformat/movenc: Fix skip_trailer when global_sidx is enabled

2019-03-24 Thread Karthick J via ffmpeg-devel
2.17.2 (Apple Git-113) _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH 2/2] avformat/dashenc: Add support for Global SIDX

2019-03-24 Thread Karthick J via ffmpeg-devel
","set list of options for the container format (mp4/webm) used for dash", OFFSET(format_options_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, E}, +{ "global_sidx", "Write global SIDX atom. Applicable only for single file, mp4 output, non-streaming mode", OFFSET(global_sidx), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, E }, { "dash_segment_type", "set dash segment files type", OFFSET(segment_type_option), AV_OPT_TYPE_INT, {.i64 = SEGMENT_TYPE_AUTO }, 0, SEGMENT_TYPE_NB - 1, E, "segment_type"}, { "auto", "select segment file format based on codec", 0, AV_OPT_TYPE_CONST, {.i64 = SEGMENT_TYPE_AUTO }, 0, UINT_MAX, E, "segment_type"}, { "mp4", "make segment file in ISOBMFF format", 0, AV_OPT_TYPE_CONST, {.i64 = SEGMENT_TYPE_MP4 }, 0, UINT_MAX, E, "segment_type"}, -- 2.17.2 (Apple Git-113) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 0/7] Improve CBS unit content alloc/free/clone behaviour

2019-03-24 Thread Andreas Rheinhardt via ffmpeg-devel
atch is your one to h264_redundant_pps. > > - Mark > _______ > ffmpeg-devel mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > Ticket #7807 has just been opened about this, so ping for this whole patchset. (Of course, a reference to ticke

Re: [FFmpeg-devel] [PATCH][FFmpeg-devel v2] Add GPU accelerated video crop filter

2019-03-24 Thread Philip Langdale via ffmpeg-devel
..4b94b73 > --- /dev/null > +++ b/libavfilter/vf_crop_cuda.cu > @@ -0,0 +1,109 @@ > +/* > + * Copyright (c) 2019, iQIYI CORPORATION. All rights reserved. > + * > + * Permission is hereby granted, free of charge, to any person > obtaining a > + * copy of this software and associated documentation files (the > "Software"), > + * to deal in the Software without restriction, including without > limitation > + * the rights to use, copy, modify, merge, publish, distribute, > sublicense, > + * and/or sell copies of the Software, and to permit persons to whom > the > + * Software is furnished to do so, subject to the following > conditions: > + * > + * The above copyright notice and this permission notice shall be > included in > + * all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > EXPRESS OR > + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF > MERCHANTABILITY, > + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO > EVENT SHALL > + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES > OR OTHER > + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, > ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > OTHER > + * DEALINGS IN THE SOFTWARE. > + */ > + > +extern "C" { > + > +__global__ void Crop_uchar(cudaTextureObject_t uchar_tex, > + unsigned char *dst, > + int dst_width, int dst_height, int > dst_pitch, > + int left, int top) > +{ > +int xo = blockIdx.x * blockDim.x + threadIdx.x; > +int yo = blockIdx.y * blockDim.y + threadIdx.y; > +int xi = xo + left; > +int yi = yo + top; > + > +if (yo < dst_height && xo < dst_width) > +dst[yo*dst_pitch+xo] = (unsigned char) tex2D char>(uchar_tex, xi, yi); +} > + > +__global__ void Crop_uchar2(cudaTextureObject_t uchar2_tex, > +uchar2 *dst, > +int dst_width, int dst_height, int > dst_pitch, > +int left, int top) > +{ > +int xo = blockIdx.x * blockDim.x + threadIdx.x; > +int yo = blockIdx.y * blockDim.y + threadIdx.y; > +int xi = xo + left; > +int yi = yo + top; > + > +if (yo < dst_height && xo < dst_width) > +dst[yo*dst_pitch+xo] = (uchar2) tex2D(uchar2_tex, > xi, yi); +} > + > +__global__ void Crop_uchar4(cudaTextureObject_t uchar4_tex, > +uchar4 *dst, > +int dst_width, int dst_height, int > dst_pitch, > +int left, int top) > +{ > +int xo = blockIdx.x * blockDim.x + threadIdx.x; > +int yo = blockIdx.y * blockDim.y + threadIdx.y; > +int xi = xo + left; > +int yi = yo + top; > + > +if (yo < dst_height && xo < dst_width) > +dst[yo*dst_pitch+xo] = (uchar4) tex2D(uchar4_tex, > xi, yi); +} > + > +__global__ void Crop_ushort(cudaTextureObject_t ushort_tex, > +unsigned short *dst, > +int dst_width, int dst_height, int > dst_pitch, > +int left, int top) > +{ > +int xo = blockIdx.x * blockDim.x + threadIdx.x; > +int yo = blockIdx.y * blockDim.y + threadIdx.y; > +int xi = xo + left; > +int yi = yo + top; > + > +if (yo < dst_height && xo < dst_width) > +dst[yo*dst_pitch+xo] = (unsigned short) tex2D short>(ushort_tex, xi, yi); +} > + > +__global__ void Crop_ushort2(cudaTextureObject_t ushort2_tex, > + ushort2 *dst, > + int dst_width, int dst_height, int > dst_pitch, > + int left, int top) > +{ > +int xo = blockIdx.x * blockDim.x + threadIdx.x; > +int yo = blockIdx.y * blockDim.y + threadIdx.y; > +int xi = xo + left; > +int yi = yo + top; > + > +if (yo < dst_height && xo < dst_width) > +dst[yo*dst_pitch+xo] = (ushort2) tex2D(ushort2_tex, > xi, yi); +} > + > +__global__ void Crop_ushort4(cudaTextureObject_t ushort4_tex, > + ushort4 *dst, > + int dst_width, int dst_height, int > dst_pitch, > + int left, int top) > +{ > +int xo = blockIdx.x * blockDim.x + threadIdx.x; > +int yo = blockIdx.y * blockDim.y + threadIdx.y; > +int xi = xo + left; > +int yi = yo + top; > + > +if (yo < dst_height && xo < dst_width) > +dst[yo*dst_pitch+xo] = (ushort4) tex2D(ushort4_tex, > xi, yi); +} > + > +} --phil ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH v3 1/2] vf_crop: Add support for cropping hardware frames

2019-03-24 Thread Philip Langdale via ffmpeg-devel
> +frame->data[0] += s->x * s->max_step[0]; > + > +if (!(desc->flags & AV_PIX_FMT_FLAG_PAL || desc->flags & > FF_PSEUDOPAL)) { > +for (i = 1; i < 3; i ++) { > +if (frame->data[i]) { > +

Re: [FFmpeg-devel] [PATCH] avformat/mov_chan: Use anonymous union

2024-03-25 Thread Henrik Gramner via ffmpeg-devel
On Mon, Mar 25, 2024 at 4:01 PM Andreas Rheinhardt wrote: > > Right, it is an anonymous enum, not union. Amended locally. > > - Andreas Can confirm this eliminates the warnings, lgtm. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmp

Re: [FFmpeg-devel] [PATCH] Added alpha layer support for smartblur

2024-03-25 Thread Andrea Mastroberti via ffmpeg-devel
AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV410P, +AV_PIX_FMT_YUV440P, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }; @@ -162,6 +180,7 @@ static int config_props(AVFilterLink *inlink) AV_CEIL_RSHIFT(inlink->w, s->hsub), AV_CEIL_RSHIFT(inlink->

[FFmpeg-devel] [PATCH] Added alpha layer support for smartblur - reformatted patch

2024-03-25 Thread Andrea Mastroberti via ffmpeg-devel
6 +280,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic) s->chroma.filter_context); } +if (inpic->data[3]) { + blur(outpic->data[3], outpic->linesize[3], + inpic->data[3], inpic->linesize[3], + inlink->

Re: [FFmpeg-devel] [PATCH] avcodec/x86/h264_idct: Fix incorrect xmm spilling on win64

2024-03-25 Thread Henrik Gramner via ffmpeg-devel
Will apply. ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH v2 1/2] avutil/timestamp: introduce av_ts_make_time_string2 for better precision

2024-03-25 Thread Allan Cady via ffmpeg-devel
100644 >> --- a/libavutil/timestamp.h >> +++ b/libavutil/timestamp.h >> @@ -62,6 +62,14 @@ static inline char *av_ts_make_string(char *buf, int64_t >> ts) >>  * @param tb the timebase of the timestamp >>  * @return the buffer in input >>  */ >> +char *

[FFmpeg-devel] [PATCH 1/5] configure: Add option for enabling LC3/LC3plus wrapper

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
t; lc3.h lc3_hr_setup_encoder enabled liblensfun && require_pkg_config liblensfun lensfun lensfun.h lf_db_create if enabled libmfx && enabled libvpl; then -- 2.44.0.396.g6e790dbe36-goog ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH 2/5] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
VUTIL_VERSION_INT, +}; + +const FFCodec ff_liblc3_encoder = { +.p.name = "liblc3", +CODEC_LONG_NAME("LC3 (Low Complexity Communication Codec)"), +.p.type = AVMEDIA_TYPE_AUDIO, +.p.id = AV_CODEC_ID_LC3, +.p.capabilities = AV_CODEC_CAP

[FFmpeg-devel] [PATCH 3/5] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
= lc3_init, +.write_header = lc3_write_header, +.write_packet = lc3_write_packet, +}; + +const FFOutputFormat ff_lc3_plus_muxer = { +.p.name = "lc3_plus", +.p.long_name = NULL_IF_CONFIG_SMALL( + "LC3Plus (Low Complexity Communication Codec plus)"

[FFmpeg-devel] [PATCH 4/5] doc: Add LC3/LC3plus muxer and encoder parameters documentation

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
ication Codec audio. +ETSI TS 103 634 Low Complexity Communication Codec plus (LC3plus). + @item m4v @emph{video} MPEG-4 Part 2 video -- 2.44.0.396.g6e790dbe36-goog _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listin

[FFmpeg-devel] [PATCH 5/5] Changelog: Add LC3/LC3plus decoding/encoding support

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 1/5] configure: Add option for enabling LC3/LC3plus wrapper

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
(this stage is completely removed), but cannot run in-place. Benchmarks I made show that it runs slightly faster. On Tue, Mar 26, 2024 at 9:59 AM Paul B Mahol wrote: > > Isn't this using sub-optimal MDCT implementation? > _______ ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 1/5] configure: Add option for enabling LC3/LC3plus wrapper

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
Arf, sorry for that. I used `git send-email -s`, perhaps it's the source of the double signed-off. On Tue, Mar 26, 2024 at 10:32 AM Stefano Sabatini wrote: > On date Tuesday 2024-03-26 16:47:35 +, ffmpeg-devel Mailing List wrote: > > > Signed-off-by: Antoine Soulier

Re: [FFmpeg-devel] [PATCH 1/5] configure: Add option for enabling LC3/LC3plus wrapper

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
d with what? > Where is at least x86 SIMD for that MDCT? > > >> >> On Tue, Mar 26, 2024 at 9:59 AM Paul B Mahol wrote: >> >>> >>> Isn't this using sub-optimal MDCT implementation? >>> >> __

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
onstant "1000.f" are already defined elsewhere. On Tue, Mar 26, 2024 at 10:49 AM Stefano Sabatini wrote: > On date Tuesday 2024-03-26 16:47:36 +, ffmpeg-devel Mailing List wrote: > > The LC3 audio codec is the default codec of Bluetooth LE audio. > > This i

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
. On Tue, Mar 26, 2024 at 11:28 AM Andreas Rheinhardt < [email protected]> wrote: > Antoine Soulier via ffmpeg-devel: > > The LC3 audio codec is the default codec of Bluetooth LE audio. > > This is a wrapper over the liblc3 library ( > https://github.com/google

[FFmpeg-devel] [PATCH 1/5] configure: Add option for enabling LC3/LC3plus wrapper

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
&& require_pkg_config libkvazaar "kvazaar >= 2.0.0" kvazaar.h kvz_api_get +enabled liblc3&& require_pkg_config liblc3 "lc3 >= 1.1.0" lc3.h lc3_hr_setup_encoder enabled liblensfun&& require_pkg_config liblensfun lensfun le

[FFmpeg-devel] [PATCH 2/5] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
, +.p.id = AV_CODEC_ID_LC3, +.p.capabilities = AV_CODEC_CAP_DR1, +.p.ch_layouts = (const AVChannelLayout[]) + { { AV_CHANNEL_ORDER_UNSPEC, 1 }, + { AV_CHANNEL_ORDER_UNSPEC, 2 }, { 0 } }, +.p.supported_samplerates = (const int []) +{ 96000, 48000, 32000, 24000, 16000, 8000, 0 }, +.p.sample_fmts = (const enum AVSampleFormat[]) +{ AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, +.p.priv_class = &class, +.p.wrapper_name = "liblc3", +.priv_data_size = sizeof(LibLC3EncContext), +.init = liblc3_encode_init, +.close = liblc3_encode_close, +FF_CODEC_ENCODE_CB(liblc3_encode), +}; -- 2.44.0.396.g6e790dbe36-goog ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH 3/5] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
;size); +avio_write(s->pb, pkt->data, pkt->size); +return 0; +} + +const FFOutputFormat ff_lc3_muxer = { +.p.name= "lc3", +.p.long_name = NULL_IF_CONFIG_SMALL("LC3 (Low Complexity Communication Codec)"), +.p.extensions = "lc3", +.p.au

[FFmpeg-devel] [PATCH 4/5] doc: Add LC3/LC3plus muxer and encoder parameters documentation

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
a single @code{lc3} audio stream. + @section matroska Matroska container muxer. -- 2.44.0.396.g6e790dbe36-goog _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above,

[FFmpeg-devel] [PATCH 5/5] Changelog: Add LC3/LC3plus decoding/encoding support

2024-03-26 Thread Antoine Soulier via ffmpeg-devel
hwaccel decoding support (depends on vulkan renderer via libplacebo) - dnn filter libtorch backend +- LC3/LC3plus decoding/encoding using external library liblc3 version 6.1: -- 2.44.0.396.g6e790dbe36-goog ___ ffmpeg-devel mailing list ffmpeg

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-27 Thread Antoine Soulier via ffmpeg-devel
me. ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-27 Thread Antoine Soulier via ffmpeg-devel
codec allows you to freely change the size on frame basis. But it's not used in this way, ack. _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel

[FFmpeg-devel] [PATCH] avformat/rtmpproto: Fix segfault

2024-03-27 Thread Armin Hasitzka via ffmpeg-devel
Hi, we found this when testing with rejected RTMP streams. Best Armin 0001-avformat-rtmpproto-Fix-segfault.patch Description: Binary data ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/libvpxenc: Only search for side data when intending to use it

2024-03-27 Thread James Zern via ffmpeg-devel
AV_FRAME_DATA_DYNAMIC_HDR_PLUS); > + > +if (sd) { > +fd.hdr10_plus = av_buffer_ref(sd->buf); > + if (!fd.hdr10_plus) > +return AVERROR(ENOMEM); > + } > } > #endif > > -- > 2.40.1 > > __

Re: [FFmpeg-devel] [PATCH 2/6] avcodec/libvpxenc: Remove obsolete av_unused

2024-03-27 Thread James Zern via ffmpeg-devel
1 deletion(-) > lgtm. _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] avformat/rtmpproto: Fix segfault

2024-03-27 Thread Armin Hasitzka via ffmpeg-devel
< [email protected]> wrote: > Armin Hasitzka via ffmpeg-devel: > > Hi, > > > > we found this when testing with rejected RTMP streams. > > > > Best > > Armin > > Thanks for the report and the patch; yet actually freeing them manually &g

[FFmpeg-devel] [PATCH 1/4] configure: Add option for enabling LC3/LC3plus wrapper

2024-03-27 Thread Antoine Soulier via ffmpeg-devel
&& require_pkg_config libkvazaar "kvazaar >= 2.0.0" kvazaar.h kvz_api_get +enabled liblc3&& require_pkg_config liblc3 "lc3 >= 1.1.0" lc3.h lc3_hr_setup_encoder enabled liblensfun&& require_pkg_config liblensfun lensfun le

[FFmpeg-devel] [PATCH 2/4] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-27 Thread Antoine Soulier via ffmpeg-devel
coder = { +.p.name = "liblc3", +CODEC_LONG_NAME("LC3 (Low Complexity Communication Codec)"), +.p.type = AVMEDIA_TYPE_AUDIO, +.p.id = AV_CODEC_ID_LC3, +.p.capabilities = AV_CODEC_CAP_DR1, +.p.ch_layouts = (const AVChannelLayout[]) +

[FFmpeg-devel] [PATCH 3/4] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-27 Thread Antoine Soulier via ffmpeg-devel
avio_wl16(s->pb, pkt->size); +avio_write(s->pb, pkt->data, pkt->size); +return 0; +} + +const FFOutputFormat ff_lc3_muxer = { +.p.name= "lc3", + .p.long_name = NULL_IF_CONFIG_SMALL("LC3 (Low Complexity Communication Codec)"), +.p.extensions = &q

[FFmpeg-devel] [PATCH 4/4] Changelog: Add LC3/LC3plus decoding/encoding support

2024-03-27 Thread Antoine Soulier via ffmpeg-devel
hwaccel decoding support (depends on vulkan renderer via libplacebo) - dnn filter libtorch backend +- LC3/LC3plus decoding/encoding using external library liblc3 version 6.1: -- 2.44.0.478.gd926399ef9-goog ___ ffmpeg-devel mailing list ffmpeg

[FFmpeg-devel] [PATCH] Make Immersive Audio Model optional for MOV demuxing

2024-03-27 Thread Eugene Zemtsov via ffmpeg-devel
on; int flags, size = sample->size; @@ -9592,7 +9603,9 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) } if (!ret) return FFERROR_REDO; - } else +} +#endif + else ret = av_get_packet(sc->pb,

Re: [FFmpeg-devel] [PATCH] Make Immersive Audio Model optional for MOV demuxing

2024-03-27 Thread Eugene Zemtsov via ffmpeg-devel
tic int mov_read_packet(AVFormatContext *s, > > AVPacket *pkt) > > > > if (st->codecpar->codec_id == AV_CODEC_ID_EIA_608 && sample->size > > > 8) > > ret = get_eia608_packet(sc->pb, pkt, sample->size); > > +#if CONFIG_IAMF

[FFmpeg-devel] [PATCH v11 1/8] avcodec/webp: remove unused definitions

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v11 0/8] webp: add support for animated WebP decoding

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
/bsf/awebp2webp.c create mode 100644 libavformat/webpdec.c create mode 100644 tests/ref/fate/webp-anim -- 2.39.3 (Apple Git-146) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe

[FFmpeg-devel] [PATCH v11 7/8] fate: add test for animated WebP

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v11 2/8] avcodec/webp: separate VP8 decoding

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
ic av_cold int webp_decode_close(AVCodecContext *avctx) WebPContext *s = avctx->priv_data; av_packet_free(&s->pkt); + avcodec_free_context(&s->avctx_vp8); if (s->initialized) return ff_vp8_decode_free(avctx); -- 2.39.3 (Apple Git-146) _

[FFmpeg-devel] [PATCH v11 3/8] avcodec/bsf: Add awebp2webp bitstream filter

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
mp;& s->last_xmp) { +memcpy(out->data + out_off, s->last_xmp, s->xmp_size); +out_off += s->xmp_size; +} + +// copy frame data +memcpy(out->data + out_off, s->last_pkt->data + packet_start, packet_end - packet_start); + + if (key_frame) +

[FFmpeg-devel] [PATCH v11 5/8] avcodec/webp: make init_canvas_frame static

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
hroma_h); -else -height = FFALIGN(canvas->height, 1 << desc->log2_chroma_h); - -memset(canvas->data[plane], s->transparent_yuva[plane], - height * canvas->linesize[plane]); -} -} - -return 0; -} - /* * Blend src1 (foreground) and src2 (background) into dest, in ARGB format. * width, height are the dimensions of src1 -- 2.39.3 (Apple Git-146) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v11 4/8] libavcodec/webp: add support for animated WebP

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
cold int webp_decode_close(AVCodecContext *avctx) WebPContext *s = avctx->priv_data; av_packet_free(&s->pkt); + ff_thread_release_ext_buffer(&s->canvas_frame); +av_frame_free(&s->canvas_frame.f); +av_frame_free(&s->frame); avcodec_free_context(&s->avctx_vp8); -if (s->initialized) -return ff_vp8_decode_free(avctx); +return 0; +} + +static void webp_decode_flush(AVCodecContext *avctx) +{ +WebPContext *s = avctx->priv_data; + +ff_thread_release_ext_buffer(&s->canvas_frame); +} + +#if HAVE_THREADS +static int webp_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) +{ +WebPContext *wsrc = src->priv_data; +WebPContext *wdst = dst->priv_data; +int ret; + +if (dst == src) +return 0; + +ff_thread_release_ext_buffer(&wdst->canvas_frame); +if (wsrc->canvas_frame.f->data[0] && +(ret = ff_thread_ref_frame(&wdst->canvas_frame, &wsrc->canvas_frame)) < 0) +return ret; + +wdst->vp8x_flags = wsrc->vp8x_flags; +wdst->canvas_width= wsrc->canvas_width; +wdst->canvas_height = wsrc->canvas_height; +wdst->prev_anmf_flags = wsrc->anmf_flags; +wdst->prev_width = wsrc->width; +wdst->prev_height = wsrc->height; +wdst->prev_pos_x = wsrc->pos_x; +wdst->prev_pos_y = wsrc->pos_y; +wdst->await_progress = wsrc->await_progress + 1; + +memcpy(wdst->background_argb, wsrc->background_argb, sizeof(wsrc->background_argb)); +memcpy(wdst->background_yuva, wsrc->background_yuva, sizeof(wsrc->background_yuva)); return 0; } +#endif const FFCodec ff_webp_decoder = { .p.name = "webp", @@ -1602,9 +2189,12 @@ const FFCodec ff_webp_decoder = { .p.type = AVMEDIA_TYPE_VIDEO, .p.id = AV_CODEC_ID_WEBP, .priv_data_size = sizeof(WebPContext), +UPDATE_THREAD_CONTEXT(webp_update_thread_context), .init = webp_decode_init, FF_CODEC_DECODE_CB(webp_decode_frame), .close = webp_decode_close, +.flush = webp_decode_flush, +.bsfs = "awebp2webp", .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, -.caps_internal = FF_CODEC_CAP_ICC_PROFILES, +.caps_internal = FF_CODEC_CAP_ICC_PROFILES | FF_CODEC_CAP_ALLOCATE_PROGRESS, }; -- 2.39.3 (Apple Git-146) ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH v11 8/8] avcodec/webp: export XMP metadata

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
+xmp_metadata = (s->vp8x_flags & VP8X_FLAG_ANIMATION) ? &p->metadata : &s->frame->metadata; +av_dict_set(xmp_metadata, "xmp", buffer, AV_DICT_DONT_STRDUP_VAL); + +xmp_end: bytestream2_skip(&gb, chunk_size); break; +

[FFmpeg-devel] [PATCH v11 6/8] libavformat/webp: add WebP demuxer

2024-03-28 Thread Thilo Borgmann via ffmpeg-devel
less @@ -1,4 +1,4 @@ -#tb 0: 1/25 +#tb 0: 1/10 #media_type 0: video #codec_id 0: rawvideo #dimensions 0: 12x8 diff --git a/tests/ref/fate/webp-rgb-lossless-palette-predictor b/tests/ref/fate/webp-rgb-lossless-palette-predictor index 92a4ad9810..65537f7ed1 100644 --- a/tests/ref/fate/webp-rgb-lo

Re: [FFmpeg-devel] [PATCH 3/4] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-28 Thread Antoine Soulier via ffmpeg-devel
tually supports seeking. > > The proposed solution here is sub-optimal. > > On Wed, Mar 27, 2024 at 11:22 PM Antoine Soulier via ffmpeg-devel < > [email protected]> wrote: > >> A file format is described in Bluetooth SIG LC3 and ETSI TS 103 634, for >> test

[FFmpeg-devel] [PATCH 1/2] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-28 Thread Antoine Soulier via ffmpeg-devel
oder", +.item_name = av_default_item_name, +.option = options, +.version= LIBAVUTIL_VERSION_INT, +}; + +const FFCodec ff_liblc3_encoder = { +.p.name = "liblc3", +CODEC_LONG_NAME("LC3 (Low Complexity Communication Codec)"), +.p.type

[FFmpeg-devel] [PATCH 2/2] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-28 Thread Antoine Soulier via ffmpeg-devel
; + +return 0; +} + +static int lc3_write_packet(AVFormatContext *s, AVPacket *pkt) +{ +avio_wl16(s->pb, pkt->size); +avio_write(s->pb, pkt->data, pkt->size); +return 0; +} + +const FFOutputFormat ff_lc3_muxer = { +.p.name= "lc3", + .p.long_name = NULL_IF

[FFmpeg-devel] [PATCH 1/2] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-28 Thread Antoine Soulier via ffmpeg-devel
rsion= LIBAVUTIL_VERSION_INT, +}; + +const FFCodec ff_liblc3_encoder = { +.p.name = "liblc3", +CODEC_LONG_NAME("LC3 (Low Complexity Communication Codec)"), +.p.type = AVMEDIA_TYPE_AUDIO, +.p.id = AV_CODEC_ID_LC3, + .p.capabilities = AV_C

[FFmpeg-devel] [PATCH 2/2] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-28 Thread Antoine Soulier via ffmpeg-devel
ket(AVFormatContext *s, AVPacket *pkt) +{ +avio_wl16(s->pb, pkt->size); +avio_write(s->pb, pkt->data, pkt->size); +return 0; +} + +const FFOutputFormat ff_lc3_muxer = { +.p.name= "lc3", +.p.long_name = NULL_IF_CONFIG_SMALL("LC3 (Low Complexity Commu

Re: [FFmpeg-devel] [PATCH v11 3/8] avcodec/bsf: Add awebp2webp bitstream filter

2024-03-29 Thread Thilo Borgmann via ffmpeg-devel
Am 28.03.24 um 19:11 schrieb Stefano Sabatini: On date Thursday 2024-03-28 15:08:53 +0100, ffmpeg-devel Mailing List wrote: Splits a packet containing a webp animations into one non-compliant packet per frame of the animation. Skips RIFF and WEBP chunks for those packets except for the first

[FFmpeg-devel] [PATCH 1/2] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-29 Thread Antoine Soulier via ffmpeg-devel
rsion= LIBAVUTIL_VERSION_INT, +}; + +const FFCodec ff_liblc3_encoder = { +.p.name = "liblc3", +CODEC_LONG_NAME("LC3 (Low Complexity Communication Codec)"), +.p.type = AVMEDIA_TYPE_AUDIO, +.p.id = AV_CODEC_ID_LC3, + .p.capabilities = AV_C

[FFmpeg-devel] [PATCH 2/2] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-29 Thread Antoine Soulier via ffmpeg-devel
pkt->size); +avio_write(s->pb, pkt->data, pkt->size); +return 0; +} + +const FFOutputFormat ff_lc3_muxer = { + .p.name= "lc3", +.p.long_name = NULL_IF_CONFIG_SMALL("LC3 (Low Complexity Communication Codec)"), +.p.extensions = "lc3", +.p.audio_codec = AV_CODEC_ID_LC3, +.p.video_codec = AV_CODEC_ID_NONE, +.p.flags = AVFMT_NOTIMESTAMPS, +.init = lc3_init, +.write_header = lc3_write_header, +.write_packet = lc3_write_packet, +}; -- 2.44.0.478.gd926399ef9-goog ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 3/4] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-29 Thread Antoine Soulier via ffmpeg-devel
You're right, I was not aware at all. I have pushed a patch that does the job. PTAL, thanks. ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-03-29 Thread Antoine Soulier via ffmpeg-devel
d anywhere, but is under license fee. So it makes sense to me to cover both as LC3. _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@

Re: [FFmpeg-devel] [PATCH 2/2] avformat/lc3: Add file format for LC3/LC3plus transport

2024-03-30 Thread Antoine Soulier via ffmpeg-devel
ors if the encoder adds extra frames at the end). On Sat, Mar 30, 2024 at 4:46 AM Paul B Mahol wrote: > > > On Fri, Mar 29, 2024 at 6:30 PM Antoine Soulier via ffmpeg-devel < > [email protected]> wrote: > >> A file format is described in Bluetooth SIG LC3 and E

[FFmpeg-devel] [PATCH 1/2] avformat/flvenc: Implement support for multi-track video

2024-04-01 Thread Dennis Sädtler via ffmpeg-devel
ALIGN(par->height, 16) - par->height)); +} else if (par->codec_id == AV_CODEC_ID_AAC) { +avio_w8(pb, 1); // AAC raw + } else if (par->codec_id == AV_CODEC_ID_H264 || + par->codec_id == AV_CODEC_ID_MPEG4) { + av

[FFmpeg-devel] [PATCH 2/2] avformat/flvdec: Add support for demuxing multi-track FLV

2024-04-01 Thread Dennis Sädtler via ffmpeg-devel
->new_extradata_size[stream_type] = 0; } +} else if (multitrack + && flv->mt_extradata_cnt > track_idx + && flv->mt_extradata[track_idx]) { +int ret = av_packet_add_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, +

Re: [FFmpeg-devel] [PATCH 01/10] avcodec/libvpxenc: Avoid unused-variable warning if VP9 enc is disabled

2024-04-01 Thread James Zern via ffmpeg-devel
> 8 && avctx->color_trc == AVCOL_TRC_SMPTE2084) { > @@ -372,7 +374,6 @@ static int frame_data_submit(AVCodecContext *avctx, > AVFifo *fifo, > return AVERROR(ENOMEM); > } > } > -#endif > > fd.duration = frame->duration;

[FFmpeg-devel] [PATCH 1/2] avcodec/liblc3: Add encoding/decoding support of LC3 audio codec

2024-04-01 Thread Antoine Soulier via ffmpeg-devel
sion= LIBAVUTIL_VERSION_INT, +}; + +const FFCodec ff_liblc3_encoder = { +.p.name = "liblc3", +CODEC_LONG_NAME("LC3 (Low Complexity Communication Codec)"), +.p.type = AVMEDIA_TYPE_AUDIO, +.p.id = AV_CODEC_ID_LC3, +.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, +.p.ch_layouts = (const AVChannelLayout[]) +{ { AV_CHANNEL_ORDER_UNSPEC, 1 }, + { AV_CHANNEL_ORDER_UNSPEC, 2 }, { 0 } }, +.p.supported_samplerates = (const int []) +{ 96000, 48000, 32000, 24000, 16000, 8000, 0 }, +.p.sample_fmts = (const enum AVSampleFormat[]) +{ AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, +.p.priv_class = &class, +.p.wrapper_name = "liblc3", +.priv_data_size = sizeof(LibLC3EncContext), +.init = liblc3_encode_init, +.close = liblc3_encode_close, +FF_CODEC_ENCODE_CB(liblc3_encode), +}; -- 2.44.0.478.gd926399ef9-goog ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

[FFmpeg-devel] [PATCH 2/2] avformat/lc3: Add file format for LC3/LC3plus transport

2024-04-01 Thread Antoine Soulier via ffmpeg-devel
avio_wl16(s->pb, pkt->size); +avio_write(s->pb, pkt->data, pkt->size); +return 0; +} + +const FFOutputFormat ff_lc3_muxer = { +.p.name= "lc3", +.p.long_name = NULL_IF_CONFIG_SMALL("LC3 (Low Complexity Communication Codec)"), +.p.exten

[FFmpeg-devel] [PATCH] mov demuxer: Check if a key is longer than the atom containing it

2024-04-01 Thread Eugene Zemtsov via ffmpeg-devel
AG('m','d','t','a')) { avio_skip(pb, key_size); -- 2.44.0.478.gd926399ef9-goog ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] mov demuxer: Check if a key is longer than the atom containing it

2024-04-01 Thread Eugene Zemtsov via ffmpeg-devel
Thanks for the comments. I got rid of bytes_left_in_atom. ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject

[FFmpeg-devel] [PATCH] mov demuxer: Check if a key is longer than the atom containing it

2024-04-01 Thread Eugene Zemtsov via ffmpeg-devel
PRIu32"\n", i, key_size); return AVERROR_INVALIDDATA; } +atom.size -= key_size; key_size -= 8; if (type != MKTAG('m','d','t','a')) { avio_skip(pb, key_size); -- 2.44.0.478.gd926399ef9-goog __

[FFmpeg-devel] Request: Memory cache to avoid write lags to storage.

2024-04-02 Thread texrayk-sup--- via ffmpeg-devel
) eg. If the available capacity is 10GB and specify 80%, up to 8GB will be used. ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ

Re: [FFmpeg-devel] [PATCH 01/10] avcodec/libvpxenc: Avoid unused-variable warning if VP9 enc is disabled

2024-04-02 Thread James Zern via ffmpeg-devel
On Mon, Apr 1, 2024 at 11:29 AM Andreas Rheinhardt wrote: > > James Zern via ffmpeg-devel: > > On Sat, Mar 30, 2024 at 10:30 PM Andreas Rheinhardt > > wrote: > >> > >> Signed-off-by: Andreas Rheinhardt > >> --- > >> libavcodec/libvpxenc.

[FFmpeg-devel] [PATCH] Add AAC_xHE case to aacdec_template.c for demuxing

2024-04-02 Thread Ted Meyer via ffmpeg-devel
case AOT_USAC_NOSBR: if ((ret = decode_ga_specific_config(ac, avctx, gb, get_bit_alignment, m4ac, m4ac->chan_config)) < 0) return ret; -- 2.44.0.478.gd926399ef9-goog _______ ffmpeg-devel m

Re: [FFmpeg-devel] [PATCH] Make Immersive Audio Model optional for MOV demuxing

2024-04-02 Thread Eugene Zemtsov via ffmpeg-devel
muxer, > but I had a feeling that maintainers will be less inclined to accept > it and that's why I split it from this one. > I will still try to send it if this patch is accepted. > > > On Wed, Mar 27, 2024 at 4:59 PM James Almer wrote: > > > > On 3/27/2024 8:55 P

[FFmpeg-devel] [PATCH] configure: Separate subsystem for Immersive Audio Model

2024-04-02 Thread Eugene Zemtsov via ffmpeg-devel
pos, duration; int flags, size = sample->size; @@ -9592,7 +9603,9 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) } if (!ret) return FFERROR_REDO; -} else +} +#endif +else ret = av_get_packet(sc->pb, pkt, sample->size); if (ret < 0) { if (should_retry(sc->pb, ret)) { -- 2.44.0.478.gd926399ef9-goog ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".

Re: [FFmpeg-devel] Query from Reuters on XZ, open source, and Microsoft

2024-04-03 Thread Kieran Kunhya via ffmpeg-devel
reed otherwise. Regards, Kieran Kunhya On Wed, 3 Apr 2024, 16:52 Satter, Raphael (Reuters) via ffmpeg-devel, < [email protected]> wrote: > Dear FFMPEG community, > > This is Raphael Satter, a journalist with Reuters. I saw your thread on X > about your experience with Mi

Re: [FFmpeg-devel] [EXT] Re: Query from Reuters on XZ, open source, and Microsoft

2024-04-03 Thread Kieran Kunhya via ffmpeg-devel
the rest of my thoughts. Microsoft are not the only company with this attitude. Regards, Kieran Kunhya > >- > > Raphael > > > > *From:* Kieran Kunhya > *Sent:* Wednesday, April 3, 2024 12:39 PM > *To:* FFmpeg development discussions and patches > *Cc:* Satter,

Re: [FFmpeg-devel] [GASPP PATCH] Implicitly start out in the text section for armasm

2024-04-04 Thread Henrik Gramner via ffmpeg-devel
On Wed, Apr 3, 2024 at 3:47 PM Martin Storsjö wrote: > > This fixes assembling files starting with bare symbol declarations, > without explicitly switching to .text first. lgtm. _______ ffmpeg-devel mailing list [email protected] https://f

Re: [FFmpeg-devel] [PATCH 2/2] avformat/lc3: Add file format for LC3/LC3plus transport

2024-04-04 Thread Antoine Soulier via ffmpeg-devel
hanks. On Thu, Apr 4, 2024, 9:30 AM Andreas Rheinhardt < [email protected]> wrote: > Antoine Soulier via ffmpeg-devel: > > A file format is described in Bluetooth SIG LC3 and ETSI TS 103 634, for > > test purpose. This is the format implemented here. > > &g

<    10   11   12   13   14   15   16   17   18   19   >