<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal style='text-autospace:none'>>> What’s going wrong?<span style='font-size:9.5pt;font-family:Consolas'> AVStream::time_base.den = 12800; </span>seems to be wrong data. Other than fixing some compilation errors, I did not modify anything else in examples/demuxing.c.<o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>- I downloaded the older version (ffmpeg-20121003-git-df82454-win32-*) from </span><a href="http://ffmpeg.zeranoe.com/builds/">http://ffmpeg.zeranoe.com/builds/</a>. Now AVStream::time_base.den = 25 – perfect!!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>However, I had to comment out the following lines in write_video_frame (muxing.c) to get rid of pts (0) < dts (1) error:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:windowtext'>            </span><span style='font-size:9.5pt;font-family:Consolas;color:green'>if (c->coded_frame->pts != AV_NOPTS_VALUE)</span><span style='font-size:9.5pt;font-family:Consolas;color:windowtext'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:windowtext'>            </span><span style='font-size:9.5pt;font-family:Consolas;color:green'>    pkt.pts = av_rescale_q(c->coded_frame->pts,</span><span style='font-size:9.5pt;font-family:Consolas;color:windowtext'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:windowtext'>            </span><span style='font-size:9.5pt;font-family:Consolas;color:green'>                           c->time_base, st->time_base);</span><span style='font-size:9.5pt;font-family:Consolas;color:windowtext'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='color:windowtext'>In above c->coded_frame->pts was always 0 causing the problem.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='color:windowtext'>Also, the file I was referring to was example/muxing.c (not demuxing.c). Sorry for the error.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Chandranath<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p></div></body></html>