I've made a C/C++ program that encodes a video. It takes several input videos with presumably different fpses, then encodes them as a single video with a different single fps. For example you can give 2 videos with fpses 30 and 60 respectively then set output fps to 120. This works fine under normal circumstances.
However when ran through mplayer on a different pc then mine, it says the following:
As seen here it says that audio is at 30 while video is at 15. Normally I would just shrug this off however it works on any other video player on the same computer. So I would assume that mplayer is at fault and shrug it off, but it works on my computer's mplayer.Is this about my video encoding? Do I need to change the header of the video? Here is how I set the time:
AVStream* st;
st->time_base = av_d2q(1 / fps, std::numeric_limits<int>::max());
What could be the problem?
