<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p style="margin-top: 0px; margin-bottom: 0px;">I am trying to figure out some problems I am having using the API for ffmpeg. <br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Here is a post to my stack overflow post that contains the code base and some diagnostic info. <br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><a href="http://stackoverflow.com/questions/28727772/ffmpeg-c-api-h-264-encoding-mpeg2-ts-streaming-problems" id="LPlnk612920">http://stackoverflow.com/questions/28727772/ffmpeg-c-api-h-264-encoding-mpeg2-ts-streaming-problems</a></p>
<div id="LPBorder_GT_14253032002670.5698372293263674" style="margin-top: 20px; margin-bottom: 20px; overflow: auto; width: 100%;">
<table id="LPContainer_14253032002660.08981867833063006" style="border-top-color: rgb(204, 204, 204); border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); width: 80%; position: relative; overflow: auto; background-color: rgb(255, 255, 255);">
<tbody>
<tr valign="top">
<td style="width: 140px; position: relative; display: table-cell;">
<div id="LPImageContainer_14253032002660.5012137924786657" style="margin-top: 12px; height: auto; width: 140px; position: relative; display: table; background-color: rgb(255, 255, 255);">
<a id="LPImageAnchor_14253032002660.7588666493538767" href="http://stackoverflow.com/questions/28727772/ffmpeg-c-api-h-264-encoding-mpeg2-ts-streaming-problems" target="_blank" style="display: table-cell; text-align: center;"><img aria-label="Preview image with link selected. Double-tap to open the link." width="140" height="140" style="display: inline-block; margin-left: auto; margin-right: auto; max-width: 140px; max-height: 140px; height: 140px; width: 140px; border-width: 0px;" src="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon@2.png?v=ea71a5211a91"></a></div>
</td>
<td>
<div id="LPTitle_14253032002670.48026684555225074" style="top: 0px; margin-top: 8px; font-size: 21px; font-family: wf_segoe-ui_semilight, 'Segoe UI Semilight', 'Segoe WP Semilight', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; color: rgb(51, 51, 51); margin-left: 14px; margin-right: 14px;">
c++11 - FFMPEG C api h.264 encoding / MPEG2 ts streaming problems - Stack Overflow</div>
<div id="LPDescription_14253032002670.20872305682860315" style="margin-top: 8px; font-size: 13px; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; color: rgb(102, 102, 102); margin-left: 14px; margin-right: 14px;">
Class prototype is as follows: #ifndef _FULL_MOTION_VIDEO_STREAM_H_ #define _FULL_MOTION_VIDEO_STREAM_H_ #include <memory> #include <string> #ifndef INT64_C # define INT64_C(c) (c ##...</div>
<div id="LPUrlContainer_14253032002670.8616550411097705" style="margin: 8px 14px 10px; height: 18px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;">
<a id="LPUrlAnchor_14253032002670.1683298829011619" href="http://stackoverflow.com/questions/28727772/ffmpeg-c-api-h-264-encoding-mpeg2-ts-streaming-problems" target="_blank" style="font-size: 11px; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; text-decoration: none;">Read
 more...</a></div>
</td>
</tr>
</tbody>
</table>
</div>
​The main two problems I am currently seeing, are large memory consumption(6gb if I try to increase video time to around a minute), and framing issues. I am writing many frames and only coming up with .04 seconds of video. I should have around 6 seconds of
 video being generated. Any help would be greatly appreciated!<br>
<p></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
​Ceir M Coral<br>
</p>
<p style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
Systems Engineer<br>
</p>
<br>
</div>
</div>
</div>
</body>
</html>