I found this link. It seems to work for me:
http://archives.free.net.ph/message/20100227.181440.80075452.nl.html

On Mon, Aug 16, 2010 at 5:52 PM, Zixia Huang <[email protected]> wrote:
> I have also noticed the same issue. It seems that for 264 raw encoded stream 
> (without any container), ffmpeg can correctly understand fps and tbr, but 
> doubles the tbc (I assume it is the container frame rate, may not be 
> correct). That's why ffmpeg plays the 264 raw video twice the frame rate as 
> expected. I am also looking for a way to solve this issue.
>
> Zixia
>
>
> ---- Original message ----
>>Date: Mon, 16 Aug 2010 16:32:17 -0400
>>From: Ke Yu <[email protected]>
>>Subject: [libav-user] frame rate of encoded h.264 in mpegts doubled when 
>>being played back
>>To: "Libav* user questions and discussions" <[email protected]>
>>
>>I ran into an issue when encoding H.264 stream and mux it into mpegts:
>>
>>This is how I specified the frame rate which is supposed to be 15 fps:
>>AVCodecContext *c;
>>...
>>c->time_base.den = 15;
>>c->time_base.num = 1;
>>And my AVStream time base is:
>>AVStream st;
>>...
>>st->time_base.den = 90000;
>>st->time_base.num = 1;
>>
>>But when playing the stream back, my video analyzer reported 30 fps
>>which doubled my initial configuration. Is there anything else I
>>should pay attention to or is it a bug in the libavformat's mpeg-ts
>>muxer?
>>
>>Thanks!
>>_______________________________________________
>>libav-user mailing list
>>[email protected]
>>https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to