phillipberndt / pqiv

Powerful image viewer with minimal UI
http://www.pberndt.com/Programme/Linux/pqiv/index.html
GNU General Public License v3.0
301 stars 45 forks source link

MPO (multi-picture JPEG) causes warning. #208

Open Bill-Costa opened 2 years ago

Bill-Costa commented 2 years ago

File type .mpo is a JPEG container file used for multiple images, most commonly for stereographic L/R pairs. With pqiv only the first image displays, which is a suitable default behavior also used by other viewers, but displaying the image causes a warning sent to STDERR:

[swscaler @ 0x7fe13682d200] deprecated pixel format used, make sure you did set range correctly

phillipberndt commented 2 years ago

Thanks for reporting this! pqiv does it's best to support multi-page/image formats, so this is a bug :) swscaler sounds as if the ffmpeg backend tires to render this file. There's a command line option for disabling backends. Could you try disabling it? I suspect that the Imagemagick backend will then render this as multiple images. If it works I'd just explicitly disallow the format for ffmpeg.