Hi, I am using theora codec to stream video. Sometimes I am getting (due network actions- packet loss / delay) a distortion in the video image degrading its quality and I think it is something related to the video slices / chunks (dropped or disordered) of the entire frame. Are there plans for slicing and loss detection/resilience built-in theora codec? Will theora codec have a similar approach like H.264 to deal with the loss of some frame fragments? Thank you Paulo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20081002/50e3c6e0/attachment.htm
Timothy B. Terriberry
2008-Oct-02 22:03 UTC
[theora-dev] [theora] loss detection/resilience
Paulo Vicentini wrote:> Are there plans for slicing and loss detection/resilience built-in > theora codec?As far as I know, no, there are not. However, contributions are always welcome from someone willing to actually work on the problem.> Will theora codec have a similar approach like H.264 to deal with the > loss of some frame fragments?There isn't a whole lot that can be done within the current bitstream. Right now today you can lower the keyframe interval, but that hurts compression quite a bit. Theora does not use macroblock refresh, because its prediction loop has no drift (in the absence of loss). This is something that might reasonably be added to an encoder in the current bitstream, but some effort would need to be made to ensure there are no patent concerns around it. Slices and other mechanisms would require extensive revisions to the current bitstream, transport mechanism, software API, etc. These all make significant use of the fact that Theora outputs one packet per frame. Technically the Ogg layer provides error recovery at the page level, which is completely independent of packet boundaries, but all of the software is written treating packets as the fundamental unit, i.e., you get a whole packet, or nothing at all. It's not untenable if one can show that there's a real driving need for it, but it's a lot of work.