michaelni changed the topic of #ffmpeg-devel to: Welcome to the FFmpeg development channel | Questions about using FFmpeg or developing with libav* libs should be asked in #ffmpeg | This channel is publicly logged | FFmpeg 7.1.1 has been released! | Please read ffmpeg.org/developer.html#Code-of-conduct
TheVibeCoder has quit [Ping timeout: 252 seconds]
TheVibeCoder has joined #ffmpeg-devel
jarthur has quit [Quit: jarthur]
minimal has quit [Quit: Leaving]
Guest76 has joined #ffmpeg-devel
Guest76 has quit [Client Quit]
gnafu has quit [Server closed connection]
gnafu has joined #ffmpeg-devel
<Lynne> lol, even github got hit by scrapers hard enough to care
jamrial has quit []
deeyes has quit [Ping timeout: 260 seconds]
deeyes has joined #ffmpeg-devel
mkver has joined #ffmpeg-devel
mkver has quit [Ping timeout: 245 seconds]
compnn has quit [Read error: Connection reset by peer]
deeyes has quit [Ping timeout: 276 seconds]
deeyes has joined #ffmpeg-devel
<fflogger> [editedticket] rgr2: Ticket #979 ([swscale] Abnormal colorspace conversion of BGR -> YUV comparing the RGB variant) updated https://trac.ffmpeg.org/ticket/979#comment:28
<frankplow> Has anyone found a way in forgejo to navigate from a commit merged into master to the PR (could be PRs I guess) it was a part of?
<frankplow> GitHub and GitLab have links for this when you expand the commit details, but I don’t see any such link in Forgejo at first glance. It’s quite useful for quickly finding the discussion around a change
<frankplow> It could be that it works when merged through forgejo rather than manually I suppose
LainIwakura has joined #ffmpeg-devel
secondcreek has quit [Remote host closed the connection]
secondcreek has joined #ffmpeg-devel
secondcreek has quit [Remote host closed the connection]
secondcreek has joined #ffmpeg-devel
kurosu has joined #ffmpeg-devel
desmond-netint has quit [Remote host closed the connection]
kasper93 has quit [Ping timeout: 276 seconds]
MisterMinister has quit [Remote host closed the connection]
MisterMinister has joined #ffmpeg-devel
kasper93 has joined #ffmpeg-devel
<kasper93> seems to be not supported on forgejo https://codeberg.org/forgejo/forgejo/issues/4247
<kasper93> I agree it's useful feature
<JEEB> yea
<JEEB> I like seeing in github that the commit lists the PR that it came out of. and since forgejo seems to support figuring out that a PR was merged by comparing against PR HEADs, it should be possible to then add that metadata
scat117 has joined #ffmpeg-devel
<haasn> forgejo also does not seem to have merge trains yet
<haasn> though admittedly, neither does gitlab unless you pay for the enterprise version
<scat117> `-stream_loop -1 -framerate 60 -i $image` repeatedly decodes the image. this can be very slow. imagine an image with a huge height used with the `scroll` filter. is there a way for users to avoid this pitfall?
<scat117> scat117: this is made worse by image decoders being single threaded of course.
<JEEB> scat117: for usage questions #ffmpeg ; and yes, that looping is on the stream IO level (thus *stream* loop), so think of it just looping the same data over and over into the parser and then decoder etc :P
Guest85 has joined #ffmpeg-devel
Guest85 has quit [Client Quit]
<sfan5> is it possible to generate a compile_commands.json for ffmpeg?
<llyyr> intercept-build from clang
<JEEB> oh so there's a clang built-in tool now, too?
<JEEB> I just recall utilizing some other tool previously
<llyyr> there's been for a while I just didn't know
<JEEB> but in any case, yup. you can make that file so that clang based checkers can help you with your editing
LainIwakura has quit [Quit: Client closed]
<sfan5> apparently that requires waiting through one run of make -j1
<sfan5> wait nvm
indecisiveturtle has joined #ffmpeg-devel
indecisiveturtle has quit [Ping timeout: 252 seconds]
indecisiveturtle has joined #ffmpeg-devel
<frankplow> JEEB sfan5: I think bear is the other tool you are thinking of. It does requiring compiling once (I don’t think parallelism is an issue though).
<JEEB> right, that's the thing yes
<sfan5> intercept-build worked for me
<sfan5> would be nice to document this somewhere
<sfan5> because writing C code "blind" is a bit annoying
<JEEB> yea, definitely would wbe worth to document
LainIwakura has joined #ffmpeg-devel
<wbs> in addition to intercept-build and bear, there's also a tool called "compiledb", that works roughly the same as the others. iirc it may have less annoying dependencies to install/build than bear
<haasn> I noticed that a lot of filters with SIMD have no provisions for handling images whose linesize is not a clean multiple of the mmsize
<haasn> is it fair to treat all such instances as a bug?
<haasn> The documentation on AVFrame.linesize only states that it *should* be a multiple of the CPU's alignment preference
<haasn> e.g. vf_yadif, vf_bwdif just to name two that I recently looked at
<haasn> or rather, images whose width rounded up to mmsize is larger than the linesize
<haasn> ah, this is documented elsewhere: "some filters may read up to 16 bytes after the image end"
<haasn> but e.g. vf_bwdif will happily read 32 bytes (AVX2 impl)
<haasn> so this documentation is just plain wrong; and especially with AVX512 it's starting to become a mess
<haasn> I feel like the correct thing to do is to both 1) update the recommendation to 64 bytes and 2) ensure all filters don't segfault regardless of linesize
<JEEB> yea, I think we've mostly just been saved by the fact that almost everyone is utilizing our allocators or something
<fjlogger> [FFmpeg/FFmpeg] Pull request opened: #20056 avfilter/avfiltergraph: improve diagnostics when filter formats mismatch (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20056) by sfan5
<fjlogger> [FFmpeg/FFmpeg] Pull request edited: #20056 avfilter/avfiltergraph: improve diagnostics when filter formats mismatch (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20056) by sfan5
<sfan5> getting pinged for every edit seems unnecessary
<indecisiveturtle> kierank: Did they specify sommewhere why the vulkan version are considered bad, cause getting more feedback would be nice. At least for the vulkan encoder I worked on, it is missing some features but it was decently faster than the cpu version iirc
<fjlogger> [FFmpeg/FFmpeg] Issue opened: #20057 hwmap vulkan -> vaapi segfaults (https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/20057) by sfan5
<fjlogger> [FFmpeg/FFmpeg] Pull request opened: #20058 vf_bwdif: add AVX512 implementation (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20058) by haasn
indecisiveturtle has quit [Ping timeout: 252 seconds]
indecisiveturtle has joined #ffmpeg-devel
<fjlogger> [FFmpeg/FFmpeg] Pull request review comment: [#20052 Revert "avformat/tls_openssl: properly get new BIO index"](https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20052) by BtbN
jamrial has joined #ffmpeg-devel
kurosu has quit [Quit: Connection closed for inactivity]
<kierank> haasn: nice
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20058 vf_bwdif: add AVX512 implementation (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20058) by kierank
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20029 avfilter/vf_vibrance: Fix default value of rlum/blum (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20029) by dwbuiten
<fjlogger> [FFmpeg/FFmpeg] Comment edited on pull request #20029 avfilter/vf_vibrance: Fix default value of rlum/blum (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20029) by dwbuiten
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20038 avfilter: add vf_scale_d3d11 filter and mfenc support for d3d11 frames (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20038) by dwbuiten
<fjlogger> [FFmpeg/FFmpeg] Pull request review approved: [#20053 avformat/tls_openssl: use ascii - (0x2D) instead of 0x2010 hyphen](https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20053) by dwbuiten
kurosu has joined #ffmpeg-devel
<kurosu> haasn: are writes from these filters SIMD, that would go into the padding/the next line, be overwritten by the next line processing or end up in the padding? Not caring about the line end isn't completely wrong there.
<kurosu> And yes, by now, 64 extra bytes allocated for image buffers is warranted. For bitstream buffers, maybe less so
<fjlogger> [FFmpeg/FFmpeg] Pull request review comment: [#20054 Multiple STSD support in mp4 muxer](https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20054) by dwbuiten
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20054 Multiple STSD support in mp4 muxer (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20054) by jamrial
indecisiveturtle has quit [Ping timeout: 260 seconds]
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20054 Multiple STSD support in mp4 muxer (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20054) by jamrial
indecisiveturtle has joined #ffmpeg-devel
indecisiveturtle has quit [Read error: Connection reset by peer]
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20053 avformat/tls_openssl: use ascii - (0x2D) instead of 0x2010 hyphen (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20053) by dwbuiten
indecisiveturtle has joined #ffmpeg-devel
<fjlogger> [FFmpeg/FFmpeg] Pull request review approved: [#20054 Multiple STSD support in mp4 muxer](https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20054) by dwbuiten
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20053 avformat/tls_openssl: use ascii - (0x2D) instead of 0x2010 hyphen (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20053) by BtbN
indecisiveturtle has quit [Ping timeout: 265 seconds]
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20058 vf_bwdif: add AVX512 implementation (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20058) by kierank
indecisiveturtle has joined #ffmpeg-devel
<Traneptora> kasper93: btw do you have any other comment on the PR? EXIF one
<Traneptora> It's a big diff (2800 LOC iirc) so I very much would like some review before merging
<kasper93> no, I didn't really review this, it did only quick skim
<kasper93> wait a bit, the premise of new forgejo is that people will review it eventually :)
<kasper93> sfan5: is #20056 similar to #20039 ?
LainIwakura has quit [Quit: Client closed]
<sfan5> kasper93: didn't even see that haha
putacho has joined #ffmpeg-devel
<sfan5> doing this has been on my todo list for months and if such a low hanging fruit has not been solved in years then why would it be now
elChippo has joined #ffmpeg-devel
<fjlogger> [FFmpeg/FFmpeg] Pull request review comment: [#20039 avfilter/avfiltergraph: add logging for filter formats](https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20039) by sfan5
deeyes has quit [Ping timeout: 260 seconds]
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20056 avfilter/avfiltergraph: improve diagnostics when filter formats mismatch (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20056) by sfan5
<fjlogger> [FFmpeg/FFmpeg] Pull request closed: #20056 avfilter/avfiltergraph: improve diagnostics when filter formats mismatch (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20056) by sfan5
microchip_ has quit [Ping timeout: 244 seconds]
putacho has quit [Ping timeout: 252 seconds]
<kasper93> sfan5: :) I find it amusing to see two pr doing such random change independently in a span of a week
<fjlogger> [FFmpeg/FFmpeg] Pull request opened: #20059 fftools/ffmpeg_demux: Only apply codec level cropping by default (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20059) by t.rapp
elChippo is now known as microchip_
minimal has joined #ffmpeg-devel
deeyes has joined #ffmpeg-devel
ccawley2011 has joined #ffmpeg-devel
deeyes has quit [Ping timeout: 260 seconds]
DVedaa3 has quit [Read error: Connection reset by peer]
kasper93_ has joined #ffmpeg-devel
kasper93 is now known as Guest3828
kasper93_ is now known as kasper93
DVedaa3 has joined #ffmpeg-devel
Guest3828 has quit [Ping timeout: 276 seconds]
<kasper93> BtbN: apparently they build mpv with openssl because schannel doesn't support X25519MLKEM768 and is allegedly slower
<BtbN> _slower_?
<BtbN> And the hell kinda server uses that?
<kasper93> I think cloudflare is using that, but definetelly not as the only option
<kasper93> > OpenSSL also has the highest performance VAES-based AES-GCM implementation.
<kasper93> I haven't seen any numbers, just this claim.
<BtbN> They all use AES-NI, so performance should be a non-concern
<BtbN> And they all easily saturate a multi-10-gb link on any half modern CPU
<kasper93> my thoughs exactly
<JEEB> yea :D
<BtbN> schannel does indeed not support ed25519/x25519
<BtbN> Only on Linux it does
<kasper93> they are even patching lavf to support windows certificate store https://github.com/Andarwinux/FFmpeg/commit/b9a8ac0adc77fe85158ffdf88dd09f47e7be2faf.patch
<BtbN> We should do that ourself anyway really
<BtbN> without it the whole -verify option is pointless
<kasper93> I think there was idea to enable verify by default
<jamrial> we have aes-ni
<BtbN> enabling it by default does nothing though if OpenSSL has no certs to check against
<kasper93> so those gaps in cert sort suport would quickly show up
<BtbN> well no, cause it simply doesn't verify then
<kasper93> wouldn't it fail?
<BtbN> it checks if the domain matches and all
<BtbN> but simply trusts it
<BtbN> like, it would then complain about an expired cert, but wouldn't care if it's self-signed
<kasper93> hmm, I thouhg with verify it would fail if it doesn't have root cert to confirm trust
<BtbN> Only if it actually has a truststore
<kasper93> I see
<BtbN> In any case, both those MSDN links above point here: https://learn.microsoft.com/en-us/windows/win32/seccng/cng-named-elliptic-curves
<BtbN> And that has Curve25519
<BtbN> "Beginning in Windows 10, CNG provides support for the following named elliptic curves (ANSI X9.62, X9.63, FIPS 186-2)."
<kasper93> yeah, they support x25519, but I think the key echange is not
<kasper93> the MLKEM768 part ;p
<BtbN> Whatever that is, never heard of it
<kasper93> yeah, not my domain of expertise either
<kasper93> but was looking around at it's this guy https://datatracker.ietf.org/doc/draft-kwiatkowski-tls-ecdhe-mlkem/
<Lynne> pimp my post quantum crypto spec
<Lynne> its actually doing a quantum crypto and conventional crypto one after the other
<Lynne> its just such a huge hack and shows how confident they are that the algorithm will hold
<BtbN> Yeah, insisting on openssl over schannel for that is super silly
LainIwakura has joined #ffmpeg-devel
<fflogger> [editedticket] StevenAllanSpielber: Ticket #11653 ([avformat] -c copy does not copy track names) updated https://trac.ffmpeg.org/ticket/11653#comment:10
ccawley2011 has quit [Ping timeout: 272 seconds]
LainIwakura has quit [Ping timeout: 272 seconds]
Gramner has quit [Ping timeout: 252 seconds]
secondcreek1 has joined #ffmpeg-devel
secondcreek has quit [Ping timeout: 276 seconds]
secondcreek1 is now known as secondcreek
LainIwakura has joined #ffmpeg-devel
indecisiveturtle has quit [Quit: indecisiveturtle]
LainIwakura has quit [Quit: Client closed]
indecisiveturtle has joined #ffmpeg-devel
LainIwakura has joined #ffmpeg-devel
<fflogger> [editedticket] michael: Ticket #11686 ([swscale] [Security] signed integer overflow on libswscale/output.c) updated https://trac.ffmpeg.org/ticket/11686#comment:2
Traneptora has quit [Quit: Quit]
ccawley2011 has joined #ffmpeg-devel
Traneptora has joined #ffmpeg-devel
<TheVibeCoder> how encoder does two-pass encoding?
<fflogger> [editedticket] michael: Ticket #11686 ([swscale] [Security] signed integer overflow on libswscale/output.c) updated https://trac.ffmpeg.org/ticket/11686#comment:3
<fflogger> [editedticket] michael: Ticket #11692 ([swscale] [Security] heap-buffer-overflow on alphablend.c:77) updated https://trac.ffmpeg.org/ticket/11692#comment:3
<fjlogger> [FFmpeg/FFmpeg] Pull request review comment: [#20023 avcodec/dvbsubenc: add a min_bpp option to work around some decoders.](https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20023) by cus
mkver has joined #ffmpeg-devel
___nick___ has joined #ffmpeg-devel
mkver has quit [Ping timeout: 265 seconds]
___nick___ has quit [Client Quit]
<kierank> I see nobody (except kasper93) has concerns about tls being vibe coded in ffmpeg
___nick___ has joined #ffmpeg-devel
___nick___ has quit [Ping timeout: 248 seconds]
<sfan5> C is not good for vibe coding
<kasper93> I only noticed the hypens, which for sure were not put there by human, why would you
<kasper93> I think for actuall code changes concer BtbN was fixing lots of fallout
<kierank> kasper93: you could have been writing code in microsoft word :)
<kierank> one time there was a ML patch in a word doc
<jamrial> lol
<BtbN> At work Word Documents with screenshots of websites or PDFs are quite frequent
<BtbN> Cause somehow they only know how to make screenshots with word??
<kierank> It was a word doc with an export from some weird VCS
<fjlogger> [FFmpeg/FFmpeg] Pull request opened: #20060 swscale/output: Fix all bilinear integer overflows (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20060) by michaelni
<fflogger> [editedticket] michael: Ticket #11686 ([swscale] [Security] signed integer overflow on libswscale/output.c) updated https://trac.ffmpeg.org/ticket/11686#comment:4
Gramner has joined #ffmpeg-devel
deeyes has joined #ffmpeg-devel
deeyes has quit [Ping timeout: 248 seconds]
kurosu has quit [Quit: Connection closed for inactivity]
<fjlogger> [FFmpeg/FFmpeg] Pull request opened: #20061 lavc/vvc: Mark SPS used if multiple CLVSSs use it (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20061) by frankplow
<kasper93> BtbN: do you have ability to edit email format for opened PRs?
<BtbN> no
<kasper93> sad, I think it would be good to append .patch and .diff link, for people who don't want to View it on FFmpeg Forgejo
<BtbN> Just need to append it to the link already in there
<wbs> it would indeed be neat if the initial post could include the diff, for an easy glance when viewing the mail
<BtbN> You'll have to send a patch upstream for that
<wbs> (and also for making an archive of the mail notifications more useful for archiving things)
<wbs> yeah I guess so
<BtbN> Shouldn't be incredibly hard to do, but will need a patch
SuperFashi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
SuperFashi has joined #ffmpeg-devel
witchymary has quit [Remote host closed the connection]
witchymary has joined #ffmpeg-devel
<kasper93> snprintf on null is also not nice
cone-144 has joined #ffmpeg-devel
<cone-144> ffmpeg Marton Balint master:944329f8fd8e: avfilter/trim: consume all available frames and avoid activate reschedule
<cone-144> ffmpeg Marton Balint master:84d831ec5814: avfilter/af_afade: fix check_input for empty streams
<cone-144> ffmpeg Marton Balint master:0cc46f1f5900: avfilter/af_afade: rework crossfade activate logic
<cone-144> ffmpeg Marton Balint master:4be21b9399d0: avfilter/af_afade: factorize functions generating frames
<cone-144> ffmpeg Araz Iusubov master:cd3321955848: avutil/hwcontext_amf: add device cache size
<cone-144> ffmpeg Araz Iusubov master:5f24c50890c6: amfenc: Fix for full PA queue
iive has joined #ffmpeg-devel
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20023 avcodec/dvbsubenc: add a min_bpp option to work around some decoders. (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20023) by waider
indecisiveturtle has quit [Ping timeout: 245 seconds]
indecisiveturtle has joined #ffmpeg-devel
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20053 avformat/tls_openssl: use ascii - (0x2D) instead of 0x2010 hyphen (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20053) by kasper93
<kierank> kasper93: lol
<kasper93> av_log(NULL is only not nice in tihs file
<kasper93> bro...
BradleyS has quit [Ping timeout: 260 seconds]
ccawley2011 has quit [Read error: Connection reset by peer]
<kasper93> > promises that were made about a fullability to interact by mail
<kasper93> hmm
<fjlogger> [FFmpeg/FFmpeg] New comment on pull request #20055 BIGSLEEP-433502298 (dashdec) and BIGSLEEP-434637586 (sanm) and a unrelated issue in subfile i stumbled across while testing (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20055) by michaelni
<cone-144> ffmpeg Michael Niedermayer master:3ccd7d8c8e85: avcodec/sanm: Check decoded_size for old_codec48
<cone-144> ffmpeg Michael Niedermayer master:ebcdba4c6b34: avformat/subfile: Initialize end on all cases
<cone-144> ffmpeg Michael Niedermayer master:f09c834a7d01: avcodec/cbs_apv_syntax_template: Check tile_data_size
<Traneptora> kierank> I see nobody (except kasper93) has concerns about tls being vibe coded in ffmpeg
<kierank> that's changed
<Traneptora> fwiw, I think many of us do have concerns. I just have nothing to add to the discussion beyond "+1" or something else not interesting
<kierank> I don't care that much if it was for some random filter or codec
<kierank> But for TLS...
<Traneptora> yea, I just didn't feel like responding and saying basically the same thing was unacceptable
<Traneptora> not prolific enough of a contributor to feel like I want to parse a reply from someone typing misspelled lowercase incomplete sentences
<kierank> LOL
minimal has quit [Quit: Leaving]
<llyyr> if the vibe coded code got merged without any reviews, shouldnt the person pushing have their perms taken away or at least be put on ice
stevenliu has joined #ffmpeg-devel
<TheVibeCoder> llyyr: agreed
<stevenliu> I trust the student, and there have more than 95% code was written by.
<kierank> it's not about the 95%
<kierank> it's about the fact it's *TLS*
<kierank> actual encryption