[MPlayer-dev-eng] [BUG] [PATCH] Ogg/Theora frametime broken on 0-length packets

David Kuehling dvdkhlng at gmx.de
Sat Apr 30 16:56:08 CEST 2011


>>>>> "Reimar" == Reimar Döffinger <Reimar.Doeffinger at gmx.de> writes:

> On Sat, Apr 30, 2011 at 02:34:20PM +0200, David Kuehling wrote:
>> I noticed that a/v sync drifts in theora files that contain 0-length
>> video demux packets (i.e. frames where the image doesn't change at
>> all), when played back with -demuxer ogg.  The libavformat demuxer
>> seems to work correctly.  However it uses so much memory (a leak),
>> that it won't work on the target platform (NanoNote: 32MB RAM, no
>> swap).

[..]

> There are multiple possible solutions, the most correct _probably_ to
> stop the Ogg demuxer from outputting 0-size packets.  Though this also
> might be an issue of the decoder behaving incorrectly.  Are you sure
> it is not related to that you end up using libtheora when using
> -demuxer ogg while using fftheora with -demuxer lavf?  But a sample
> file to test and verify multiple approaches would be most useful.

I just encoded an example file that exposes the problem very clearly.
Now even the libavformat demuxer shows that it cannot cope with the
file.  The only way to play it back is to use the patch I posted in the
first mail, and give -demuxer ogg:

  http://mosquito.dyndns.tv/david/nanonote/theora-0packets.ogv

(Looks like at firefox 3.6 plays it correctly :)

cheers,

David
-- 
GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110430/e5f7548a/attachment.asc>


More information about the MPlayer-dev-eng mailing list