<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hello everyone,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am attempting to stream frames that are generated live via
OpenGL and compressed into MPEG2 Video frames. I have created a class which
inherits from FramedSource and that class overrides doGetNextFrame(). I have
also created a function called deliverFrame() that is called by
doGetNextFrame() when a new frame is available. deliverFrame() copies the
compressed image into fTo and then calls FramedSource::afterGetting() (I’m
a bit confused as to how I should use the fDurationInMicroseconds and
fPresentationTime because the images do not occur at regular time intervals).
My problem is that when I try to view my stream using VLC I get only one or two
frames across before VLC stops updating. The two frames I get are not one right
after another but rather one and then a few seconds later another one, after
that VLC is stuck showing that frame. VLC does not freeze but it doesn’t
keep up with the streaming frames. If I press stop and play (or rewind or
fastforward) on VLC then I get one or two frames and the same thing happens
again. I have looked at the log for VLC and for the most part it says ‘Buffering
0%’. Sometimes it will say:<o:p></o:p></p>
<p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:darkblue'><o:p> </o:p></span></i></p>
<p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:darkblue'>libmpeg2</span></i><i><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:red'> error: </span></i><span style='font-size:
12.0pt;font-family:"Times New Roman","serif";color:black'>DpbUnlinkPicture
called on an invalid picture</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:darkblue'>main</span></i><i><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:green'> warning: </span></i><span
style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>backward_pts
!= current_pts (-12913336635)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:black'>but that message is rare. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:black'>I am using the ‘testMPEG4VideoStreamer.cpp’ file for
initializing all my stuff, the only difference is that I am using my derived
FramedSource in the play() function. Any thoughts as to why this might be
happening? Thanks in advance for your help.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:black'>Dillon</span><o:p></o:p></p>
</div>
</body>
</html>