<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18999">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi Ernie,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I was thinking about similar issues some time ago.
I'd been writing some code to playback theora clips.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The way I see it is that a player has to assume the
audio track is always a continuous audio stream. The video track, on the
other hand, doesn't have to be. The reason is that in order to playback the
clip you need to have synchronisation between the audio and video. The audio
stream provides that synchronisation (the player uses the audio clock to
determine when video frames should be displayed). So in other words I think you
need to encode the audio as a continuous stream (i.e. just encode silence
between the sections of audio).</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>That's the way I figured it out in my mind, but I
wonder if there is a defnitive explanation somewhere of how theora encoders and
decoders should handle discontinuity in the timeline.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Stuart</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=fastawdtsi@gmail.com href="mailto:fastawdtsi@gmail.com">Ernie
Lyon</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=theora@xiph.org
href="mailto:theora@xiph.org">theora@xiph.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, January 16, 2011 2:50
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [theora] Encoding vorbis with
theora</DIV>
<DIV><BR></DIV>Hey everyone;
<DIV><BR></DIV>
<DIV>I'm able to encode and mix audio data (in wav format) into theora with
vorbis - easy enough. However, my issues comes when I need that audio data to
play at certain locations in the video time line.</DIV>
<DIV><BR></DIV>
<DIV>I'm encoding the video in a frame by frame basis and am also providing
the frame rate by which the encoded frames are to be played. So, to me, it
sounds like it shouldn't be very difficult to tell vorbis/theora when to play
various audio cuts during play - which is why I've been pulling my hair out
trying to dig through docs and forums in search of how to do this.</DIV>
<DIV><BR></DIV>
<DIV>Any help would be fantastic! </DIV>
<DIV><BR></DIV>
<DIV>-- <BR>-Ernie<BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>theora mailing
list<BR>theora@xiph.org<BR>http://lists.xiph.org/mailman/listinfo/theora<BR></BLOCKQUOTE></BODY></HTML>