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

List:       mjpeg-developer
Subject:    Re: [Mjpeg-developer] audio/video chunk sequence in avi file
From:       "Gerry Fan" <gerry.fan () gmail ! com>
Date:       2008-05-09 2:42:48
Message-ID: 604465310805081942y1c5548b9s66edc69f43bbb6c2 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thank you very much!

On 5/8/08, Burkhard Plaum <plaum@ipf.uni-stuttgart.de> wrote:
>
> Hi,
>
> Gerry Fan schrieb:
> > When I look at the mjpg avi file, audio and video are interleaved in
> > movi. What is the rule for the audio and video chunk sequence?  is it
> > like this:
> >  audio_chunk  for one period ( say x seconds )
> >  video_chunk1
> >  video_chunk2
> >  ....
> >  all video_chunks for the play time equavlent to the previous
> > audio_chunk ( x second )
> >
> >  audio_chunk2
> >  video_chunks
> > .... ( all video_chunks for play time equavelent to audio_chunk2)
> >
> >
> > in other words, video chunks will not be encoded to place in avi
> > file where it is ahead of its corresponding audio chunk. Is this correct?
>
> There is no such rule. Audio chunks vary from one video frame duration up
> to
> 1 second or so. I even saw an AVI file (DivX), which had all video chunks
> followed by all audio chunks. When I encode AVIs or Quicktime, I make
> the audio chunks about 0.5 seconds long.
>
> Shorter audio chunks make seeking more efficient, longer audio chunks
> decrease
> the overhead. Software decoders usually never have problems, hardware
> decoders
> (like DivX players) might screw up, if the required buffer size becomes to
> large.
>
> Burkhard
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Mjpeg-developer mailing list
> Mjpeg-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mjpeg-developer
>

[Attachment #5 (text/html)]

Thank you very much! <br><br>
<div><span class="gmail_quote">On 5/8/08, <b class="gmail_sendername">Burkhard \
Plaum</b> &lt;<a href="mailto:plaum@ipf.uni-stuttgart.de">plaum@ipf.uni-stuttgart.de</a>&gt; \
wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px \
0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Gerry Fan schrieb:<br>&gt; \
When I look at the mjpg avi file, audio and video are interleaved in<br> &gt; movi. \
What is the rule for the audio and video chunk sequence?&nbsp;&nbsp;is it<br>&gt; \
like this:<br>&gt;&nbsp;&nbsp;audio_chunk&nbsp;&nbsp;for one period ( say x seconds \
)<br>&gt;&nbsp;&nbsp;video_chunk1<br>&gt;&nbsp;&nbsp;video_chunk2<br>&gt;&nbsp;&nbsp;....<br>&gt;&nbsp;&nbsp;all \
video_chunks for the play time equavlent to the previous<br> &gt; audio_chunk ( x \
second )<br>&gt;<br>&gt;&nbsp;&nbsp;audio_chunk2<br>&gt;&nbsp;&nbsp;video_chunks<br>&gt; \
.... ( all video_chunks for play time equavelent to \
audio_chunk2)<br>&gt;<br>&gt;<br>&gt; in other words, video chunks will not be \
encoded to place in avi<br> &gt; file where it is ahead of its corresponding audio \
chunk. Is this correct?<br><br>There is no such rule. Audio chunks vary from one \
video frame duration up to<br>1 second or so. I even saw an AVI file (DivX), which \
had all video chunks<br> followed by all audio chunks. When I encode AVIs or \
Quicktime, I make<br>the audio chunks about 0.5 seconds long.<br><br>Shorter audio \
chunks make seeking more efficient, longer audio chunks decrease<br>the overhead. \
Software decoders usually never have problems, hardware decoders<br> (like DivX \
players) might screw up, if the required buffer size becomes to \
large.<br><br>Burkhard<br><br>-------------------------------------------------------------------------<br>This \
SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br> Don&#39;t miss this \
year&#39;s exciting event. There&#39;s still time to save $100.<br>Use priority code \
J8TL2D2.<br><a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.su \
n.com/javaone">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a><br>
 _______________________________________________<br>Mjpeg-developer mailing \
list<br><a href="mailto:Mjpeg-developer@lists.sourceforge.net">Mjpeg-developer@lists.sourceforge.net</a><br><a \
href="https://lists.sourceforge.net/lists/listinfo/mjpeg-developer">https://lists.sourceforge.net/lists/listinfo/mjpeg-developer</a><br>
 </blockquote></div><br>



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Mjpeg-developer mailing list
Mjpeg-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-developer


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

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