[FFmpeg-user] PGM to JPEG-LS identify error
Sebastian Wieseler
Sebastian.Wieseler at hft-leipzig.de
Wed Jun 29 09:37:03 CEST 2011
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
$ 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
I also played around with "gray16be" and "gray16le" but this doesn't work out.
---
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice
Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping
--disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc
--enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared
--disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 31 2011 18:53:20, gcc: 4.4.3
---
What should I do to get valid JPEG-LS data?
Best regards,
Sebastian Wieseler
More information about the ffmpeg-user
mailing list