[FFmpeg-devel] [PATCH 05/15] avformat/matroskaenc: Remove traces of secondary seek head

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
cuespos = mkv_write_cues(s, mkv->cues, mkv->tracks, s->nb_streams); } -ret = mkv_add_seekhead_entry(mkv->main_seekhead, MATROSKA_ID_CUES, + ret = mkv_add_seekhead_entry(mkv->seekhead, MATROSKA_ID_CUES, cuespos)

[FFmpeg-devel] [PATCH 11/15] avformat/matroskaenc: Write CRC-32 in non-seekable mode

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
ts/ref/fate/binsub-mksenc index 2f7022442f..cd958a80bc 100644 --- a/tests/ref/fate/binsub-mksenc +++ b/tests/ref/fate/binsub-mksenc @@ -1 +1 @@ -5d6f6f595b38d33424c186484f1c39ee +1d0977e91873b77b4c78b61f4f3cdec5 -- 2.19.2 _______ ffmpeg-devel mailing lis

[FFmpeg-devel] [PATCH 12/15] avformat/matroskaenc: Cosmetics and typo

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
l(s->pb)); +av_log(s, AV_LOG_DEBUG, + "Flushing cluster at offset %" PRIu64 " bytes\n", + avio_tell(s->pb)); avio_flush(s->pb); } return 1; @@ -2564,8 +2563,8 @@ static int mkv_write_trailer(AV

[FFmpeg-devel] [PATCH 10/15] avformat/matroskaenc: Avoid seeking when writing level 1 elements

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
end_ebml_master(pb, master); } static void put_xiph_size(AVIOContext *pb, int size) -- 2.19.2 _______ 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 09/15] avformat/matroskaenc: Change variable types

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar; -- 2.19.2 ___ 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 06/15] avformat/matroskaenc: Simplify check for writing CRCs

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
SKAv2; if (mkv->mode != MODE_WEBM || -- 2.19.2 _______ 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 13/15] avformat/matroskaenc: Don't waste bytes writing level 1 elements

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
e: 27925 +ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146987 size: 27925 ret: 0 st:-1 flags:1 ts:-0.645825 -ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 1043 size: 27837 +ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 1019 size: 27837 -- 2.19.2 ___ 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 14/15] avformat/matroskaenc: Improve log messages for blocks

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
%d\n", - avio_tell(pb), size, pkt->pts, pkt->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

[FFmpeg-devel] [PATCH 15/15] avformat/matroskaenc: Reduce usage of ebml_master

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
t;info_bc, mkv); // write tracks master -avio_seek(pb, mkv->tracks_master.pos, SEEK_SET); -end_ebml_master_crc32(pb, &mkv->tracks_bc, mkv, mkv->tracks_master); + avio_seek(pb, mkv->tracks_pos, SEEK_SET); +end_ebml_master_crc32(pb, &mkv->tracks_bc, mkv); // update stream durations if (!mkv->is_live && mkv->stream_durations) { @@ -2644,9 +2639,9 @@ static int mkv_write_trailer(AVFormatContext *s) } avio_seek(mkv->tags_bc, curr, SEEK_SET); } -if (mkv->tags.pos && !mkv->is_live) { -avio_seek(pb, mkv->tags.pos, SEEK_SET); -end_ebml_master_crc32(pb, &mkv->tags_bc, mkv, mkv->tags); +if (mkv->tags_bc && !mkv->is_live) { +avio_seek(pb, mkv->tags_pos, SEEK_SET); +end_ebml_master_crc32(pb, &mkv->tags_bc, mkv); } avio_seek(pb, currentpos, SEEK_SET); -- 2.19.2 ___ 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 10/15] avformat/matroskaenc: Avoid seeking when writing level 1 elements

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
Hello, thanks for taking a look at this. Hendrik Leppkes: > On Tue, Apr 2, 2019 at 3:36 PM Andreas Rheinhardt via ffmpeg-devel > wrote: >> >> Up until now, the writing process for level 1 elements (those elements >> for which CRC-32 elements are written by defau

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

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
%d\n", - avio_tell(pb), size, pkt->pts, pkt->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

Re: [FFmpeg-devel] [PATCH 10/15] avformat/matroskaenc: Avoid seeking when writing level 1 elements

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
Hendrik Leppkes: > On Tue, Apr 2, 2019 at 3:36 PM Andreas Rheinhardt via ffmpeg-devel > wrote: >> @@ -383,8 +388,8 @@ static void >> end_ebml_master_crc32_preliminary(AVIOContext *pb, AVIOContext **dyn >> uint8_t *buf; >> int size =

Re: [FFmpeg-devel] [PATCH 10/15] avformat/matroskaenc: Avoid seeking when writing level 1 elements

2019-04-02 Thread Andreas Rheinhardt via ffmpeg-devel
Hendrik Leppkes: > On Tue, Apr 2, 2019 at 5:55 PM Andreas Rheinhardt via ffmpeg-devel > wrote: >> >> Hello, >> >> thanks for taking a look at this. >> >> Hendrik Leppkes: >>> On Tue, Apr 2, 2019 at 3:36 PM Andreas Rheinhardt via ffmpeg-devel >

[FFmpeg-devel] [PATCH] Updated the documentation about the encoding options for libaom-av1 encoder.

2019-04-02 Thread Sam John via ffmpeg-devel
@var{boolean} +Flag to enable or disable block copy mode for intra block prediction. This mode is +useful for screen content. The default value is true. + + @end table @section libkvazaar -- 2.21.0.392.gf8f6787159e-goog _______ ffmpeg-devel mailing list

Re: [FFmpeg-devel] [PATCH V1] lavf/matroskaenc: Fix memory leak after write trailer

2019-04-04 Thread Andreas Rheinhardt via ffmpeg-devel
> Won't this leak instead when the error path above is triggered? Yes, it will. > Also, whats in the packet if it has a size of 0? > It contains side-data which is used to update the extradata (the md5 and number of samples etc. that is part of the flac STREAMINFO header

Re: [FFmpeg-devel] [PATCH V1] lavf/matroskaenc: Fix memory leak after write trailer

2019-04-04 Thread Andreas Rheinhardt via ffmpeg-devel
dreas ___ 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] avformat/matroskaenc: Fix memleak

2019-04-04 Thread Andreas Rheinhardt via ffmpeg-devel
; 0) +ret = av_packet_ref(&mkv->cur_audio_pkt, pkt); } else ret = mkv_write_packet_internal(s, pkt, 0); return ret; -- 2.19.2 _______ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/

Re: [FFmpeg-devel] [PATCH V2] lavf/matroskaenc: Fix memory leak after write trailer

2019-04-04 Thread Andreas Rheinhardt via ffmpeg-devel
write my commit message. I don't care which patch gets committed, but I presume you did run valgrind to make sure that it actually fixes #7827? - Andreas _______ 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] Is it possible to run just a single FATE test?

2019-04-04 Thread Allan Cady via ffmpeg-devel
hanks. ___ 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] Is it possible to run just a single FATE test?

2019-04-04 Thread Allan Cady via ffmpeg-devel
On 4/4/2019 5:52 PM, Carl Eugen Hoyos wrote: 2019-04-05 2:45 GMT+02:00, Allan Cady via ffmpeg-devel Try for example: $ make SAMPLES=fate-suite fate-xtea $ make SAMPLES=fate-suite fate-h264 $ make fate-acodec-flac $ make fate-vsynth1 and also $ make SAMPLES=fate-suite fate-list Excellent

[FFmpeg-devel] [PATCH] avfilter/af_asetnsamples: fix sample queuing.

2019-04-05 Thread Nikolas Bowe via ffmpeg-devel
if (!pad_frame) { -- 2.21.0.392.gf8f6787159e-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 1/2] fftools/ffmpeg: Propagate attached_pic

2019-04-06 Thread Andreas Rheinhardt via ffmpeg-devel
st->st->nb_side_data; i++) { const AVPacketSideData *sd_src = &ist->st->side_data[i]; -- 2.19.2 ___ 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/matroskaenc: Write attached_pic as attachment

2019-04-06 Thread Andreas Rheinhardt via ffmpeg-devel
*st = s->streams[pkt->stream_index]; + if (DISPOSITION_ATTACHED_PIC(st) && st->attached_pic.data) +return 0; } return mkv_write_packet(s, pkt); } -- 2.19.2 ___ 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 0/2] [RFC] Attached pics, particularly wrt Matroska

2019-04-06 Thread Andreas Rheinhardt via ffmpeg-devel
eg.c | 8 libavformat/matroskaenc.c | 27 +-- 2 files changed, 29 insertions(+), 6 deletions(-) -- 2.19.2 ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubs

[FFmpeg-devel] [PATCH] libavutil/timestamp.h: Fix loss of precision in timestamps for silencedetect on long files

2019-04-07 Thread Allan Cady via ffmpeg-devel
-pkt_pts=46080|tag:lavfi.silence_start=1.27626|tag:lavfi.silence_end=1.80751|tag:lavfi.silence_duration=0.531247 +pkt_pts=46080|tag:lavfi.silence_start=1.276259|tag:lavfi.silence_end=1.807506|tag:lavfi.silence_duration=0.531247 pkt_pts=92160 pkt_pts=138240 pkt_pts=184320 -- 2.7.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 05/21] avformat/matroskadec: Set offset of first cluster

2019-04-07 Thread Andreas Rheinhardt via ffmpeg-devel
Steve Lhomme: > On 3/27/2019 12:18 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >> By default, the data_offset member of the AVFormatInternal of the >> AVFormatContext associated with the MatroskaDemuxContext has not been >> initialized explicitly by any Matroska-specific

Re: [FFmpeg-devel] [PATCH 08/21] avformat/matroskadec: Improve error messages

2019-04-07 Thread Andreas Rheinhardt via ffmpeg-devel
Steve Lhomme: > On 3/27/2019 12:18 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >> ebml_read_num had a number of flaws: >> >> 1. The check for read errors/EOF was totally wrong. E.g. an EBML number >> beginning with the invalid 0x00 would be considered a read er

Re: [FFmpeg-devel] [PATCH 10/21] avformat/matroskadec: Don't keep old blocks

2019-04-07 Thread Andreas Rheinhardt via ffmpeg-devel
Steve Lhomme: > On 3/27/2019 12:18 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >> Before this commit, the Matroska muxer would read a block when required >> to do so, parse the block, create and return the necessary AVPackets >> and >> yet keep the blocks (in a

Re: [FFmpeg-devel] [PATCH 13/21] avformat/matroskadec: Improve length check

2019-04-07 Thread Andreas Rheinhardt via ffmpeg-devel
Steve Lhomme: > On 3/27/2019 12:18 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >> The earlier code had three flaws: >> >> 1. The case of an unknown-sized element inside a finite-sized element >> (which is against the specifications) was not caught. >> >>

Re: [FFmpeg-devel] [PATCH 14/21] avformat/matroskadec: Use proper levels after discontínuity

2019-04-07 Thread Andreas Rheinhardt via ffmpeg-devel
Steve Lhomme: > On 3/27/2019 12:18 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >> The earlier code set the level to zero upon seeking and after a >> discontinuity although in both cases parsing (re)starts at a level 1 >> element. >> >> Also set the segment'

Re: [FFmpeg-devel] [PATCH 15/21] avformat/matroskadec: Redo level handling

2019-04-07 Thread Andreas Rheinhardt via ffmpeg-devel
Steve Lhomme: > On 3/27/2019 12:18 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >> This commit changes how levels are handled: If the level used for >> ebml_parse ends directly after an element that has been consumed, then >> ebml_parse ends the level itself (and any finite-

Re: [FFmpeg-devel] [PATCH 18/21] avformat/matroskadec: Combine two arrays

2019-04-07 Thread Andreas Rheinhardt via ffmpeg-devel
Steve Lhomme: > On 3/27/2019 12:18 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >> By including SimpleBlocks and Blocksgroups twice in the same EbmlSyntax >> array (with different semantics), one can reduce the duplication of the >> other values. >> >>

Re: [FFmpeg-devel] [PATCH 00/21] New Version

2019-04-07 Thread Andreas Rheinhardt via ffmpeg-devel
tain hw video accelerations stuff. >> Oh, and I did not check with Valgrind that the new lacing code doesn't >> read uninitialized data. I don't even know how to use Valgrind. I just >> read the code. If someone more knowledgeable than I could please test >> it... &

Re: [FFmpeg-devel] [PATCH 08/21] avformat/matroskadec: Improve error messages

2019-04-08 Thread Andreas Rheinhardt via ffmpeg-devel
Steve Lhomme: >> On April 7, 2019 at 11:24 AM Andreas Rheinhardt via ffmpeg-devel >> wrote: >> >> >> Steve Lhomme: >>> On 3/27/2019 12:18 PM, Andreas Rheinhardt via ffmpeg-devel wrote: >>>> ebml_read_num had a number of flaws: >>>> &

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

2019-04-08 Thread Karthick J via ffmpeg-devel
if (!os->written_len && os->segment_type == SEGMENT_TYPE_MP4) write_styp(os->ctx->pb); avio_flush(os->ctx->pb); len = avio_get_dyn_buf (os->ctx->pb, &buf); -- 2.20.1 (Apple Git-117) _______

[FFmpeg-devel] [PATCH] avformat/av1: Initialize padding in ff_isom_write_av1c

2019-04-08 Thread Jeremy Dorfman via ffmpeg-devel
(&pbc, 2, seq_params.chroma_sample_position); +put_bits(&pbc, 8, 0); // padding flush_put_bits(&pbc); avio_write(pb, header, sizeof(header)); -- 2.21.0.392.gf8f6787159e-goog _______ ffmpeg-devel mailing list [email protected] https:

Re: [FFmpeg-devel] [PATCH] avformat/av1: Initialize padding in ff_isom_write_av1c

2019-04-08 Thread Jeremy Dorfman via ffmpeg-devel
ck as uninitialized, so I don't think this is a false positive -- it doesn't appear to ever be intentionally written. Thanks, -Jeremy On Mon, Apr 8, 2019 at 9:33 AM James Almer wrote: > On 4/8/2019 9:14 AM, Jeremy Dorfman via ffmpeg-devel wrote: > > Otherwise, AV1 encodes wi

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

2019-04-08 Thread Andreas Rheinhardt via ffmpeg-devel
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 > index f8d71166d4..9dd520787f 100644 > --- a/libavformat/dashenc.c > +++ b/libavformat

Re: [FFmpeg-devel] [DECISION] Include more developers in the voting committee [#4]

2019-04-08 Thread Philip Langdale via ffmpeg-devel
commiters, even in the last year. I don't see Philip or Vittorio, for example. Same guidelines were used to select the people as in the second extension: https://ffmpeg.org/pipermail/ffmpeg-devel/2015-October/182057.html I emailed Marton out-of-band, but I am not in the list because a few o

Re: [FFmpeg-devel] [DECISION] Include more developers in the voting committee [#4]

2019-04-08 Thread Philip Langdale via ffmpeg-devel
t time round. Thanks, --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] [DECISION] Include more developers in the voting committee [#4]

2019-04-08 Thread Philip Langdale via ffmpeg-devel
Aman Gupta Gyan Doshi Jan Ekström Jun Zhao Karthick Jeyapal Mark Thompson Martin Vignali Peter Ross Steven Liu Timo Rothenpieler Zhong Li Question: Do you support extending the voting committte with the people above? Yes. --phil _______ ffmpeg-devel ma

[FFmpeg-devel] [PATCH] avcodec/bintext: Add error message when resolution is too small for font.

2019-04-08 Thread Nikolas Bowe via ffmpeg-devel
t;); return AVERROR_INVALIDDATA; +} return 0; } -- 2.21.0.392.gf8f6787159e-goog ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmp

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

2019-04-09 Thread Sam John via ffmpeg-devel
opy mode for intra block prediction. This mode is +useful for screen content. The default value is true. + @end table @section libkvazaar -- 2.21.0.392.gf8f6787159e-goog ___ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mail

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

2019-04-09 Thread Sam John via ffmpeg-devel
On 4/2/2019 9:49 PM, Sam John via ffmpeg-devel wrote: > > --- > > doc/encoders.texi | 46 ++ > > 1 file changed, 46 insertions(+) > > > > diff --git a/doc/encoders.texi b/doc/encoders.texi > > index 94337d009c..a669ac

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

2019-04-09 Thread Karthick J via ffmpeg-devel
t;); +c->streaming = 0; +} } ctx->oformat = av_guess_format(os->format_name, NULL, NULL); -- 2.20.1 (Apple Git-117) ___________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/li

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 > > __

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