[FFmpeg-user] PGM to JPEG-LS identify error

James Darnley james.darnley at gmail.com
Mon Jul 4 11:04:20 CEST 2011


On 29/06/2011, Sebastian Wieseler <Sebastian.Wieseler at hft-leipzig.de> wrote:
> Hello dear mailinglist,
> I've got a problem with the convertion from PGM to JPEG-LS.
>
> $ file barbara-pgm.pgm
> barbara-pgm.pgm: Netpbm PGM "rawbits" image data
> $ identify barbara-pgm.pgm
> barbara-pgm.pgm PNM 720x576 720x576+0+0 8-bit Grayscale DirectClass 405KiB
> 0.000u 0:00.000
>
> $ ffmpeg -f image2 -vcodec pgm -pix_fmt gray16be -i barbara-pgm.pgm -f
> image2
> -vcodec jpegls -pix_fmt gray16le barbara-ffmpeg-tojpegls.jls

What does ffmpeg say when you do this?

> $ file barbara-ffmpeg-tojpegls.jls
> barbara-ffmpeg-tojpegls.jls: JPEG image data
> $ identify barbara-ffmpeg-tojpegls.jls
> identify: Unsupported marker type 0xf7 `barbara-ffmpeg-tojpegls.jls' @
> jpeg.c/EmitMessage/232.
>
> But it should look like (it's also JPEG-LS but not created with ffmpeg):
> $ identify barbara-compressed.pgm
> identify: Improper image header `barbara-compressed.pgm' @
> pnm.c/ReadPNMImage/297.
> $ file barbara-compressed.pgm
> barbara-compressed.pgm: data

Isn't this another pgm?

> I also played around with "gray16be" and "gray16le" but this doesn't work
> out.

Why are you using this at all when your other programs said it was 8 bit?

> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009

Have you tried a newer version?


More information about the ffmpeg-user mailing list