BtbN 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.0 is released
cmc has quit [Ping timeout: 260 seconds]
Juest has quit [Ping timeout: 252 seconds]
Juest has joined #ffmpeg
kepstin has quit [Remote host closed the connection]
kepstin has joined #ffmpeg
Nixkernal has quit [Ping timeout: 252 seconds]
cmc has joined #ffmpeg
CruxOfTheB has joined #ffmpeg
tokyovigilante has quit [Remote host closed the connection]
Dagger has quit [Ping timeout: 272 seconds]
tokyovigilante has joined #ffmpeg
Dagger has joined #ffmpeg
wyatt8750 has quit [Ping timeout: 265 seconds]
wyatt8740 has joined #ffmpeg
StephenLynx has quit [Quit: Leaving]
Suchiman has quit [Quit: Connection closed for inactivity]
thomas_D88 has quit [Quit: Ping timeout (120 seconds)]
Marth64 has quit [Remote host closed the connection]
georgereynolds8 has quit [Quit: Ping timeout (120 seconds)]
georgereynolds8 has joined #ffmpeg
travisghansen1 has joined #ffmpeg
psykose has quit [Read error: Connection reset by peer]
psykose has joined #ffmpeg
theracermaster2 has joined #ffmpeg
sentriz has quit [Read error: Connection reset by peer]
sentriz has joined #ffmpeg
pyre_ has quit [Remote host closed the connection]
wyatt8740 has quit [Quit: ZNC got killed or something else has gone wrong, probably.]
pyre has joined #ffmpeg
haritz has quit [Remote host closed the connection]
rvalue has quit [Remote host closed the connection]
theracermaster has quit [Read error: Connection reset by peer]
theracermaster2 is now known as theracermaster
yans has quit [Remote host closed the connection]
wyatt8740 has joined #ffmpeg
rvalue has joined #ffmpeg
thomas_D88 has joined #ffmpeg
ShadowJK has quit [Ping timeout: 252 seconds]
travisghansen has quit [Ping timeout: 252 seconds]
dbal has quit [Ping timeout: 252 seconds]
travisghansen1 is now known as travisghansen
yans has joined #ffmpeg
Juest has quit [Ping timeout: 252 seconds]
mayli has quit [Ping timeout: 252 seconds]
bitblit has quit [Ping timeout: 252 seconds]
Tano has quit [Remote host closed the connection]
johnjaye has quit [Remote host closed the connection]
h-m-h has quit [Ping timeout: 252 seconds]
Some_Person has quit [Ping timeout: 252 seconds]
h-m-h_ has joined #ffmpeg
someperson has joined #ffmpeg
johnjaye has joined #ffmpeg
Juest has joined #ffmpeg
haritz has joined #ffmpeg
mayli has joined #ffmpeg
someperson is now known as Some_Person
Marth64 has joined #ffmpeg
Tano has joined #ffmpeg
bitblit has joined #ffmpeg
hussein1 has quit [Remote host closed the connection]
Suchiman has joined #ffmpeg
johnjaye has quit [Ping timeout: 272 seconds]
johnjaye has joined #ffmpeg
HarshK23 has joined #ffmpeg
Blacker47 has joined #ffmpeg
Buliarous has quit [Ping timeout: 264 seconds]
Traneptora has quit [Ping timeout: 252 seconds]
dbal has joined #ffmpeg
dbal has quit [Ping timeout: 252 seconds]
Hackerpcs has quit [Quit: Hackerpcs]
Suchiman has quit [Quit: Connection closed for inactivity]
rv1sr has joined #ffmpeg
Sketch has joined #ffmpeg
Sketch has quit [Remote host closed the connection]
Sketch has joined #ffmpeg
theracermaster has quit [Quit: theracermaster]
theracermaster2 has joined #ffmpeg
theracermaster2 has quit [Client Quit]
Suchiman has joined #ffmpeg
x_x has joined #ffmpeg
talismanick has quit [Read error: Connection reset by peer]
talismanick has joined #ffmpeg
Traneptora has joined #ffmpeg
ewomer has quit [Ping timeout: 244 seconds]
h-m-h_ has quit [Quit: WeeChat 4.4.2]
ewomer has joined #ffmpeg
vampirefrog has quit [Ping timeout: 260 seconds]
lavaball has joined #ffmpeg
turlando has quit [Quit: No Ping reply in 180 seconds.]
turlando has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
emmanuelux has quit [Quit: au revoir]
<snoriman> Hi, I've created a SwsContext to convert from NV12 to RGBA. I'm running into a memory corruption issue so I'm sure I'm doing something wrong; the strange thing is however that it only happens with images that have a size of 1080 x 1920, all other images which are 2160 x 3840 are scaled correctly. I use `av_image_alloc()` to allocate the output buffers with an alignment of 16 and I suspect that's
<snoriman> the issue but I'm not entirely sure why and what a good solution is?
EmleyMoor has quit [Ping timeout: 260 seconds]
EmleyMoor has joined #ffmpeg
sihloo_ is now known as sihloo
coldfeet has joined #ffmpeg
hussein1 has joined #ffmpeg
minimal has joined #ffmpeg
rossome has quit [Quit: WeeChat 4.4.1]
yibotg has joined #ffmpeg
yibotg has left #ffmpeg [#ffmpeg]
Dagger has quit [Ping timeout: 252 seconds]
Dagger has joined #ffmpeg
<BtbN> try consulting valgrind to point at the immediate source
microchip__ has joined #ffmpeg
ewomer has quit [Read error: Connection reset by peer]
elChippo has joined #ffmpeg
microchip__ has quit [Client Quit]
<snoriman> BtbN: thanks, valgrind gave me a couple of these messages https://gist.github.com/samsnori/5a2af0d66a3e294b36335dee9d92ced7 which indeed hints to something with the alignment.
<snoriman> also when I change the alignment to 32 things works correctly
<BtbN> wrong alignment isn't normally something that causes memory corruption
<BtbN> it'll either just crash or be slow
<BtbN> that report looks incomplete to me
microchip_ has quit [Ping timeout: 265 seconds]
lavaball has joined #ffmpeg
<snoriman> BtbN: I've updated the gist with a bit more lines
<BtbN> The only actual issue is the invalid write
<BtbN> make sure to build your code with debugging symbols, otherwise it's just all ???
<snoriman> hmm debug symbols are enabled
<BtbN> My guess would be that there's not enough padding, so it over-writes
<snoriman> I got the feeling it might be related to the output format (RGBA) ad 16 alignment
<snoriman> yeah
<BtbN> If this is on x86_64 and using AVX2, you must align by 32 bytes, otherwise it can overwrite by up to the difference to 32 bytes
<BtbN> If it's using AVX512, it's even up to 64 bytes
elChippo is now known as microchip_
<snoriman> ok thanks! is that because SWS uses this?
<snoriman> or that it might use it
<BtbN> I don't understand the question
<BtbN> clearly something makes use of 32 byte blocks, otherwise it wouldn't over-write
<snoriman> I was thinking about what you said regarding AVX2 and AVX512. If that determines the alignment, how do I know what to use? (sorry if this is a stupid question)
ewomer has joined #ffmpeg
<snoriman> I think that I'm still not being clear enough
<snoriman> From my understanding my CPU can have both AVX2 and AVX512 support and I can create a function that uses AVX2 or AVX512 or both. Though based what is used by the function, there is a specific memory alignment requirement. It seems that this is the case for SWS. But how do I know what alignment requirement it has?
FH_thecat has quit [Quit: Leaving]
jlc has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jlc has joined #ffmpeg
FH_thecat has joined #ffmpeg
luc4 has joined #ffmpeg
CruxOfTheB has quit [Remote host closed the connection]
ewomer has quit [Read error: Connection reset by peer]
ewomer has joined #ffmpeg
ttys000 has quit [Read error: Connection reset by peer]
ttys000 has joined #ffmpeg
minimal has quit [Quit: Leaving]
ewomer has quit [Read error: Connection reset by peer]
ewomer has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
Hackerpcs has joined #ffmpeg
Hackerpcs has quit [Max SendQ exceeded]
<kepstin> If you're working with stuff in AVFrame, the answer is usually "you don't need to, just use the av frame methods to allocate the buffer with automatic alignment".
<kepstin> "av_frame_get_buffer" with the align parameter set to 0 will use automatically chosen alignment and padding that will work with swscale.
ewomer has quit [Quit: WeeChat 4.4.2]
StephenLynx has joined #ffmpeg
lavaball has joined #ffmpeg
bitblit has quit [Ping timeout: 265 seconds]
bitblit has joined #ffmpeg
cmc has quit [Ping timeout: 260 seconds]
luc4 has quit [Ping timeout: 260 seconds]
Unit640 has joined #ffmpeg
vulpine is now known as ghoulpine
Hackerpcs has joined #ffmpeg
<snoriman> kepstin: ah thanks! So instead of using the `sws_scale` I use `sws_scale_frame()` ?
<StephenLynx> hey, when I moved from av_image_alloc to av_frame_get_buffer, my gif stopped being animated. even the filesize is shorter. any ideas? https://pastebin.com/R7hDiMc4 the whole code. I prepare the frame at line 165.
Hackerpcs has quit [Max SendQ exceeded]
vampirefrog has joined #ffmpeg
rv1sr has quit []
microlappy has joined #ffmpeg
microlappy has quit [Client Quit]
bitbinge has joined #ffmpeg
Suchiman has quit [Quit: Connection closed for inactivity]
cmc has joined #ffmpeg
cmc has quit [Quit: WeeChat 3.8]
cmc has joined #ffmpeg
aljazmc has joined #ffmpeg
Jhonny2x4 has quit [Quit: Jhonny2x4]
Jhonny2x4 has joined #ffmpeg
Jhonny2x4 has quit [Client Quit]
rv1sr has joined #ffmpeg
Jhonny2x4 has joined #ffmpeg
Jhonny2x4 has quit [Client Quit]
Jhonny2x4 has joined #ffmpeg
thomas_D88 has quit [Quit: Ping timeout (120 seconds)]
thomas_D88 has joined #ffmpeg
Suchiman has joined #ffmpeg
Sakura`Kinomoto has quit [Ping timeout: 252 seconds]
ewomer has joined #ffmpeg
Sakura`Kinomoto has joined #ffmpeg
Sakura`Kinomoto has quit [Ping timeout: 252 seconds]
iive has joined #ffmpeg
<travisghansen> is webrtc supported as either input or output? info seems sparse..
<BtbN> no
Sakura`Kinomoto has joined #ffmpeg
<travisghansen> cool, thanks for the info
FlorianBad has quit [Quit: Konversation terminated!]
FlorianBad has joined #ffmpeg
minimal has joined #ffmpeg
cmc has quit [Remote host closed the connection]
cmc has joined #ffmpeg
aljazmc has quit [Quit: Leaving]
NaviTheFairy has quit [Ping timeout: 276 seconds]
ewomer has quit [Read error: Connection reset by peer]
NaviTheFairy has joined #ffmpeg
rajivharlalka has quit [Remote host closed the connection]
rajivharlalka has joined #ffmpeg
ewomer has joined #ffmpeg
chiselfuse has quit [Ping timeout: 260 seconds]
chiselfuse has joined #ffmpeg
five6184803391 has quit [Remote host closed the connection]
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
five6184803391 has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
bitblit has quit [Quit: WeeChat 4.1.1]
TheSilentLink has quit [Quit: Good Bye! My bouncer has probably crashed or lost connection to the internet...]
TheSilentLink has joined #ffmpeg
Juest has quit [Ping timeout: 260 seconds]
iconoclasthero has quit [Ping timeout: 264 seconds]
iconoclasthero has joined #ffmpeg
Juest has joined #ffmpeg
EmleyMoor has quit [Ping timeout: 248 seconds]
lavaball has quit [Remote host closed the connection]
Juest has quit [Ping timeout: 252 seconds]
Juest has joined #ffmpeg
ewomer has quit [Ping timeout: 276 seconds]
ewomer has joined #ffmpeg
Juesto has joined #ffmpeg
Juest has quit [Ping timeout: 252 seconds]
Juesto is now known as Juest
FlorianBad has quit [Remote host closed the connection]
FlorianBad has joined #ffmpeg
cmc has quit [Remote host closed the connection]
cmc has joined #ffmpeg
cmc has quit [Read error: Connection reset by peer]
ShadowJK has joined #ffmpeg
kushal__ has quit [Read error: Connection reset by peer]
ShadowJK has quit [Remote host closed the connection]
ShadowJK has joined #ffmpeg
Unit640 has quit [Quit: Leaving]
five6184803391 has quit [Remote host closed the connection]
five6184803391 has joined #ffmpeg
SuicideShow has quit [Ping timeout: 246 seconds]
SuicideShow has joined #ffmpeg
Hackerpcs has joined #ffmpeg
Hackerpcs has quit [Max SendQ exceeded]
DarkSkyes has joined #ffmpeg
Hackerpcs has joined #ffmpeg
Hackerpcs has quit [Max SendQ exceeded]
Hackerpcs has joined #ffmpeg
kasper93 has quit [Remote host closed the connection]
kasper93 has joined #ffmpeg
iive has quit [Quit: They came for me...]
DarkSkyes has quit [Read error: Connection reset by peer]
ahc has joined #ffmpeg
DarkSkyes has joined #ffmpeg
moviuro has quit [Ping timeout: 246 seconds]