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
Martchus_ has quit [Ping timeout: 248 seconds]
Martchus has joined #ffmpeg-devel
Martchus has quit [Ping timeout: 272 seconds]
lemourin has joined #ffmpeg-devel
IndecisiveTurtle has quit [Read error: Connection reset by peer]
Martchus has joined #ffmpeg-devel
arch1t3cht7 has joined #ffmpeg-devel
arch1t3cht has quit [Ping timeout: 252 seconds]
arch1t3cht7 is now known as arch1t3cht
thilo has quit [Ping timeout: 244 seconds]
lemourin has joined #ffmpeg-devel
lemourin has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
lemourin has quit [Client Quit]
thilo has joined #ffmpeg-devel
thilo has quit [Changing host]
thilo has joined #ffmpeg-devel
lemourin has joined #ffmpeg-devel
Everything has quit [Quit: leaving]
lemourin has quit [Quit: The Lounge - https://thelounge.chat]
lemourin has joined #ffmpeg-devel
lemourin has quit [Read error: Connection reset by peer]
lemourin has joined #ffmpeg-devel
mkver has quit [Ping timeout: 245 seconds]
^Neo has quit [Ping timeout: 255 seconds]
jamrial has quit []
nevcairiel has quit [Ping timeout: 260 seconds]
auri has quit [Ping timeout: 264 seconds]
\\Mr_C\\ has quit [Remote host closed the connection]
auri has joined #ffmpeg-devel
nevcairiel has joined #ffmpeg-devel
Rodn3y has quit [Ping timeout: 265 seconds]
nitroxis has quit [Ping timeout: 248 seconds]
Rodn3y has joined #ffmpeg-devel
Rodn3y has joined #ffmpeg-devel
Rodn3y has quit [Changing host]
nitroxis has joined #ffmpeg-devel
Martchus_ has joined #ffmpeg-devel
Martchus has quit [Ping timeout: 246 seconds]
drv has quit [Remote host closed the connection]
drv has joined #ffmpeg-devel
secondcreek has quit [Remote host closed the connection]
secondcreek has joined #ffmpeg-devel
deus0ww has quit [Ping timeout: 246 seconds]
kwizart has quit [Ping timeout: 255 seconds]
kwizart has joined #ffmpeg-devel
deus0ww has joined #ffmpeg-devel
<nevcairiel> whats up with fate ffmpeg-error-rate-fail? it seems to randomly fail
Sean_McG has quit [Ping timeout: 246 seconds]
Sean_McG has joined #ffmpeg-devel
<llyyr> nevcairiel: did you have the chance to test it? I tested it on my end and it doesn't regress anything for me
<llyyr> (the m2ts patch)
haihao has quit [Ping timeout: 252 seconds]
haihao has joined #ffmpeg-devel
<nevcairiel> like I said in the mail i'll try to get to it this week, but the pre-holiday time is always a bit of a scramble to some projects into this year
<nevcairiel> the problem i'm suspecting isnt one with well-formed samples, but with one that isnt, so that may need some tinkering
<llyyr> ah ok
<llyyr> I'll try to see if I have any weird samples
<nevcairiel> quickly summarized, the problem that I'm seeing (just from code so far) is that mpegts_resync will look for 0x47 and position the bitstream on that. So assume a sample is damaged and resync is triggered, now the bytestream points at 0x47. With your change, the next read will take off 4 bytes, deleting the 0x47, triggering another resync, and we're in never succeeding again hell.
<nevcairiel> but for that to happen of course the file needs to be damaged slightly
<llyyr> it'll only take 4 bytes off if a packet is 192 bytes, the entire file relies on packets being either 188 or 192 bytes, if we cant rely on that then things will explode much before it gets to my change I think
<nevcairiel> but thats irrelevant to the problem
<nevcairiel> because of how mpegts_resync works, it always tries to position the bytestream so that "packets" start at 0x47, and the "header" of the next packet essentially becomes the trailer of the current one
<nevcairiel> so if that happens once, for whatever reason, the assumption of 4 bytes extra infront is thrown off
<nevcairiel> in theory it should be reproducable by just changing one bit in such a file, i'll try to see later if that actually happens
<llyyr> that's the exact behavior that causes the first packet to be skipped fwiw, because there's no current_packet-1 to add current_packet's headers to
<llyyr> if you can make a sample that breaks it lmk so I can adjust the patch, I don't really know much about mpegts this patch started by mirroring mkvtoolnix logic
<nevcairiel> the patch is probably fine for perfectly well formed files
<nevcairiel> but as soon as it wants to resync once, it seems like it'll fall apart
<nevcairiel> (and worse then before)
<JEEB> the MPEG-TS patch was on my list of checking things, esp. since now IIRC it has a sample that drops first packet?
<nevcairiel> actually i was just re-thinking how the data flow works with and without the patch, and the way the resync is positioned it may just work, i'll go test my concern of a broken sample case regardless soon just to be sure
<llyyr> JEEB: yeah, the sample was always there but I didn't know how to actually reproduce the issue with just ffmpeg without using BestSource or something like that
<llyyr> thankfully the issue can be reproduced with just ffmpeg -c copy
<JEEB> :)
unlord has quit [Ping timeout: 255 seconds]
ngaullier has joined #ffmpeg-devel
cone-347 has joined #ffmpeg-devel
<cone-347> ffmpeg Frank Plowman master:9221cb0443ac: lavc/vvc: Use second definition of MinQtLog2SizeIntraC if relevant
<cone-347> ffmpeg Alexander Strasser master:a280e2e646a2: avcodec/cbs_h266: Fix typo
<cone-347> ffmpeg Frank Plowman master:7399d9f374db: lavc/vvc: Don't check motion estimation region for IBC
<cone-347> ffmpeg Frank Plowman master:699322519c9d: lavc/vvc: Store MIP information over entire CU area
<cone-347> ffmpeg Frank Plowman master:56419fd096c5: lavc/vvc: Fix overflow in MVD derivation
<cone-347> ffmpeg Frank Plowman master:499896ca2f36: lavc/vvc: Fix derivation of LmcsMaxBinIdx
MrZeus__ has joined #ffmpeg-devel
<thardin> I appear to be alive again. been sick for the last few days
jamrial has joined #ffmpeg-devel
cone-347 has quit [Quit: transmission timeout]
^Neo has joined #ffmpeg-devel
^Neo has quit [Changing host]
^Neo has joined #ffmpeg-devel
mkver has joined #ffmpeg-devel
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg-devel
rvalue has quit [Remote host closed the connection]
rvalue has joined #ffmpeg-devel
Xaldafax has joined #ffmpeg-devel
novaphoenix has quit [Quit: i quit]
novaphoenix has joined #ffmpeg-devel
IndecisiveTurtle has joined #ffmpeg-devel
witchymary has quit [Ping timeout: 276 seconds]
DEATH has joined #ffmpeg-devel
Traneptora has quit [Quit: Quit]
<DEATH> Bug report: avcodec_free_context() now frees extradata, which is probably intended, but that's not what the documentation says (extradata allocated/freed by user if decoding)
<elenril> >now
<elenril> it always did that
<elenril> it's a documentation bug
<elenril> avcodec_close() did not free extradata, but avcodec_free_context() does and always did
<DEATH> Right. I only noticed when my stuff started crashing after replacing avcodec_close() with avcodec_free_context()
Traneptora has joined #ffmpeg-devel
<DEATH> Anyway, thanks for confirming.
kasper93_ has joined #ffmpeg-devel
kasper93 has quit [Ping timeout: 265 seconds]
kasper93_ is now known as kasper93
Xaldafax has quit [Ping timeout: 246 seconds]
FaRiD has joined #ffmpeg-devel
FaRiD has left #ffmpeg-devel [#ffmpeg-devel]
<Marth64> "it's always DNS", they say
<Marth64> and indeed DNS strikes again
<Marth64> </ramble about some unrelated troubleshooting>
Raz- has quit [Quit: Leaving]
jamrial has quit []
IndecisiveTurtle has quit [Ping timeout: 260 seconds]
<Compn> dang korea
jamrial has joined #ffmpeg-devel
ccawley2011 has joined #ffmpeg-devel
\\Mr_C\\ has joined #ffmpeg-devel
ccawley2011 has quit [Ping timeout: 248 seconds]
BtbN has quit [Ping timeout: 246 seconds]
ccawley2011 has joined #ffmpeg-devel
BtbN has joined #ffmpeg-devel
ccawley2011 has quit [Read error: Connection reset by peer]
BtbN has quit [Remote host closed the connection]
BtbN has joined #ffmpeg-devel
IndecisiveTurtle has joined #ffmpeg-devel
IndecisiveTurtle has quit [Client Quit]
ngaullier has quit [Ping timeout: 260 seconds]
mkver has quit [Ping timeout: 244 seconds]
mkver has joined #ffmpeg-devel
iive has joined #ffmpeg-devel
ngaullier has joined #ffmpeg-devel
ngaullier has quit [Remote host closed the connection]
ngaullier has joined #ffmpeg-devel
zenmov has quit [Ping timeout: 260 seconds]
zenmov has joined #ffmpeg-devel
MrZeus__ has quit [Ping timeout: 260 seconds]
ngaullier has quit [Ping timeout: 260 seconds]
witchymary has joined #ffmpeg-devel
Everything has joined #ffmpeg-devel
lemourin has quit [Quit: The Lounge - https://thelounge.chat]
lemourin has joined #ffmpeg-devel
lemourin has quit [Client Quit]
lemourin has joined #ffmpeg-devel
zenmov has quit [Ping timeout: 260 seconds]
ngaullier has joined #ffmpeg-devel
<fflogger> [newticket] chuckwoodchuck: Ticket #11330 ([ffmpeg] -f pulse cuts last 2 secodns of audio) created https://trac.ffmpeg.org/ticket/11330
ngaullier has quit [Ping timeout: 260 seconds]
<Traneptora> if I'm writing an encoder, what constants are assumed by default? i.e. is it assumed that it only supports constant width/height? constant linesize? etc.
cone-288 has joined #ffmpeg-devel
<cone-288> ffmpeg Scott Theisen master:1259760825ac: avformat/mpegts*: reduce use of magic numbers
<cone-288> ffmpeg Scott Theisen master:5ba63f0ef1ea: avformat/mpegts: is_pes_stream() use switch case
rvalue has quit [Quit: ZNC - https://znc.in]
<pross> Traneptora: you need to check for these assumption in your encode_init() function
<Traneptora> pross: how do I check for that? i.e. constant linesize
rvalue has joined #ffmpeg-devel
lemourin has quit [Read error: Connection reset by peer]
lemourin has joined #ffmpeg-devel
realies has quit [Ping timeout: 260 seconds]