I have another odd question... Is there a way to change the frame rate of an ogg stream after having already encoded it? My problem is that I am capturing video being generated in real time. The only way to know what the frame rate of the generated video is to let it play and see. However, I''m capturing it so I''ve already created a theora stream and storing it in an ogg file. I''m hoping that''s okay ''cause I can just assume some arbitrary frame rate and change it later. The frames haven''t changed so surely I can just change some bytes somewhere and a new frame rate will be assigned to the theora stream... right? Thank you... _________________________________________________________________ Introducing Windows? phone. http://go.microsoft.com/?linkid=9708122 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20100214/20f2ab6b/attachment.htm
Hello, according to chapter 6.2 of http://www.theora.org/doc/Theora.pdf you want to change the framerate nominator (FRN, unsigned integer, 32bit) and denominator (FRD, unsigned integer, 32bit) of the identification header. Have a look at figure 6.2 to see what bytes to modify. Maik On 14.02.2010 10:19, Id Kong wrote:> I have another odd question... > Is there a way to change the frame rate of an ogg stream after having > already encoded it? > My problem is that I am capturing video being generated in real time. > The only way to know what the frame rate of the generated video is to > let it play and see. However, I''m capturing it so I''ve already created a > theora stream and storing it in an ogg file. I''m hoping that''s okay > ''cause I can just assume some arbitrary frame rate and change it later. > The frames haven''t changed so surely I can just change some bytes > somewhere and a new frame rate will be assigned to the theora stream... > right? > Thank you... > > > ------------------------------------------------------------------------ > All your Hotmail contacts on your phone. Try it now. > <http://go.microsoft.com/?linkid=9708118> > > > > _______________________________________________ > theora-dev mailing list > theora-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/theora-dev
Timothy B. Terriberry
2010-Feb-14 14:09 UTC
[theora-dev] Changing the framerate after the fact...
>> Is there a way to change the frame rate of an ogg stream after having >> already encoded it?There''s a small set of utilities written by Ralph Giles at http://svn.xiph.org/experimental/giles/rogg/ You have to compile them yourself, but rogg_theora should be able to do what you want.