[FFmpeg-devel] [PATCH 1/3] avcodec/vp56: Require 1 undamaged frame for 5 damaged frames for concealment to be used

Michael Niedermayer michael at niedermayer.cc
Thu Mar 16 12:00:37 EET 2017


On Wed, Mar 15, 2017 at 08:44:25PM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Wed, Mar 15, 2017 at 6:12 PM, Michael Niedermayer <michael at niedermayer.cc
> > wrote:
> 
> > On Wed, Mar 15, 2017 at 07:18:30PM +0000, Kieran Kunhya wrote:
> > > >
> > > > > > I have tons of testcases for h264 that are 1KB and can make error
> > > > > > concealment run for ages.
> > > >
> > > > and how is this related to a fix for th vp* decoder ?
> > > >
> > >
> > > My point is you can spend a lifetime fixing obscure conditions that cause
> > > error concealment to take a long time.
> >
> > the vp56 EC code
> > just sets every block to the reference frames content
> 
> 
> I don't see how this helps the user experience.

Like i said previously if there is damage, its better with error
concealment than without. Thats true in general not specific to vp56.

also without EC we will need to change fate this way:

--- ./tests/ref/fate/vp5        2017-03-13 15:59:01.833910756 +0100
+++ tests/data/fate/vp5 2017-03-16 09:32:21.934865428 +0100
@@ -249,4 +249,3 @@
 0,        243,        243,        1,   233472, 0x6f530ac6
 0,        244,        244,        1,   233472, 0x94f7466c
 0,        245,        245,        1,   233472, 0xa8c1d365
-0,        246,        246,        1,   233472, 0xbf73f1b7

as the last frame in the sample is damaged, probably truncated
we cannot output a partly uninitialzed frame nor can we use it as
reference frame afterwards.
If there where frames afterwards they would use a wrong/different
reference frame or be discarded as well until the next keyframe.


> 
> I once again think you should consider removing the vp56 EC code until we
> have a better idea of requirements of and need for such a feature.

As the one having implemented it i see both requirement and need.
So theres no sense or way i could consider removing it on the basis
that these are missing or until they are found.

I can remove it becouse people want it removed.

also for this specific patch here there is possibly another solution
which ill test and if it works submit a patch

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170316/7f2f936a/attachment.sig>


More information about the ffmpeg-devel mailing list