[Ffmpeg-devel] JPEG support in ffmpeg

Hervé W. H.O.W.aka.V+ffmpeg
Sat Jul 1 18:04:58 CEST 2006


Hello,

On 01/07/06, Chris Wilson <chris at qwirx.com> wrote:
> Hi all,
>
> On Thu, 8 Jun 2006, Chris Wilson wrote:
>
> > First of all, thanks for writing ffmpeg. It looks like exactly the tool that
> > I want, to assemble multiple JPEG files from a time-lapse sequence into a
> > video file. Unfortunately, it doesn't work for me:
> >
> > The manual page says "FFmpeg can use any supported file format and protocol
> > as input". But this does not seem to be true:
> >
> > chris at rocio:/tmp/ffmpeg$ ./ffmpeg -i ~/photos/raw/img_5834.jpg foo.mpg
> > FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
> >  configuration:
> >  libavutil version: 49.0.0
> >  libavcodec version: 51.9.0
> >  libavformat version: 50.4.0
> >  built on Jun  8 2006 18:29:38, gcc: 4.0.2 20050808 (prerelease) (Ubuntu
> > 4.0.1-4ubuntu9)
> > /home/chris/photos/raw/img_5834.jpg: Unknown format
> >
> > chris at rocio:/tmp/ffmpeg$ ./ffmpeg -formats
> > FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
> > [...]
> > Image formats (filename extensions, if any, follow):
> > DE jpeg   jpg,jpeg
> > DE gif    gif
> >
> > This is after I hacked the source to enable the line that says:
> >
> > av_register_image_format(&jpeg_image_format);

I don't know if jpeg as input is supposed to be supported, but have
you tried forcing
it (possibly after applying your hack) with
-f fmt              force format
like:
-f image
or
-f image2
and/or
-img img_fmt        force image format
like:
-img jpeg

Also, according to http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html
"Progressive JPEG is not supported".

-V




More information about the ffmpeg-devel mailing list