<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 style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi all,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm really a bit lost and I was hoping that somebody could help me out by explaining a couple of things. With the code attached I can generate a .mp4 file and it shows the correct image if I play it in VLC, but the length of the movie is not correct. I have
a camera stream that I want to capture (no sound). The first captured image is very important for my algorithm. I want to know</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ol>
<li>Because my first 13 frame were not written to the .mp4 file, I ended up sending the first frame to the encoder (addBufferFrames) until EAGAIN is not returned anymore. Is this good practice or not? and why does the encoder need those frames, I'm using intra
frame compression so each frame should be encoded without any other frame, right? </li><li>Since the frame rate is 24 fps and I save 120 frames (see log.txt) I should end up with 5 secs of movie but instead it's only 4 secs if I play it in VLC<br>
<br>
</li></ol>
<div>I would really appreciate it if someone could help me with this. <br>
</div>
</div>
</body>
</html>