<!DOCTYPE html><html><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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></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]-->
<style type="text/css">"body { font-family:'DejaVu Sans Mono'; font-size:12px"}</style>
</head>
<body lang="EN-US" link="blue" vlink="purple"><div>When you mention ffmpeg, do you mean the application, or the underlying<br>library (libav) ?<br>I had the same problematic few years ago, and I found it can be handled<br>nicely with a reduced amount of code around avcodec_decode_video.<br>I suggest you to have a look on AVCodecParserContext for this matter.<br>If you're still stuck, I can even provide you a code sample.</div><div><br></div><div>Regards,<br>Guillaume.</div><div><br></div><div>Le Wed, 11 Jan 2012 23:53:40 +0100, Menne, Neil <nmenne@dcscorp.com> a écrit:<br></div><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div class="WordSection1"><p class="MsoNormal">I’m working on my Live555/FFmpeg video player, and I ran into an interesting problem that has kept me stumped for several days. I am taking the buffer that is delivered to my MediaSink (like the example in testRTSPClient), and I am passing the buffer and the size to FFmpeg to decode. It says that there is “no frame!” I’m stumped as to why that is the case when I’m taking the buffer after the “afterGettingFrame” function is called. I was wondering if there was something else that must be done to that buffer for it to be a true frame that can be decoded.</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">My first guess is that the decoder needs more information which brings me to my next question: the SDP description that I’m pulling down doesn’t contain the width/height, so I’m guessing I need to pull that out of the sprop_parameter_sets; is this the case?</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">My second guess is that there is no frame separator; I noticed that in one particular file: H264VideoFileSink they prepend a 0x00000001 along with the sprop_parameters. Is this a potential problem?</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Video is not my expertise, so I’m spending most days reading anything/everything on these problems, but this one’s got me stuck.</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">-Neil</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">P.S. My video is an H.264 video stream</p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p></div></blockquote><br><br><br><div id="M2Signature"><div>-- </div><div><div><table>
<tbody><tr>
<td>
<img src="http://images.bertin.fr/Barettes.png" style="margin-left:-3px;" moz-do-not-send="true">
</td>
<td style="font-family:arial;vertical-align:middle;padding-left:15px;padding-right:15px;line-height:20px;">
<label id="prenom" style="font-weight:bold;font-size:14px;color:#263F6A;">
Guillaume
</label>
<label id="nom" style="font-weight:bold;font-size:14px;color:#263F6A;">
FERRY
</label>
<br>
<label id="fonction" style="font-size:13px;color:#263F6A;">
Ingénieur
</label>
<br>
<label id="Departement" style="font-size:12px;color:#8996A0;">
Traitement de l'Information et du Contenu
</label>
<br>
<label style="font-size:12px;color:#8996A0;">
Tel :
</label>
<label id="tel" style="font-size:12px;color:#8996A0;">
01 39 30 62 09
</label>
<br>
<label style="font-size:12px;color:#8996A0;">
Fax :
</label>
<label id="fax" style="font-size:12px;color:#8996A0;">
01 39 30 62 45
</label>
<br>
<label id="mail" style="font-size:12px;">
ferry@bertin.fr
</label>
<br>
<label id="lien1" style="font-size:12px;">
<a href="http://www.bertin.fr">http://www.bertin.fr</a>
</label>
<br>
</td>
<td>
<img src="http://images.bertin.fr/Bertin.png" moz-do-not-send="true">
</td>
</tr>
</tbody></table>
<a href="http://www.opera.com/mail/"><br><br></a></div></div></div></body></html>