Following DaKaZ's suggestion, I logged the times we call encode_picture(...) (in libavcodec/mpegvideo_enc.c). Looks like we call it 422 times from ffmpeg and 997 times with the test program. Again, the parameters are exactly the same. Any suggestions?
On Tue, Mar 3, 2009 at 6:27 PM, Alex Giladi <[email protected]> wrote: > Hello, > > I am comparing MPEG-2 encoding speed of ffmpeg and a very simple test > program that only sets options and calls avcodec_encode_video(...) per > each frame. > I am constantly seeing ffmpeg encoding twice faster than mine. > E.g. when I am encoding a 1080p test sequence, I am getting 70 fps > fps encoding speed with ffmpeg and only 33 fps with the test program > with CBR settings. > The settings in this case are: b=16M maxrate=16M minrate=16M > bufsize=4M g=16 bf=2 threads=6 bt=1M > If I reduce these to b=16M g=16 bf=2 threads=6, I get about 90 fps > with both ffmpeg and the test program. > > Has anyone seen smth like this? > Any suggestions on getting similar performance? > > Thanks! > Alex. > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
