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
ttys000 has quit [Quit: Textual IRC Client: www.textualapp.com]
ttys000 has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five618480331 has joined #ffmpeg
a0z has joined #ffmpeg
Juest has quit [Ping timeout: 260 seconds]
Juest has joined #ffmpeg
a0z has quit [Quit: Leaving]
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
lemourin has quit [Quit: The Lounge - https://thelounge.chat]
lemourin has joined #ffmpeg
minimal has quit [Quit: Leaving]
deostroll has joined #ffmpeg
Hackerpcs has quit [Quit: Hackerpcs]
Hackerpcs has joined #ffmpeg
Hackerpcs has quit [Max SendQ exceeded]
evilscreww has joined #ffmpeg
trillion_exabyte has quit [Read error: Connection reset by peer]
trillion_exabyte has joined #ffmpeg
Martchus has quit [Ping timeout: 255 seconds]
noobaroo has joined #ffmpeg
travisghansen has quit [Quit: The Lounge - https://thelounge.github.io]
travisghansen has joined #ffmpeg
evilscreww has quit [Quit: Leaving]
Creatore has joined #ffmpeg
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
rvalue has joined #ffmpeg
zmt00 has joined #ffmpeg
deostroll has quit [Quit: Connection closed for inactivity]
MisterMinister has quit [Remote host closed the connection]
kts has joined #ffmpeg
intrac2 has joined #ffmpeg
intrac has quit [Ping timeout: 255 seconds]
vlm has joined #ffmpeg
Vonter has quit [Ping timeout: 264 seconds]
kts has quit [Ping timeout: 268 seconds]
rv1sr has joined #ffmpeg
peterLustig67 has joined #ffmpeg
hightower3 has quit [Remote host closed the connection]
hightower3 has joined #ffmpeg
kts has joined #ffmpeg
lusciouslover has quit [Quit: \]
lusciouslover has joined #ffmpeg
Vonter has joined #ffmpeg
xx has joined #ffmpeg
peterLustig67 has quit [Ping timeout: 250 seconds]
peterLustig67 has joined #ffmpeg
kts has quit [Ping timeout: 272 seconds]
peterLustig67 has quit [Remote host closed the connection]
Creatore has quit [Ping timeout: 260 seconds]
peterLustig67 has joined #ffmpeg
Blacker47 has joined #ffmpeg
nrg has quit [Quit: ZNC - https://znc.in]
nrg has joined #ffmpeg
Tinos has joined #ffmpeg
peterLustig67 has quit [Remote host closed the connection]
peterLustig67 has joined #ffmpeg
kts has joined #ffmpeg
Creatore has joined #ffmpeg
lavaball has joined #ffmpeg
cmc has quit [Ping timeout: 260 seconds]
Creatore has quit [Quit: Creatore]
peterLustig67 has quit [Ping timeout: 250 seconds]
kts has quit [Ping timeout: 260 seconds]
trillion_exabyte has quit [Ping timeout: 240 seconds]
trillion_exabyte has joined #ffmpeg
kts has joined #ffmpeg
peterLustig67 has joined #ffmpeg
MetaNova has quit [Ping timeout: 260 seconds]
markizano has quit [Ping timeout: 255 seconds]
MetaNova has joined #ffmpeg
nact has quit [Ping timeout: 268 seconds]
kts has quit [Ping timeout: 260 seconds]
Epakai has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
Epakai has joined #ffmpeg
lexano has joined #ffmpeg
nact has joined #ffmpeg
e^pi-1 has quit [Quit: WeeChat 4.3.0]
peterLustig67 has quit [Ping timeout: 250 seconds]
kts has joined #ffmpeg
peterLustig67 has joined #ffmpeg
kts has quit [Ping timeout: 256 seconds]
Livio has joined #ffmpeg
peterLustig67 has quit [Ping timeout: 250 seconds]
peterLustig67 has joined #ffmpeg
ttys000 has quit [Quit: Textual IRC Client: www.textualapp.com]
EmleyMoor has quit [Ping timeout: 256 seconds]
Livio has quit [Quit: leaving]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg
Livio has joined #ffmpeg
ttys000 has joined #ffmpeg
minimal has joined #ffmpeg
peterLustig67 has quit [Ping timeout: 250 seconds]
peterLustig67 has joined #ffmpeg
jagannatharjun has joined #ffmpeg
<acidtonic> I have been adjusting various things with my rtsp missed packets issue, I changed rtbufsize but didn't know about buffer_size that got sent to the demuxer, now it seems much better.
<acidtonic> I am curious if there is a way to be notified in code when ffmpeg would print those "missed x packets" messages on the console, is there a callback or something so I can know the machine isn't keeping up?
<acidtonic> I'd like to try keeping any corrupt portions of an image from making it past the decoding and into my software. I'd rather drop frames with corruption than show them
dionysis has quit [Quit: WeeChat 3.8]
billchenchina has quit [Remote host closed the connection]
billchenchina has joined #ffmpeg
kron has quit [Quit: kron]
peterLustig67 has quit [Ping timeout: 250 seconds]
rsx has joined #ffmpeg
<acidtonic> I was able to track the first set of issues down to udp receive buffer size problems, fixed that, but when testing with tc implementing drops, I can't detect that in my code and the bad frames get thru. Any ideas?
scat117 has joined #ffmpeg
markizano has joined #ffmpeg
markizano has quit [Ping timeout: 256 seconds]
Tano_ has quit [Quit: WeeChat 4.2.1]
intrac2 has quit [Quit: Konversation terminated!]
intrac has joined #ffmpeg
markizano has joined #ffmpeg
waeking has quit [Quit: The Lounge - https://thelounge.chat]
waeking has joined #ffmpeg
waeking has quit [Client Quit]
kron has joined #ffmpeg
markizano has quit [Remote host closed the connection]
markizano has joined #ffmpeg
rsx has quit [Quit: rsx]
waeking has joined #ffmpeg
<ePirat> acidtonic, isnt AV_FRAME_FLAG_CORRUPT set for these?
<acidtonic> I am unfamiliar, is that on the av_frame directly?
<ePirat> AVFrame's flags field
<JEEB> also AVPackets so you don't send them to a decoder
<JEEB> mpeg-ts and I don't recall which other container are able to flag those
<acidtonic> I'm coming in rtsp -> h264 with nvidia accelerated NV12 -> swcale
<acidtonic> so both muxer and decoder can set this?
<JEEB> AV_PKT_FLAG_CORRUPT is the packet one
<JEEB> I see some RTP readers set this (like VP8)
<acidtonic> so av_read_frame -> the before av_send_packet() I should check packet AV_PKT_FLAG_CORRUPT
<acidtonic> so avcodec_receive_frame then check frame AV_FRAME_FLAG_CORRUPT before av_hwframe_transfer_data()
<JEEB> (you can see with `git grep "CORRUPT" -- libavformat/` in the FFmpeg tree to see which modules utilize that flag when reading input)
<JEEB> since hwaccels override the slice decoding, not sure how much of the decoder corruption checking will work there
markizano has quit [Remote host closed the connection]
<JEEB> but sure, you can check if you're getting it set from received AVFrames
markizano has joined #ffmpeg
<JEEB> I'm really happy that the MPEG-TS reader flags borked packets so they can be skipped from not being fed to decoders (or if you set the avformat flag you will never get them output from the demuxer)
<JEEB> because I have "nice" experience in decoders breaking with broken packets when they try too hard
<acidtonic> doesn't seem to have any effect
<acidtonic> packet->flags & AV_PKT_FLAG_CORRUPT then after receive frame frame->flags & AV_FRAME_FLAG_CORRUPT
<acidtonic> neither coming back positive, yet the h264 side is getting corrupting from dropped frames
<JEEB> well yea, as I noted some RTP readers are using that flag. didn't see H.264 there.
<JEEB> but if the packet is dropped on some level, then it never appears and it wouldn't be considered corrupt (since only packets that are partial or don't pass a possible checksum check would be considered corrupt by a reader)
<JEEB> then on the decoder level, hwaccels might not be able to flag that
<JEEB> try with swdec
<acidtonic> I am simply trying to not draw or pass on corrupt frames. Otherwise I am okay with dropping or slowing down until valid frames are read again
Kobaz has quit [Excess Flood]
Kobaz has joined #ffmpeg
<BtbN> I don't think that message means corrupted frame
<BtbN> it just means the rtp format gave up waiting for the reorder delay
<acidtonic> well, true but when that happens I get a nasty tear half the screen or more
<acidtonic> thats what I am trying to stop, the non accelerated code using opencv to read (ffmpeg backend) doesn't do this, yet it's slow with a noticable lag of 2-4 seconds
<acidtonic> this code shows instant nice up to the images, but the occasional corrupt or torn image gets sent beyond into my ai processing and ruins things.
<BtbN> I wouldn't even know how that'd possibly happen with h264
<BtbN> like, the decoder does not decode half-frames or something
<BtbN> Are you sure you aren't re-using broken frames or something, or ignoring a decoder failure?
<acidtonic> I have a code example I shared here recently and no one complained I was doing something wrong.... not doing too much with this basic test case (omitting everything downstream)
<acidtonic> That is before I added the corrupt checks, but it's the same code otherwise
<BtbN> It's pretty hard to in-depth verify 400 lines of code to be correct in every aspect
markizano has quit [Remote host closed the connection]
<acidtonic> course, I just meant I removed it from the larger scope with AI post procesing and such
<acidtonic> this on my PTZOptics rtsp h264 feeds tears rather bad
<BtbN> So this code has been mangled by some language model? Then it's impossible to tell what's wrong with the actual code.
<acidtonic> what? no
<acidtonic> the images beyond were being sent to a yolo image detection model
<BtbN> Ah, that way around.
<acidtonic> the actual torn frames make it there and the ai was literally putting boxes around corrupt pixel boxes
<acidtonic> but removed all that for this minimal reproducible example
<BtbN> Are you sure the camera isn't just actually sending garbage? It'd not unheard of sadly
<acidtonic> doesn't do this with vlc playing the same feed
markizano has joined #ffmpeg
<acidtonic> I was getting some strange splitting originally and was told it was due to NV12 bit layout not being uniform thus the SWSCALE handles that
<BtbN> I don't quite understand that statement
<acidtonic> cvtcolor was used at first, then someone here pointed out Y and UV planes of NV12 aren't consecutive in memory
<BtbN> But I still can't think of ANY reason why or how the decoder would produce tearing
<BtbN> like, that should be impossible
<BtbN> well, might be, but there is no guarantee
<acidtonic> also valgrind is happy and reports nothing wonky with memory during the tearing
<BtbN> Even normal yuv420p gives no such guarantee
<BtbN> the 3 planes could be independent malloc
markizano has quit [Remote host closed the connection]
makidoll has quit [Quit: Gateway shutdown]
makidoll has joined #ffmpeg
markizano has joined #ffmpeg
makidoll has left #ffmpeg [#ffmpeg]
makidoll has joined #ffmpeg
billchenchina has quit [Quit: Leaving]
eldowan has quit []
markizano has quit [Remote host closed the connection]
jagannatharjun has quit [Quit: Connection closed for inactivity]
ttys000 has quit [Quit: Textual IRC Client: www.textualapp.com]
markizano has joined #ffmpeg
markizano has quit [Remote host closed the connection]
relue has joined #ffmpeg
markizano has joined #ffmpeg
trillion_exabyte has quit [Ping timeout: 260 seconds]
trillion_exabyte has joined #ffmpeg
Muimi has joined #ffmpeg
AbleBacon has joined #ffmpeg
emanuele6 is now known as Guest759
emanuele6 has joined #ffmpeg
Guest759 has quit [Ping timeout: 256 seconds]
iive has joined #ffmpeg
Livio has quit [Ping timeout: 240 seconds]
Livio has joined #ffmpeg
jarthur has joined #ffmpeg
Some_Person has quit [Ping timeout: 256 seconds]
FlorianBad has quit [Quit: Konversation terminated!]
mven97 has quit [Quit: Goodbye.]
nact has quit [Read error: Connection reset by peer]
nact has joined #ffmpeg
five618480331 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
FlorianBad has joined #ffmpeg
FlorianBad has quit [Client Quit]
Some_Person has joined #ffmpeg
FlorianBad has joined #ffmpeg
mven97 has joined #ffmpeg
emanuele6 has quit [Ping timeout: 256 seconds]
Kei_N_ has quit [Read error: Connection reset by peer]
Kei_N has joined #ffmpeg
emanuele6 has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Haxxa has quit [Quit: Haxxa flies away.]
FlorianBad has quit [Quit: Konversation terminated!]
Haxxa has joined #ffmpeg
markizano has quit [Remote host closed the connection]
FlorianBad has joined #ffmpeg
namazso has quit [Remote host closed the connection]
markizano has joined #ffmpeg
namazso has joined #ffmpeg
rv1sr has quit []
FlorianBad has quit [Remote host closed the connection]
FlorianBad has joined #ffmpeg
ivanich has joined #ffmpeg
namazso has quit [Remote host closed the connection]
System_Error has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
namazso has joined #ffmpeg
nejni-marji has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
fling has quit [Remote host closed the connection]
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
fling has joined #ffmpeg
System_Error has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
kus has quit [Ping timeout: 252 seconds]
e^pi-1 has joined #ffmpeg
foul_owl has quit [Ping timeout: 260 seconds]
vlm has quit [Quit: Leaving]
foul_owl has joined #ffmpeg
raccct has joined #ffmpeg
raccct has quit [Quit: Client closed]
hightower4 has joined #ffmpeg
System_Error has quit [Remote host closed the connection]
hightower3 has quit [Ping timeout: 260 seconds]
System_Error has joined #ffmpeg
SuicideShow has quit [Ping timeout: 268 seconds]
markizano has quit [Remote host closed the connection]
SuicideShow has joined #ffmpeg
kus has joined #ffmpeg
markizano has joined #ffmpeg
markizano has quit [Remote host closed the connection]
markizano has joined #ffmpeg
xx has quit [Ping timeout: 260 seconds]
Livio has quit [Ping timeout: 272 seconds]
Juest has quit [Ping timeout: 252 seconds]
ivanich has quit [Remote host closed the connection]
darkapex has quit [Remote host closed the connection]
darkapex has joined #ffmpeg
five61848033 has quit [Remote host closed the connection]
five61848033 has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
nejni-marji has quit [Quit: Client closed]
Tinos has quit [Remote host closed the connection]