[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> <<a href="mailto:plaum@ipf.uni-stuttgart.de">plaum@ipf.uni-stuttgart.de</a>> \
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>> \
When I look at the mjpg avi file, audio and video are interleaved in<br> > movi. \
What is the rule for the audio and video chunk sequence? is it<br>> \
like this:<br>> audio_chunk for one period ( say x seconds \
)<br>> video_chunk1<br>> video_chunk2<br>> ....<br>> all \
video_chunks for the play time equavlent to the previous<br> > audio_chunk ( x \
second )<br>><br>> audio_chunk2<br>> video_chunks<br>> \
.... ( all video_chunks for play time equavelent to \
audio_chunk2)<br>><br>><br>> in other words, video chunks will not be \
encoded to place in avi<br> > 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't miss this \
year's exciting event. There'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