<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><div>>From: tr3w@freemail.hu<br>>Date: Sat, 12 Sep 2015 13:31:27 +0200<br>>To: libav-user@ffmpeg.org<br>>Subject: [Libav-user] Fwd: Frame number mismatch<br>><br><div dir="ltr"><div class="ecxgmail_quote"><div dir="ltr"><span style="font-size: 12pt;">></span>Hi all!<div>></div><div><span style="font-size: 12pt;">></span>I'm unfortunate enough that I have a steady stream of midly corrupted/badly encoded mp4/h264 videos what I need to process. I <span style="font-size: 12pt;">></span><span style="font-size: 12pt;">wrote a simple program based on some tutorial on the internet which reads all the video frames using av_read_frame and </span><span style="font-size: 12pt;">></span><span style="font-size: 12pt;">avcodec_decode_video2, I even flush the internal buffer of the decoder with some empty packets in the end. (No errors in the </span><span style="font-size: 12pt;">></span><span style="font-size: 12pt;">process, no corrupted frames...)</span></div><div>></div><div><span style="font-size: 12pt;">></span>It looks good and well until I run the ffmpeg standalone tool (compiled from the same source three) with jpg output, which <span style="font-size: 12pt;">></span><span style="font-size: 12pt;">produces 600 more frames than my frame reader (from a 24k frame long video). (All frames look valid, but maybe duplicated...)</span></div><div>></div><div><span style="font-size: 12pt;">></span>What ffmpeg does differently? Did I miss something? (Like a flag in AVFrame which tells me to duplicate, or some options in the <span style="font-size: 12pt;">></span><span style="font-size: 12pt;">decoder?)</span></div><div>></div><div><span style="font-size: 12pt;">></span>Thanks for your help!</div><div>></div><div><span style="font-size: 12pt;">></span>Best,</div><div><span style="font-size: 12pt;">></span>Tr3wory</div></div>
</div>What your frame reader does, does it just write frames as jpegs?</div><div dir="ltr">and what are the arguments to ffmpeg!</div><div dir="ltr"><br></div><div dir="ltr">please give more explanation for the problem</div>
<br>_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user</div> </div></body>
</html>