[prev in list] [next in list] [prev in thread] [next in thread] 

List:       theora
Subject:    Re: [theora] Changing frame rate in an ogg
From:       Ralph Giles <giles () thaumas ! net>
Date:       2011-08-25 21:51:03
Message-ID: CAEW_Rks7FCa1=36zHiTksKhw7Sfoxx-_bs+RRGA1pZai-9+FZg () mail ! gmail ! com
[Download RAW message or body]

On 25 August 2011 23:57, Stefano Luceri <stefano.luceri@agilex.it> wrote:

> Reading theora documentation it seems that frame rate (FRN and FRD) only
> affects granulepos/timestamp but changing it (manually) in the ogg files
> causes bad decoded frames while playing (I've also tried other ogg videos).

Two things:

Theora is strictly fixed frame rate. If the incoming video data is not
at a fixed frame rate, then your encoder will need to check against
the playback clock and duplicate or drop frames to make it so. Since
RTP has per-packet timestamps, this can be relaxed to simplify the
sender implementation, but once saved to an Ogg file, all players will
treat the stream as fixed frame rate. This is likely the reason your
file doesn't behave as you expect.

If you just want to adjust the frame rate of an already saved file,
you could try the little 'rogg_theora' utility I wrote.

  http://downloads.xiph.org/releases/rogg/rogg-0.4.tar.gz

Be aware that it doesn't support Ogg chains or files over 2 GB on 32
bit systems.

 -r
_______________________________________________
theora mailing list
theora@xiph.org
http://lists.xiph.org/mailman/listinfo/theora

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic