Well, a command like this:
ffmpeg.exe -i 1.mpg -y -intra -f image2 -r 1 -an "t%7d.jpg"

runs with no problem to extract the frames, so it seems that the binaries were 
compiled with support for MPEG.  It's just when I try to do a similar thing 
using the API that I see this error where avcodec_open returns -1....

Matt

--- On Wed, 7/22/09, Stephan Assmus <[email protected]> wrote:

> From: Stephan Assmus <[email protected]>
> Subject: Re: [libav-user] Writing single frames to JPEG
> To: "Libav* user questions and discussions" <[email protected]>
> Date: Wednesday, July 22, 2009, 6:44 AM
> Hi,
> 
> On 2009-07-21 at 01:29:03 [+0200], Matt Hill <[email protected]>
> wrote:
> > I tried using the following code and was able to
> successfully save frames 
> > from an AVI file, but when I tried with an MPEG1 file
> (25 fps) 
> > avcodec_open ( pOCodecCtx, pOCodec ) fails, returning
> -1.  Does anyone 
> > know why that would be?
> 
> Have you checked if your FFmpeg config.h enables the MPEG
> parsers, demuxers 
> and decoders?
> 
> Best regards,
> -Stephan
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> 


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

Reply via email to