ChanServ changed the topic of #ffmpeg to: Welcome to the FFmpeg USER support channel | Development channel: #ffmpeg-devel | Bug reports: https://ffmpeg.org/bugreports.html | Wiki: https://trac.ffmpeg.org/ | This channel is publically logged | FFmpeg 7.1.1 is released
fling has joined #ffmpeg
sentriz has quit [Ping timeout: 276 seconds]
MyTDT has joined #ffmpeg
MyTDT has quit [Ping timeout: 260 seconds]
sentriz has joined #ffmpeg
YUiNA has quit [Remote host closed the connection]
Kei_N has joined #ffmpeg
Kei_N_ has quit [Ping timeout: 248 seconds]
CHR0N0S has quit [Read error: Connection reset by peer]
Traneptora has quit [Quit: Quit]
Madiator2011 has quit [Remote host closed the connection]
Madiator2011 has joined #ffmpeg
Traneptora has joined #ffmpeg
OGU has joined #ffmpeg
mven9713 has quit [Quit: Goodbye.]
mven9713 has joined #ffmpeg
^Neo has quit [Ping timeout: 260 seconds]
minimal has quit [Quit: Leaving]
MyTDT_ has joined #ffmpeg
MyTDT_ has quit [Ping timeout: 276 seconds]
YUiNA has joined #ffmpeg
upekkha has quit []
upekkha has joined #ffmpeg
ramman has joined #ffmpeg
Dagger has quit [Ping timeout: 268 seconds]
<ramman> Can you make a clip using the frame numbers?
k777__ has quit [Remote host closed the connection]
MyTDT_ has joined #ffmpeg
MyTDT_ has quit [Ping timeout: 276 seconds]
OGU has quit [Ping timeout: 265 seconds]
maxim_d33 has quit [Ping timeout: 276 seconds]
maxim_d33 has joined #ffmpeg
Dagger has joined #ffmpeg
Quackdoc has joined #ffmpeg
Quackdoc has quit [Client Quit]
fling has quit [Ping timeout: 264 seconds]
fling has joined #ffmpeg
_whitelogger has joined #ffmpeg
JanC has joined #ffmpeg
JanC is now known as Guest8482
Guest8482 has quit [Killed (tungsten.libera.chat (Nickname regained by services))]
jmcantrell has quit [Quit: WeeChat 4.6.1]
flotwig has quit [Quit: ZNC - http://znc.in]
flotwig has joined #ffmpeg
flotwig has quit [Client Quit]
flotwig has joined #ffmpeg
flotwig has joined #ffmpeg
flotwig has quit [Changing host]
fling has quit [Ping timeout: 264 seconds]
cantelope has quit [Quit: Connection closed for inactivity]
xx has joined #ffmpeg
ramman has quit [Quit: Leaving]
Keshl has quit [Ping timeout: 252 seconds]
flotwig has quit [Ping timeout: 276 seconds]
Dagger has quit [Ping timeout: 265 seconds]
wobbol has quit [Ping timeout: 252 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Keshl has joined #ffmpeg
Dagger has joined #ffmpeg
de-facto has quit [Remote host closed the connection]
System_Error has quit [Remote host closed the connection]
hussein1 has quit [Remote host closed the connection]
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ffmpeg
hussein1 has joined #ffmpeg
de-facto has joined #ffmpeg
System_Error has joined #ffmpeg
user_oreloznog has joined #ffmpeg
Jan\ has quit [Ping timeout: 276 seconds]
flotwig has joined #ffmpeg
flotwig has quit [Changing host]
flotwig has joined #ffmpeg
mrelcee has quit [Quit: Rectum? it damned near Killed 'em!]
System_Error has quit [Ping timeout: 264 seconds]
derpydoo has joined #ffmpeg
coldfeet has joined #ffmpeg
coldfeet has quit [Client Quit]
rvalue- has joined #ffmpeg
rvalue has quit [Ping timeout: 248 seconds]
Jan\ has joined #ffmpeg
ahmedhamed has joined #ffmpeg
rvalue- is now known as rvalue
System_Error has joined #ffmpeg
Liver_K is now known as FurStaku
FurStaku is now known as Liver_K
coldfeet has joined #ffmpeg
Blacker47 has joined #ffmpeg
figushki has joined #ffmpeg
Shine_ has joined #ffmpeg
K900 has quit [Remote host closed the connection]
K900 has joined #ffmpeg
OGU has joined #ffmpeg
OGU has joined #ffmpeg
SuicideShow has quit [Ping timeout: 276 seconds]
SuicideShow has joined #ffmpeg
maxim_d33 has quit [Ping timeout: 276 seconds]
maxim_d33 has joined #ffmpeg
Sketch has quit [Remote host closed the connection]
Sketch has joined #ffmpeg
OGU has quit [Ping timeout: 252 seconds]
OGU has joined #ffmpeg
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bleb has quit [Ping timeout: 252 seconds]
bleb has joined #ffmpeg
lavaball has joined #ffmpeg
figushki has joined #ffmpeg
figushki has quit [Changing host]
figushki has joined #ffmpeg
figushki has quit [Client Quit]
figushki has joined #ffmpeg
peacefight has quit [Remote host closed the connection]
peacefight has joined #ffmpeg
user_oreloznog has quit [Ping timeout: 244 seconds]
user_oreloznog has joined #ffmpeg
rsx has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 276 seconds]
EmleyMoor has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 245 seconds]
sihloo has quit [Ping timeout: 252 seconds]
EmleyMoor has joined #ffmpeg
sihloo has joined #ffmpeg
derpydoo has quit [Quit: derpydoo]
^Neo has joined #ffmpeg
^Neo has quit [Changing host]
^Neo has joined #ffmpeg
sihloo_ has joined #ffmpeg
sihloo has quit [Ping timeout: 268 seconds]
MyTDT_ has joined #ffmpeg
MyTDT_ has quit [Ping timeout: 276 seconds]
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flotwig_ has joined #ffmpeg
flotwig_ has joined #ffmpeg
flotwig has quit [Ping timeout: 268 seconds]
ppa_csharp has joined #ffmpeg
<ppa_csharp> Hello! I have a PNY 1060 Graphics card in a spare PC of mine. Is it possible to use it for the nvidia encoding features of ffmpeg?
<termos> seems like it should be fine, it has an nvenc chip with support for 8 concurrent encodes (its geforce 1060) https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new
sihloo_ has quit [Ping timeout: 268 seconds]
MyTDT_ has joined #ffmpeg
MyTDT_ has quit [Ping timeout: 260 seconds]
ppa_csharp has quit [Ping timeout: 240 seconds]
cantelope has joined #ffmpeg
ahmedhamed has quit [Quit: Connection closed for inactivity]
tokyovigilante has quit [Ping timeout: 268 seconds]
tokyovigilante has joined #ffmpeg
sihloo has joined #ffmpeg
hightower2 has joined #ffmpeg
stolen has joined #ffmpeg
debabrata has joined #ffmpeg
figushki has joined #ffmpeg
ahmedhamed has joined #ffmpeg
debabrata has quit [Quit: Leaving]
JanC has joined #ffmpeg
JanC is now known as Guest3398
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jprjr has quit [Ping timeout: 276 seconds]
jprjr has joined #ffmpeg
figushki has joined #ffmpeg
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
figushki has joined #ffmpeg
BSaboia has quit [Quit: ZNC - https://znc.in]
BSaboia has joined #ffmpeg
BSaboia has quit [Remote host closed the connection]
mark4o has joined #ffmpeg
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OGU has quit [Ping timeout: 252 seconds]
five618480339176 has joined #ffmpeg
markh has quit [Ping timeout: 268 seconds]
mark4o is now known as markh
BSaboia has joined #ffmpeg
BSaboia has quit [Remote host closed the connection]
kasper93 has quit [Quit: kasper93]
BSaboia has joined #ffmpeg
kasper93 has joined #ffmpeg
OGU has joined #ffmpeg
OGU has quit [Changing host]
OGU has joined #ffmpeg
figushki has joined #ffmpeg
demicv_ has joined #ffmpeg
T2D1 has joined #ffmpeg
figushki has quit [Client Quit]
System_Error has quit [Remote host closed the connection]
OGU has quit [Ping timeout: 252 seconds]
peacefight has quit [Ping timeout: 252 seconds]
figushki has joined #ffmpeg
<demicv_> How can I find out the exact container with ffprobe? I want to only allow widely-supported formats on my site, but ffprobe shows the same format for e.g. { MP4, MOV }, { MKV, WebM }, which are wildly different in terms of compatibility. I can theoretically just use GNU file but I feel like domain-specific tool such as ffprobe should be more accurate than that?
System_Error has joined #ffmpeg
<JEEB> for mp4-like subformats the major_brand is exposed
jmcantrell has joined #ffmpeg
<JEEB> for matroska vs webm there really is no major method of identification, since if you look at the spec it mostly says "this is matroska with this feature, this feature and this feature utilized" https://www.webmproject.org/docs/container/
<JEEB> or wait, OK. doctype could be a thing in webm... /me checks
<demicv_> JEEB, yeah the major brand is the same for MP4 and MOV ("isom"). GNU find can still tell the difference.
<JEEB> demicv_: that means that the "mov" file is actually based on MP4 ^^; MOV aka QTFF is supposed to have a qtff brand
rsx has quit [Quit: rsx]
<JEEB> of course you may have minor brands regarding that but let me pull the apple spec
<demicv_> quite likely. I just punched `ffmpeg -i file.mp4 file.mov` to test that
YUiNA has quit [Remote host closed the connection]
<JEEB> so apparently they currently they no longer define the major brand, but rather just that the compatible brands should contain 'qt ' if it's supposed to be a QTFF file
<JEEB> that said I have quite a few mov files here and there definitely is a major brand of the qt type
coldfeet has quit [Quit: Lost terminal]
<JEEB> yea I have one definitely final cut studio generated one that has 'qt ' as the major brand, as well as one atomos generated. but both also have 'qt ' in the compatible brands list
<JEEB> but basically having 'isom' in the major brand means that the primary specification the file can be interpreted as is ye normal mp4
<JEEB> which is not surprising since QTFF files output by iOS devices for example mostly are just ISOBMFF aka MP4 (with some QTFF additions)
<JEEB> also the reason why relative internals for similar enough formats are not usually exposed is because if you just need to figure out what is within the file (streams, metadata, packets etc), that really is not often relevant
<JEEB> in theory though if someone really wants, the doctype could be exposed from the matroska demuxer for example
delthas_ is now known as delthas
BSaboia has quit [Quit: ZNC - https://znc.in]
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<demicv_> I kinda just need to determine is a video is playable by Chrome & other major web browsers
BSaboia has joined #ffmpeg
figushki has joined #ffmpeg
<JEEB> in that case I'd probably just look at the codecs in general. you could in theory have vp9|vp8 + opus|vorbis in matroska, but it's quite unlikely
<JEEB> for example those isom qtff files play just fine in browsers with H.264 and AAC since the major brand is ISOBMFF
<JEEB> and now that browsers added HEVC hwdec even the HDR files created by iOS play with HEVC and AAC
<JEEB> also actually not sure if a browser would nope at matroska doctype if the codecs in streams are vp9 and opus for example
<JEEB> OK, mostly for the extension they are nope'ing. let's just rename the extension :P
<JEEB> yea, firefox opens a matroska doctype with a supported readed video format just fine
<JEEB> let's see chromium
<JEEB> yea, same
<JEEB> so neither firefox or chromium actually limits reading of EBML to webm doctype
figushki has quit [Ping timeout: 268 seconds]
<JEEB> ^ demicv_ , so with webm its doctype is not that important.
<JEEB> (also funny enough this was with a video codec that is not officially part of webm at all - AV1. it was never added into the webm container specification since GOOG never cared about it as they moved on to using MP4 for AV1)
<demicv_> But e.g. MKV files genereted by OBS are absolutely unplayable despite having the same Matroska / WebM output in ffprobe
<JEEB> which codecs in streams?
<JEEB> basically I'd expect the matroska parsers in browsers to support webm subset plus av1
<JEEB> (even though av1 is not part of webm spec at all)
<demicv_> h264 I see
minimal has joined #ffmpeg
<JEEB> yup, that's unlikely to be supported, and as I noted checking the stream codecs is more useful than possibly wanting the doctype string since neither chromium or firefox seem to care about it
<JEEB> the mime type or extension is what seems to decide whether the browser opens it at all or not. for a local file I had to rename the file to dot-webm but then the matroska-doctype'd file worked just fine.
stolen has quit [Quit: Connection closed for inactivity]
T2D1 has quit [Remote host closed the connection]
T2D1 has joined #ffmpeg
Liver_K is now known as FurStaku
FurStaku is now known as Liver_K
a0z has joined #ffmpeg
<ossifrage> TIL ffmpeg has a fairly low max image size: [ffmpeg] IMGUTILS: Picture size 17408x17408 is invalid
<JEEB> yea, that's because various bits including AVFrame just uses int
<JEEB> and then you need to keep in mind X on Y and all that jazz
<JEEB> so yes, hysterical raisins and it could be changed to int64_t, but that requires quite a code base wide adjustment, possibly in the SIMD paths as well
<ossifrage> I often use uint16_t or int16_t for width/height and int32_t for stride,
<JEEB> and yea, that technically even with X times Y doesn't hit 31 bits, but 29.
<kepstin> gonna be funny if folks keep making higher and higher resolution video standards, and eventually they hit a point where nobody adopts the new standard because ffmpeg doesn't support frames sizes that large :)
<JEEB> I'd have to look up the actual limitation
<ossifrage> sqrt(2**31) is 46340
<JEEB> > if (w==0 || h==0 || w > INT32_MAX || h > INT32_MAX || stride >= INT_MAX || stride*(h + 128ULL) >= INT_MAX) {
<kepstin> sure, but also you have to account for the fact that each pixel is multiple bytes (in most pixel formats)
<JEEB> I will guess the last thing is what fails there?
<kepstin> hmm, how to planes factor into this?
<ossifrage> In my case it was a jpeg in a tif (ugg), 3 channel, 8 bit YUV
<JEEB> kepstin: I think it's mostly relevant when things are packed, which is what I expect it's checking for
<JEEB> which affects the stride
YUiNA has joined #ffmpeg
<kepstin> yeah, if indexing is done separately for each plane, that wouldn't be likely to cause problems.
<ossifrage> 17408*3*(17304+128) < 2**31
<ossifrage> [err typo, but close enough]
<kepstin> i do recall there being a separate limit somewhere to prevent excessive memory usage, rather than based just on limits of types?
<JEEB> yea, but this specific message he posted has that if
<JEEB> it depends on the exact stride etc utilized, so you'd have to print those out to figure out what was utilized
<kepstin> interesting, if the av_image_get_linesize() fails for some reason, it assumes stride of 8 * width
<ossifrage> I assumed the normal worst case stride would be 3 widths, but I've used weird layouts in the past so who know
<kepstin> (17408×8+128×8)×(17304+128) is > INT_MAX
<JEEB> https://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavutil/imgutils.c;h=7b88738e2dc87eafb9b3f37a12e25b9b81d7be97;hb=HEAD#l301
<JEEB> that's the if in which you want to patch the av_log if you want to see it
<kepstin> so it seems like for some reason, "av_image_get_linesize()" doesn't work for whatever pix_fmt this is? (returns a negative number)
<ossifrage> ffprobe says Video: tiff, yuv420p, 25 fps, 25 tbr, 25 tbn
kasper93 has quit [Ping timeout: 272 seconds]
<kepstin> right, if that's decoded as planar then the longest stride will be for the y plane, and it should just be the image width (1 byte per sample) plus padding...
T2D1 has quit [Quit: Leaving]
<JEEB> probably if the sample is share'able that'd probably be the best way for kepstin to poke at it
kasper93 has joined #ffmpeg
<ossifrage> I ended up using feh to display it, pqiv was having trouble zooming, the gnome doc viewer crapped out when it tried zooming
kasper93_ has joined #ffmpeg
kasper93 has quit [Killed (tantalum.libera.chat (Nickname regained by services))]
kasper93_ is now known as kasper93
<kepstin> huh, kinda surprised that i don't have a debug build of ffmpeg handy. have to fix that :)
<ossifrage> I'd assume we are fairly close to having an off the shelf image sensor with similar resolution. I'm more of a big pixel fan then a many pixel fan, but to each their own
<kepstin> hmm. that's weird. av_image_check_size2 is getting called with AV_PIX_FMT_NONE
kasper93_ has joined #ffmpeg
<kepstin> via "decode_simple_internal"
<ossifrage> The jpeg inside of a tiff is kinda odd
kasper93__ has joined #ffmpeg
kasper93 is now known as Guest3656
kasper93__ is now known as kasper93
Guest3656 has quit [Ping timeout: 252 seconds]
kasper93_ has quit [Ping timeout: 252 seconds]
<ossifrage> 17767*17240*2*3/frame (rgb 16 bit)
<kepstin> ok, so the problem appears to be that that "ff_set_dimensions" libavcodec/utils.c:93 is unconditionally passing AV_PIX_FMT_NONE instead of using the pixel format from the AVCodecContext?
<kepstin> in all the tiff code, the pix_fmt is set right, it's just getting ignored in the call to "ff_set_dimensions" :/
<kepstin> allows ffmpeg to decode the sample tiff for me.
* JEEB runs FATE on that
<JEEB> initially passes at least
flotwig_ has quit [Read error: Connection reset by peer]
<JEEB> kepstin: fyi with that patch applied that linked sample still fails
<kepstin> hmm. well, if it's failing it must be getting further an then failing in a different spot then? I'll admit that i didn't test very thoroughly
flotwig has joined #ffmpeg
<JEEB> `./ffprobe -v verbose -i https://maxar-opendata.s3.amazonaws.com/events/Earthquake-Myanmar-March-2025/ard/47/122022102202/2025-02-14/10400100A39C6A00-visual.tif` is what I did, and then you get the IMGUTILS message for invalid size, then it says it is ignoring the size and then fails because of 0x0 being the fallback ^^;
<kepstin> yeah, it's getting further but still failing.
<kepstin> it fails during decode instead of probe now
<kepstin> there's a bunch of calls to "av_image_check_size2" with AV_PIX_FMT_NONE in libavcodec/avcodec.c :/
flotwig has quit [Read error: Connection reset by peer]
<JEEB> so I patched the one in decode.c first, and thus the one in `libavcodec/avcodec.c:241` is the one failing now
<JEEB> `break libavutil/imgutils.c:302` was useful
<kepstin> https://www.kepstin.ca/dump/0001-Use-pix_fmt-from-codec-context-when-calling-av_image.patch is enough to get "ffmpeg_g -v debug -i 10400100A39C6A00-visual.tif -f null -" to work for me
flotwig has joined #ffmpeg
flotwig has quit [Changing host]
flotwig has joined #ffmpeg
<kepstin> probably would want to audit every site that calls av_image_check_size2. if this change is desirable at all, that is.
<JEEB> I mean, without good reasoning as to why the maximum possible worst case is utilized, the change itself I think is desire'able
Taripe is now known as ePirat
GNU_world has joined #ffmpeg
<ossifrage> TIL Sony Alpha 7R IV from 2020 would shoot 19008x12672 using exposure stacking and sub-pixel shifting.
ChocolateArmpits has joined #ffmpeg
amogh has quit [Quit: Connection closed for inactivity]
Shine_ has quit [Read error: Connection reset by peer]
JanC has joined #ffmpeg
JanC has quit [Killed (erbium.libera.chat (Nickname regained by services))]
figushki has joined #ffmpeg
figushki has quit [Client Quit]
coldfeet has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
figushki has joined #ffmpeg
figushki has joined #ffmpeg
figushki has quit [Changing host]
JanC has joined #ffmpeg
JanC is now known as Guest1350
Guest1350 has quit [Killed (zirconium.libera.chat (Nickname regained by services))]
xx has quit [Ping timeout: 264 seconds]
coldfeet has quit [Quit: Lost terminal]
prg has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
prg has joined #ffmpeg
hsv has quit [Ping timeout: 252 seconds]
hsv has joined #ffmpeg
termos has quit [Ping timeout: 252 seconds]
termos has joined #ffmpeg
Sakura`Kinomoto has quit [Ping timeout: 252 seconds]
user_oreloznog has quit [Quit: https://quassel-irc.org]
ChocolateArmpits has quit [Ping timeout: 244 seconds]
Sakura`Kinomoto has joined #ffmpeg
nikolay_ has joined #ffmpeg
hjckr has quit [Ping timeout: 252 seconds]
nikolay_ is now known as hjckr
Traneptora has quit [Quit: Quit]
demicv_ has quit [Remote host closed the connection]
demicv_ has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
Juest has quit [Ping timeout: 265 seconds]
a0z has quit [Ping timeout: 252 seconds]
Juest has joined #ffmpeg
emmanuelux has joined #ffmpeg
System_Error has quit [Ping timeout: 264 seconds]
flotwig_ has joined #ffmpeg
flotwig has quit [Ping timeout: 272 seconds]
System_Error has joined #ffmpeg
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flotwig has joined #ffmpeg
flotwig has quit [Changing host]
flotwig has joined #ffmpeg
flotwig_ has quit [Read error: Connection reset by peer]
flotwig has quit [Ping timeout: 265 seconds]
flotwig has joined #ffmpeg
jarxd has quit [Remote host closed the connection]
flotwig has quit [Ping timeout: 252 seconds]
flotwig has joined #ffmpeg
wobbol has joined #ffmpeg
znood has joined #ffmpeg
znood has left #ffmpeg [#ffmpeg]
lavaball has quit [Remote host closed the connection]
shibboleth has joined #ffmpeg
MyTDT has joined #ffmpeg
MyTDT has quit [Ping timeout: 265 seconds]
someuser has joined #ffmpeg
flotwig has quit [Ping timeout: 260 seconds]
anotheruser has joined #ffmpeg
someuser has quit [Ping timeout: 265 seconds]
flotwig has joined #ffmpeg
flotwig has quit [Changing host]
flotwig has joined #ffmpeg