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 has been released! | Please read ffmpeg.org/developer.html#Code-of-conduct
<jamrial> BtbN: that file seems to be missing the alpha layer sps/pps pair
<BtbN> Hmmm, does nvenc expect you to just generate that yourself?
<jamrial> no idea, but it's needed according to that pdf above, and present in the mov JEEB shared
<BtbN> It has no controls beyond enabling a binary toggle and feeding it data with an alpha channel
<jamrial> also, your sample has "Scalability type 3" which our decoder can't currently handle
<Traneptora> ye, it reports an error
<Traneptora> wasn't sure if that was due to the alpha or not
<Traneptora> in either case, maybe our nvenc wrapper could add the sps/pps pair?
<BtbN> I'd rather not start generating bitstream in the nvenc wrapper
<BtbN> Also, there already is one, produced by nvenc
<jamrial> the sample has the slice NALUs for the alpha layer, but the sps/pps pair are missing
<jamrial> maybe they were not added to extradata?
<BtbN> How would that even work? Just append them to the extradata?
<jamrial> somewhere nuh_layer_id > 0 may be getting filtered
<jamrial> does nvEncGetSequenceParams() not return them?
<BtbN> if they're missing, it must not
<jamrial> BtbN: what if you request spsId = 1 and ppsId = 1 in a separate call?
<BtbN> My understanding of those parameters is that it tells it what to write into the header, not which header to grab
<jamrial> well, it at least generated alpha layer slices with slice_pic_parameter_set_id = 1
<BtbN> Would I just append the two buffers?
<jamrial> yeah
<jamrial> bah, depends, does it output hvcC?
<jamrial> or raw annex-b?
<BtbN> It has a flag I could set, NV_ENC_PIC_FLAG_OUTPUT_SPSPPS
<BtbN> "Write the sequence and picture header in encoded bitstream of the current picture"
<jamrial> that will output the sps/pps with the next output picture
<BtbN> also a "bool outputAnnexBFormat", but only for AV1
<BtbN> I can't find any concere info on what it outputs
witchymary has quit [Remote host closed the connection]
<jamrial> BtbN: looks like raw annex-b, so you can append the two buffers
<BtbN> but that function does not exist
<BtbN> weird
<BtbN> oh, the function itself has no s
<BtbN> but yeah, that function is unrelated
<BtbN> If that does not work, the only other possibility is that it only works with inline SPS/PPS
<BtbN> Which would be highly annoying
<Traneptora> haasn: seem to be getting some libplacebo crashes on windows
<Traneptora> with ffmpeg's libplacebo filter
<Traneptora> it gets to: [libplacebo @ 0x5b52e8bbfa00] No VkInstance provided, creating one...
<Traneptora> and then crashes. it's windows so I'm not really sure how to get a log or anything
<jamrial> BtbN: i tried to set payload.spsId and payload.ppsId to 1 with a normal encoding and it did not error out. the output id in the bitstream for both was 0
<jamrial> so it either does nothing, or will need extra precautions for non alpha encodings
<BtbN> with the correct size that is...
arch1t3cht3 has joined #ffmpeg-devel
<BtbN> no error at least
arch1t3cht has quit [Ping timeout: 265 seconds]
arch1t3cht3 is now known as arch1t3cht
<BtbN> There is a tiny difference in size
<BtbN> but no clue if it's correct
<jamrial> no, it's not. it's just the same vps/sps/pps group twice
<BtbN> hm, just broken then
thilo has quit [Ping timeout: 276 seconds]
<jamrial> BtbN: are you passing the encoder any actual alpha channel input?
<BtbN> yep
<jamrial> i see alphaBuffer in NV_ENC_PIC_PARAMS
<BtbN> That's for their own invented NV12A format
<jamrial> then no idea. it's weird it outputs slice NALUs with id 1 but no sps/pps
thilo has joined #ffmpeg-devel
<BtbN> I didn't bother with that, adding that to ffmpeg would be a huge hackfest
<BtbN> I just use RGBA
witchymary has joined #ffmpeg-devel
<BtbN> Basically you can either feed it normal RGBA/BGRA data, or two NV12 buffers, where the alpha one has the chroma plane filled with 0x80
<BtbN> So I'd need to add a NV12A pixel format or something to ffmpeg...
<jamrial> can i see your current branch?
<BtbN> That's the test command I use ./ffmpeg -i /mnt/d/Cache/10s.mp4 -vf chromakey=0x00FF00:0.1:0.5 -c:a copy -c:v hevc_nvenc -cq 15 -alpha 1 -tag:v hvc1 -y out.mp4
HarshK23 has joined #ffmpeg-devel
kmikita has quit [Ping timeout: 244 seconds]
thilo has quit [Ping timeout: 246 seconds]
<jamrial> BtbN: so i think the problem is in nvEncGetSequenceParams()
<jamrial> BtbN: try "./ffmpeg -i /mnt/d/Cache/10s.mp4 -pix_fmt argb -an -c:v hevc_nvenc -cq 15 -alpha 1 -tag:v hvc1 -vframes 10 -bsf:v trace_headers -f null -"
<jamrial> you will see the sps/pps with id in the trace_headers output
<jamrial> i guess it needs to be reported to nvidia
thilo has joined #ffmpeg-devel
IndecisiveTurtle has joined #ffmpeg-devel
Martchus has joined #ffmpeg-devel
Martchus_ has quit [Ping timeout: 252 seconds]
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg-devel
Traneptora has quit [Quit: Quit]
mkver has quit [Ping timeout: 248 seconds]
IndecisiveTurtle has quit [Ping timeout: 265 seconds]
jamrial has quit []
kmikita has joined #ffmpeg-devel
^Neo has quit [Ping timeout: 252 seconds]
Martchus_ has joined #ffmpeg-devel
Martchus has quit [Ping timeout: 265 seconds]
sunyuechi has joined #ffmpeg-devel
<sunyuechi> kurosu: Updated the test
sunyuechi has quit [Remote host closed the connection]
HarshK23 has quit [Quit: Connection closed for inactivity]
compnn has joined #ffmpeg-devel
rcombs has quit [Ping timeout: 246 seconds]
signalhunter8 has joined #ffmpeg-devel
rodeo has quit [Ping timeout: 252 seconds]
mindfreeze has quit [Read error: Connection reset by peer]
termos has quit [Read error: Connection reset by peer]
Son_Goku has quit [Ping timeout: 272 seconds]
signalhunter has quit [Read error: Connection reset by peer]
signalhunter8 is now known as signalhunter
mindfreeze has joined #ffmpeg-devel
termos has joined #ffmpeg-devel
rodeo has joined #ffmpeg-devel
Compn has quit [Read error: Connection reset by peer]
Chagall has quit [Ping timeout: 246 seconds]
Chagall has joined #ffmpeg-devel
rcombs has joined #ffmpeg-devel
Son_Goku has joined #ffmpeg-devel
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg-devel
<fflogger> [editedticket] gegege: Ticket #11333 ([undetermined] Incomplete conversion of certain Apple H.265 MOV "hstack") updated https://trac.ffmpeg.org/ticket/11333#comment:4
<beastd> wbs: there is a single problem left with fate-list-failing . When we call fate-list-failing with no .rep files present it will give error output about not being able to open the glob pattern. It's been there in the first version as well but I didn't catch it before. IMHO it's more of a cosmetical issue. could be only problematic for programmatic use of the target.
<wbs> beastd: yep; would be nice if it would be possible to smooth over somehow
<Lynne> are there still not enough TC volunteers to make it to 5?
<Lynne> I volunteer in this case
<beastd> wbs: thinking about a simple solution... will test it and reply later after dayjob
<Lynne> (this is your cue to volunteer yourself)
<beastd> Lynne: I intend to volunteer for TCC
<beastd> *TC
Chagall has quit [Ping timeout: 260 seconds]
<pross> will we ever get multithreaded configure script
<elenril> how does one multithread in bash
<elenril> also, configure is substantially faster when pinned to one core
haihao has quit [Ping timeout: 276 seconds]
haihao has joined #ffmpeg-devel
<wbs> elenril: it's doable to have shell script fork off many child processes; collecting the results of it is a bit more complex though
<elenril> clearly it should be done with make
<Lynne> the gstreamer folks have a (somewhat incomplete) meson port and want to merge it, I told them to send a patch, but so far they haven't
<elenril> sounds like a pointless waste of time to me
ngaullier has joined #ffmpeg-devel
<Lynne> it is, and yet, being able to use ffmpeg as a submodule would make users really happy
<Lynne> imagine, being able to include ffmpeg, and all deps you use, and compile everything all at once
<elenril> if meson is unable to deal with a subproject using a pretty standard configure+make system, that's a problem in meson
<elenril> Lynne: also, can you answer my question from yesterday?
<Lynne> err, didn't I?
<elenril> 14:20:49 @elenril | Lynne: is it actually expensive?
<elenril> is this weird complexity actually worth it?
<Lynne> oh, that, no, its not really expensive
<elenril> so can we just do the init twice then?
<Lynne> if you're referring to the bootstrap function in vulkan_decode.c, sure
<elenril> I think that would also fix the problem from https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2024-November/336820.html
<Lynne> its the only function whose state is saved and can be reused between calling frame_params and actual decoder init
zenmov has quit [Ping timeout: 252 seconds]
<Lynne> weird, it *should* work already
<Lynne> bootstrap() does the same actions that ff_vk_init() (called during decoder init) does
<Lynne> what sort of issues did you run into?
<elenril> I didn't test it myself, but AFAIU the problem happens if you call frame_params, and then hwaccel init fails at at a later point
<elenril> then you get stale hwaccel state lying around, because avcodec_get_hw_frames_params() is not supposed to modify any state
<Lynne> no, I meant when you revert the commit you linked yesterday
<elenril> ah, it segfaults then
<elenril> that is - it segfaults with ffmpeg CLI if I also modify it to call avcodec_get_hw_frames_params() explicitly
<elenril> we probably want a test tool for that
zenmov has joined #ffmpeg-devel
<Lynne> what do I do with the clean_priv_data chunk during reverting?
<elenril> remove it - there's nothing to clean since it doesn't modify any state
<Lynne> could you give me the patch to call frame params?
<Lynne> cheers
<Lynne> ah, I see what happens
<Lynne> am I misremembering or shouldn't ff_decode_get_hw_frames_ctx call frame_params?
<elenril> it does
<Lynne> does it clean up the context afterwards?
<Lynne> ah, it does not call it with hwaccel_priv_data set even if called within decoder init when hwaccel_priv_data should be allocated
<Lynne> is this meant to happen or does hwaccel_priv_data get allocated only if frame_params suceeds when being called in the context of decoder init
<elenril> IIUC hwaccel_priv_data is only allocated later
<Lynne> does ff_decode_get_hw_frames_ctx call frame_params if frame params was explicitly called beforehand?
<elenril> strictly speaking it should not matter
<elenril> but typically if the caller calls avcodec_get_hw_frames_params() manually, they set the resulting frames context on the decoder
<elenril> so ff_decode_get_hw_frames_ctx() does not get called
<Lynne> but decoder init calls get_hw_frames_ctx(), which should call frame_params, but I'm not seeing that happen
<Lynne> (I'm trying to overengineer frame_params being called in the context of decoder init propagating the temporary context onto the main context, because its just a few lines of code to do)
<elenril> it only does that if the frames context is not set by the caller
<Lynne> ah, ok, thanks
<kurosu> That's taken from https://git.videolan.org/?p=ffmpeg.git;a=blob;f=tests/checkasm/h264chroma.c;h=9579fceab71d3932cb3ea0b1d941c4ff879b3b23;hb=HEAD#l34
<kurosu> I think you've added chroma_mc, and I don't understand the &3 for 8 bits (and not 0xFF, but that's what is used for >8 bits)
<kurosu> it looks like a sample buffer, so that should be anywhere in the [0; 255] range ?
<Lynne> wow, that's the code I hacked up in 5 minutes when I was upset at sifive people sending shady asm with no benchmarks for uncheckasmd code
<Lynne> my comment is: I have no idea what I was thinking
<Lynne> worse still, this was cargo culted to tests/checkasm/rv40dsp.c
<kurosu> I am... nonplussed that the submitter noticed it, fixed it, then reverted the code to conform to the cargo culting
<kurosu> I think it's fine to reuse the code, though, but just making sure the rv40dsp test thing isn't going in as in
<nevcairiel> "There must've been a reason for it that i'm not aware of" is a powerful thought :P
<kurosu> and maybe that the chroma_mc can be fixed (I can't really submit patches)
<kurosu> at least, it's worth asking. I was confident it was wrong, and maybe it was a quarter-pel MV buffer in spite of everything
<kurosu> s/wrong/strange
<kurosu> (and again, I'm not complaining about the code given the original premises - I'm overengineering the test)
<kurosu> isn't rv40 the codec who has an incorrectly copied MC case where something like 3,3 is handled as 1,3 ?
IndecisiveTurtle has joined #ffmpeg-devel
cone-282 has joined #ffmpeg-devel
<cone-282> ffmpeg Niklas Haas master:ec0489e35c2b: avutil/csp: fix documentation of av_csp_trc_function
<cone-282> ffmpeg Niklas Haas master:feb5982f435f: avutil/csp: eliminate redundant branch
<cone-282> ffmpeg Niklas Haas master:bf0a6c411118: avutil/csp: add av_csp_trc_inv_from_id()
<cone-282> ffmpeg Niklas Haas master:7b73ea501dc7: avutil/tests/color_utils: add tests for av_csp_itu_eotf
<cone-282> ffmpeg Niklas Haas master:06f084468e03: avutil/csp: add EOTF function definitions
<cone-282> ffmpeg Niklas Haas master:28f217780bcd: avutil/tests/color_utils: clean up slightly (cosmetic)
IndecisiveTurtle has quit [Ping timeout: 265 seconds]
IndecisiveTurtle has joined #ffmpeg-devel
Martchus has joined #ffmpeg-devel
Martchus_ has quit [Ping timeout: 252 seconds]
jamrial has joined #ffmpeg-devel
^Neo has joined #ffmpeg-devel
^Neo has joined #ffmpeg-devel
^Neo has quit [Changing host]
Martchus has quit [Ping timeout: 246 seconds]
Martchus has joined #ffmpeg-devel
<fflogger> [editedticket] MasterQuestionable: Ticket #11333 ([undetermined] Incomplete conversion of certain Apple H.265 MOV "hstack") updated https://trac.ffmpeg.org/ticket/11333#comment:5
ccawley2011 has joined #ffmpeg-devel
<BBB> am I now responsible for merging that rv40dsp checkasm patch? or does the submitter have merge access himself?
Traneptora has joined #ffmpeg-devel
sunyuechi has joined #ffmpeg-devel
<sunyuechi> kurosu: I’m not confident about the testing part; I previously thought you were saying I made the wrong changes.
<sunyuechi> BBB: No, I don't.
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
cone-282 has quit [Quit: transmission timeout]
ngaullie has joined #ffmpeg-devel
ngaullier has quit [Ping timeout: 276 seconds]
ngaullie has quit [Ping timeout: 272 seconds]
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
ngaullie has joined #ffmpeg-devel
mkver has joined #ffmpeg-devel
kekePower has quit [Remote host closed the connection]
sunyuechi has quit [Remote host closed the connection]
ngaullie has quit [Ping timeout: 255 seconds]
sunyuechi has joined #ffmpeg-devel
ngaullie has joined #ffmpeg-devel
<Marth64> ffmpeg.org down?
<Marth64> appears to be timing out
<Marth64> yeah its down
<Traneptora> Marth64: working for me, try resolving the domain name and curling it manually
<Traneptora> try seeing what gives: curl -v --url 'https://ffmpeg.org/' -o /dev/null
<putacho> works for me(tm)
<Marth64> ffmpeg.org.600INA79.124.17.100
<Marth64> this IP is timing out on two different ISPs for me
<Marth64> same with given curl
ccawley2011_ has joined #ffmpeg-devel
ccawley2011__ has joined #ffmpeg-devel
<Marth64> works on my 4G connection. maybe some routing issue upstream
<Traneptora> what happens if you traceroute ffmpeg.org
ccawley2011 has quit [Ping timeout: 252 seconds]
ccawley2011_ has quit [Ping timeout: 265 seconds]
ccawley2011__ has quit [Ping timeout: 265 seconds]
<Marth64> dies somewhere on the interwebs
sunyuechi has quit [Remote host closed the connection]
<Marth64> i'll assume network issues in my area for now
sunyuechi has joined #ffmpeg-devel
<Marth64> and its back
<Marth64> dafuq
sunyuechi has quit [Remote host closed the connection]
omegatron has joined #ffmpeg-devel
sunyuechi has joined #ffmpeg-devel
ccawley2011 has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<compnn> Marth64, that whole "internet routes around bad nodes" thing was a lieeee
<Marth64> total lie
<Marth64> i did my time at an isp. 7 years time.
<Marth64> most everyone hates their isp and they are right to
<Marth64> it will round around bad nodes if its convenient for them
<Marth64> </grumble-grumble>
* putacho farts at ISPs
<Marth64> i feel the pain of the poor souls fixing this
<putacho> just read DuckDNS has issues at the moment. Related?
<Marth64> yeah wouldn't be surprised
<Marth64> other sites were impacted as well
<Marth64> it's always DNS, as they say
<BBB> sunyuechi: ok I can merge both patches for you
<BBB> I don't know how to test the 2nd patch though
<BBB> courmisch: would you be able to vouch for [PATCH v3 2/2] lavc/rv40dsp: fix RISC-V chroma_mc?
<BBB> or anyone else here know risc-v?
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
ngaullie has quit [Read error: Connection reset by peer]
<Lynne> jamrial: are you planning on volunteering for TC again?
<jamrial> Lynne: no. and i wasn't in it this past year
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<pal> jamrial: according to my testing the patch at https://patchwork.ffmpeg.org/project/ffmpeg/patch/20241205063903.651603-1-owatanab@es.takushoku-u.ac.jp/ fixes the j2k shift ub
<pal> jamrial: I used ./configure --extra-cflags='-fno-sanitize-recover=undefined' --toolchain=gcc-usan
<elenril> Marth64: I like both my ISPs
<Lynne> I thought you were, nevermind then, I can see why you would't since I don't want to
sunyuechi has quit [Remote host closed the connection]
ccawley2011 has quit [Read error: Connection reset by peer]
sunyuechi has joined #ffmpeg-devel
ccawley2011 has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<Marth64> elenril: this is lucky. keep them :)
<jamrial> pal: should be fine then
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
cone-516 has joined #ffmpeg-devel
<cone-516> ffmpeg Malek Assaad master:6a108d475988: avformat/mov: add support for pssh box
<elenril> Marth64: small local isps are best
<pal> jamrial: thanks
<jamrial> my isp recently implemented ipv6
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<Marth64> yes, in my experience their customer support is superior
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<fflogger> [editedticket] Suxsem: Ticket #11316 ([ffmpeg] DASH manifest generator: incomplete codecstring) updated https://trac.ffmpeg.org/ticket/11316#comment:1
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<fflogger> [editedticket] jamrial: Ticket #11316 ([ffmpeg] DASH manifest generator: hevc codecstring is invalid) updated https://trac.ffmpeg.org/ticket/11316#comment:2
<jamrial> BtbN: did you read what i said last night?
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
Chagall has joined #ffmpeg-devel
ccawley2011 has quit [Ping timeout: 248 seconds]
<BtbN> Yeah
<BtbN> Need to contact Nvidia about it again
<BtbN> I wonder if we could just work around by slightly patching the main set of parameters for now
System_Error has quit [Remote host closed the connection]
<jamrial> BtbN: they are not equal, it's not just the id
<BtbN> yes, but a lot of stuff will be similar
<BtbN> So it might be possible to patch it to work
System_Error has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
IndecisiveTurtle has quit [Ping timeout: 245 seconds]
IndecisiveTurtle has joined #ffmpeg-devel
Sean_McG has quit [Ping timeout: 252 seconds]
sunyuechi has quit [Remote host closed the connection]
Sean_McG has joined #ffmpeg-devel
sunyuechi has joined #ffmpeg-devel
<courmisch> BBB: IIRC, haasn made macros to avoid all that ifdefery, or rather moved my macros but same result
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<Sean_McG> offtopic question, does anyone know if this network has a channel to ask questions about GPG?
<BBB> ah
<BBB> haasn: so maybe you could review that patch?
<BBB> :)
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<Sean_McG> actually nevermind, I think I figured out my issue
<BtbN> Do I see this right, that x265.h depends on internal configtime defines?
<BtbN> Stuff like ENABLE_ALPHA
<JEEB> fun if so
<BtbN> Take for example MAX_SCALABLE_LAYERS
<BtbN> We use that, but its value depends on ENABLE_ALPHA
<BtbN> Which is a config.h variable from x265, that can't be known externally
<BtbN> x265_config.h only defined the X265_BUILD variable
<JEEB> I see add_definitions in their CMakeLists, I wonder if it gets added to pkg-config
<BtbN> nope
<JEEB> yea... recalled like that
<jamrial> BtbN: i have x265 v3.6 and don't see those
<jamrial> are they new?
<BtbN> Not that new
<BtbN> >=210
<jamrial> ah, 3.6 is X265_BUILD 209
<JEEB> yea that assumption has been there ever since 1fcf5ddbaec1fc813b69a62e54ee0faf2c0e9b75
<ramiro> haasn: in the end you pushed the av_csp_trc_func_from_id branch commit. was that intentional?
<JEEB> wonder why they made it build time conditional to begin with...
<JEEB> I mean, if you don't have an alpha surface attached then you do no alpha
<BtbN> It is also COMPLETELY undocumented how to do alpha encoding
<BtbN> If I try to do what the CLI does, I just get a segfault
<jamrial> JEEB: ffs
<jamrial> api/abi breaks with no soname bumps applied and revert, and now this
<JEEB> I think the best bit is that they first added the feature a few commits earlier without the conditionality
<JEEB> which would have been fine, just make it internally so that if you don't code alpha you don't
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<cone-516> ffmpeg Ramiro Polla master:536a44e8dcff: checkasm/sw_range_convert: test negative input values
<cone-516> ffmpeg Ramiro Polla master:2d1358a84d70: swscale/range_convert: saturate output instead of limiting input
<cone-516> ffmpeg Ramiro Polla master:58bcdeb7425e: swscale/aarch64/range_convert: saturate output instead of limiting input
<cone-516> ffmpeg Ramiro Polla master:384fe39623e9: swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats
<cone-516> ffmpeg Ramiro Polla master:be108ebcf48f: swscale/x86/range_convert: update sse2 and avx2 range_convert functions to new API
<cone-516> ffmpeg Ramiro Polla master:6fe4a4ffb635: swscale/aarch64/range_convert: update neon range_convert functions to new API
<cone-516> ffmpeg Ramiro Polla master:87052c09336e: swscale/x86: add sse4 and avx2 {lum,chr}ConvertRange16
<cone-516> ffmpeg Ramiro Polla master:ca889b1328cd: swscale/aarch64: add neon {lum,chr}ConvertRange16
<BBB> ramiro: yes, we discussed on irc
<BBB> ramiro: it was fine, just mis-read
<BBB> (by me and traneptora in different ways)
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<ramiro> BBB: ah, ok. I imagined something like that could have happenned, but I didn't read the backlog.
<BtbN> The libx265 code is horrible, my god
<BBB> no worries, thanks for picking up on it
<BBB> BtbN: any opinions on the dav1d code?
<BBB> (I'm always curious what outsiders think about that code)
<BtbN> No idea, but I'm looking at it for 5 minutes now, and found a bunch of obvious problems
<BtbN> memory leaks left and right
HarshK23 has joined #ffmpeg-devel
IndecisiveTurtle has quit [Ping timeout: 246 seconds]
IndecisiveTurtle has joined #ffmpeg-devel
IndecisiveTurtle has quit [Ping timeout: 252 seconds]
IndecisiveTurtle has joined #ffmpeg-devel
<BtbN> This is absurd. x265.exe works with just one input file. But the API looks like it needs two when in alpha mode
<JEEB> yea the cli takes YUVA
IndecisiveTurtle has quit [Ping timeout: 265 seconds]
IndecisiveTurtle has joined #ffmpeg-devel
<BtbN> Until they actually document how to do that from the API, it'll be impossible
Teukka has quit [Read error: Connection reset by peer]
Teukka has joined #ffmpeg-devel
Teukka has quit [Changing host]
Teukka has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<jamrial> BtbN: http://pastie.org/p/2oysJnSveplKgmCtSYww9i adding ayuv like this seems to work
<Traneptora> the CLI isn't just a frontend to the library?
<BtbN> jamrial: oh, that format isn't documented. Lovely
<jamrial> our vuya? or nvidia's ayuv?
<BtbN> Traneptora: yes, but it's weird
<BtbN> jamrial: the docs only list the rgb ones, and the weird NV12 one
<jamrial> ah
<BtbN> Are you saying it works fine and generates a sensible SPS/PPS?
<BtbN> Or just "works the same as the other ones"? :D
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<jamrial> BtbN: mmh, i get the second sps/pps pair, but no slice nalus? weird
<jamrial> using ./ffmpeg -lavfi testsrc2,format=argb and ./ffmpeg -lavfi testsrc2,format=vuya here
<BtbN> Isn't AYUV a 444 format?
<jamrial> yeah
<BtbN> The docs say Alpha encoding is only supported in 420 mode.
<jamrial> yes, it's converted to 420 internally i assume, same as if you feed it rgb
<jamrial> if i add vuya to the IS_YUV444() list, the wrapper forces 444 and init() fails
<BtbN> Weird
<BtbN> Guess it's not fully implemented then
<jamrial> could be. the sps/pps are generated but then it outputs no slice data for the alpha channel
<BtbN> Maybe that odd NV12 format is the only format they actually tested?
<JEEB> would not be surprised
<BtbN> FFmpeg has nothing alike it though
<BtbN> so it'd need to be somehow emulated on the fly from yuva420p or something
<jamrial> yeah, it probably expects something in alphaBuffer
<BtbN> It expects another entire NV12 buffer there
<BtbN> with Y containing A, and U/V being memset to 0x80
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
witchymary has quit [Remote host closed the connection]
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
iive has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
<Traneptora> that's wild ngl
<BtbN> I mean, I _could_ add that as a format. It'd be the only way to implement it. But no way that could get merged.
<BtbN> Only other alternative would be to add a conversion kernel to nvenc itself, to convert yuv420p or something
<Traneptora> if it only accepts it in this arcane format and nothing else uses this format for anything that seems more sensible than trying to add it to swscale
<Traneptora> if it later turns out that it's used, you can always move the conversion to swscale
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
Marth64 has quit [Quit: Leaving]
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
Marth64 has joined #ffmpeg-devel
cone-516 has quit [Quit: transmission timeout]
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
System_Error has quit [Remote host closed the connection]
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
System_Error has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel
sunyuechi has quit [Remote host closed the connection]
sunyuechi has joined #ffmpeg-devel