openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

Artifacts

Open Benc1900 opened this issue 4 years ago • 14 comments

encoder

After some time, encoder starts to produce images like the one i attached - with gray Artifacts. When that happens i can only restart the encoder to make them go away.

Why that happens and how can I prevent it from happening?

Thanks.

Benc1900 avatar Dec 13 '21 19:12 Benc1900

#3435

Bagwell80 avatar Dec 19 '21 01:12 Bagwell80

If it was working before, a git bisect can find the commit causing this.

joakim-tjernlund avatar Dec 21 '21 17:12 joakim-tjernlund

From day 1 (from first release) it does this. After few hours on random it starts to do that ... I guess that randomly after some time something is broken in the encoder data... Deleting the encoder and recreate it solves it. But what that happens?

Benc1900 avatar Dec 21 '21 18:12 Benc1900

Oh, I figured it was a recent regression. What release are you running ?

joakim-tjernlund avatar Dec 21 '21 18:12 joakim-tjernlund

2.1.1.2005 (binary) http://ciscobinary.openh264.org/openh264-2.1.1-win32.dll.bz2

Benc1900 avatar Dec 21 '21 18:12 Benc1900

Latest release is known to be a little broken.

joakim-tjernlund avatar Dec 21 '21 18:12 joakim-tjernlund

That latest 2.1.1 binary release is from May 22, 2020 ... here: http://ciscobinary.openh264.org/openh264-2.1.1-win32.dll.bz2 So it is broken for 1.5 years? Or it just shows 2.1.1 but it did get updated?

Benc1900 avatar Dec 21 '21 18:12 Benc1900

It is that old

joakim-tjernlund avatar Dec 21 '21 18:12 joakim-tjernlund

I asked this same question 7 years ago when i first noticed the issue and this is the answer i got: Packets in IDR lost, error concealment for now used the grey pixels for lost area in I frame. In the next release, we will do copy from previous frame for IDR error concealment.

So if you think this is really the issue, does the new code fix it? if yes when it will be compiled to binaries (I need it as binary for licensing issue)

Benc1900 avatar Dec 21 '21 18:12 Benc1900

I don't know, not an openh264 developer.

joakim-tjernlund avatar Dec 21 '21 18:12 joakim-tjernlund

@Benc1900 the next release is in progress now. about this issue, as issue #1658 mentioned, error concealment do copy from previous frame instead of grey pixels for lost area after version 1.3.

GuangweiWang avatar Dec 23 '21 02:12 GuangweiWang

@huili2 You just closed this issue but was it resolved in one of the released version? Or this issue still exists?..

bobj1212 avatar Dec 13 '22 02:12 bobj1212

@bobj1212 it was caused by data loss, which is not considered to be an issue. To prevent this from happening, data loss should not occur by any transmission protection. Once error happens, error concealment method could be modified to get different effect by SetOption(...). Details could be seen in API document.

huili2 avatar Dec 13 '22 03:12 huili2

@huili2 But my app uses the H264 encoder. I do not have any access to the decoder which probably does not use h264 anyway. And the error concealment method is applied to the decoder as far as I saw. So what should I do?

bobj1212 avatar Dec 13 '22 23:12 bobj1212