Hi all,

in my project I get a problem with the last video frame of a video file. I use the avcodec_sample.0.5.0.c to decode a video file and save the frames to disk. In this case this program saves not all frames of the file, only the k-1 frames, the last frame isn't saved.

If I work with the terminal (ffmpeg -i test.avi test%d.jpg) to save the frames of this video file to disk, it works great and all frames, the last too, are saved.

The avcodec_sample.0.5.0.c program saves at first 2 I-Frames, which are the same pictures. Only after that the program saves P-Frames with the motion of an object, but not the last frame. If I use the terminal (see above) the motion of an object already begins in the second frame and the last frame with the motion is saved too, so as it should be.

Can anyone help me or anyone had problems with this too??

Thanks,

Nico
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to