hi everybody, I have the following situation, I am capturing frames of an ip camera mpeg4, but I have a problem with the framerate initially set framerate as follows: AVStream * st; st-> codec-> time_base.den = 1; st-> codec-> time_base.num = 10;
but, the video file created does not have a 10 fps, I think that depends on network traffic, because I have 7 or 8 fps. to solve this problem I am thinking to modify the framerate to 7 or 8, before closing the file. can i modify the framerate in this way ..? i try as follows before close file; but does not work. AVFormatContext* avctx; avctx->streams[0]->r_frame_rate.den = 1; avctx->streams[0]->r_frame_rate.num = 7; avctx->streams[0]->time_base.den = 7; avctx->streams[0]->time_base.num = 7; avctx->streams[0]->codec->time_base.den = 7; avctx->streams[0]->codec->time_base.num = 1; thanks in advance. German _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
