<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=756455109-13122007>Bruno,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=756455109-13122007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=756455109-13122007> It looks like you have listed the bytes captured
somewhere in the middle of a stream as the video payload bytes 00 00 01 41
indicate what Gary has listed. MPEG-2 transport requires the byte-stream format
for NAL units and hence the 00 00 01 preceding the NAL header. However, MPEG-2
transport also requires the use of access unit delimiter NAL unit to start
all pictures (nal type 9). </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=756455109-13122007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=756455109-13122007> There is no term called 'elementary stream
header' - an elementary stream is concatenation of access units in byte
stream format and each access unit must obey the rules listed in section
7.4.1.2.3. If your capture is at the beginning of the video sequence, then the
access unit MUST be an Idr (nal type 5) and preceded typically by an access
unit delimiter, SPS, any SEI and PPS.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=756455109-13122007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=756455109-13122007>Regards</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=756455109-13122007>Sam Narasimhan </SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Gary Sullivan
[mailto:garysull@windows.microsoft.com] <BR><B>Sent:</B> Wednesday, December 12,
2007 1:00 PM<BR><B>To:</B> Bruno Guedes; ohm@ient.rwth-aachen.de; Luthra
Ajay-MGI1164; x264-devel@videolan.org<BR><B>Cc:</B> Narasimhan
Mandayam-MGI1318<BR><B>Subject:</B> RE: Doubts about structure
H.264/AVC<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2>This question seems like mostly an MPEG-2 TS question
rather than an H.264/AVC question, and so it is likely to be outside of my
primary area of expertise.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2>It does seem possible that the 41 could be a NAL unit
header, containing a coded slice (nal_unit_type = 1) of a reference picture
(nal_ref_idc = 2). But that would not be what you would expect to find at
the start of a new bitstream, since it is not an IDR slice and it is not an SPS
or PPS or SEI or AUD or such thing that would be found at that
location.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2>Adding Sam for MPEG-2 TS expertise.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2>Best Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=637315120-12122007><FONT face=Arial
color=#0000ff size=2>Gary</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Bruno Guedes [mailto:brguedes@gmail.com]
<BR><B>Sent:</B> Wednesday, December 12, 2007 7:00 AM<BR><B>To:</B>
ohm@ient.rwth-aachen.de; aluthra@motorola.com; Gary Sullivan;
x264-devel@videolan.org<BR><B>Subject:</B> Doubts about structure
H.264/AVC<BR></FONT><BR></DIV>
<DIV></DIV>Hi,<BR>I'm a IST-student and I'm starting to work in IPTV area. I
use the VLC streamer and I want to transmit H.264/AVC over RTP/UDP in TS
(transport stream) mode!<BR>I analyze the bytes in reception with wireshark,
but I got something like this: <BR>"00 00 01 e0 17 93 80 c0 0a 31 29 0d 9a 6b
11 29 0d 9a 6b 00 00 01 41 9a 5d 2e b2 08 7f fc db 08..."<BR>As I could
understand the first nineteen bytes are PES header. I think (but I don't have
sure) that the byte 41 (that is ahead of the start code (00 00 01)) is the NAL
header! But I don't know where is the elementary stream header! <BR>If someone
can explain me what's wrong with my thought or where's the elementary stream
header, I appreciate.<BR><BR>best regards<BR><BR>-- <BR>Bruno Guedes
</BLOCKQUOTE></BODY></HTML>