[Libav-user] Helo in understanding PTS and DTS

2012-11-28 Thread Morduhaev, Igor (ig...@stats.com)
I had fps issues when transcoding from avi to mp4(x264). Eventually the problem was in PTS and DTS values, so lines 12-15 where added before av_interleaved_write_frame function: 1. AVFormatContext* outContainer = NULL; 2. avformat_alloc_output_context2(&outContainer, NULL, "mp4", "c:\\test.m

Re: [Libav-user] Helo in understanding PTS and DTS

2012-11-28 Thread hatred
Hi Igor, my comments below 2012/11/28 Morduhaev, Igor (ig...@stats.com) > I had fps issues when transcoding from avi to mp4(x264). Eventually the > problem was in PTS and DTS values, so lines 12-15 where added before > av_interleaved_write_frame function: > > > > 1. AVFormatContext* outContai

Re: [Libav-user] Helo in understanding PTS and DTS

2012-11-28 Thread Chandranath Bhattacharyya
>>outStream->codec->time_base = 1/25 and outStream->time_base = 1/12800. The >>1st one was set by me but I cannot figure out why and who set 12800? I >>noticed that before line (7) outStream->time_base = 1/9 and right after >>it it changes to 1/12800, why? I was testing on Windows and found