[Libav-user] How to encode JPEG images as video frames

Alex Cohn alexcohn at netvision.net.il
Fri Jul 22 05:35:10 CEST 2011


On Thursday, July 21, 2011, Kelly Schrock <kellyschrock at gmail.com> wrote:
> Hi,
> I'm generating a video file from a collection of JPEG images, or rather trying to. I can generate a video, but it's not playable by any but the most forgiving of media players (e.g. mplayer, etc.). My problem seems to be with the way I'm trying to add images to the video.

What encoder are you using?

> I tried passing the frame returned from open_image() to avcodec_encode_video(), but I get a -1 return value.


More information about the Libav-user mailing list