[Libav-user] time_base.num/den muxing

Gonzalo Garramuno ggarra13 at gmail.com
Wed Sep 26 16:11:48 CEST 2012


I am trying to encode a video and audio file with a fps of 29.97 in the 
muxing example.
If I set .num = 1, .den = fps the video and audio get saved properly, 
but with the wrong fps.

If I set .num = 1000, .den = 1000 * fps, the video and audio do not get 
saved properly only saving 4 frames or so.

In both cases I am using:
picture->pts++;

Can someone help me to see what I am doing wrong?


More information about the Libav-user mailing list