Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpeg size limit #110

Open
tksharpless opened this issue Jul 26, 2022 · 4 comments
Open

jpeg size limit #110

tksharpless opened this issue Jul 26, 2022 · 4 comments
Labels

Comments

@tksharpless
Copy link

Maybe not a bug, but it seems that jpegs wider or higher than 16384 pixels cannot be loaded (AVCodec library error 'not an image').
Is there a way around that?

@gkv311
Copy link
Owner

gkv311 commented Jul 27, 2022

Please attach file sample.

@tksharpless
Copy link
Author

The file was made by Dean Zwikel and is available for download at https://drive.google.com/drive/folders/1-HzuqVk5YAsNzj6zSNqcy97_KYJOZzqr?usp=sharing
The version called 'full resolution', about 19k square, would not load in sView. Photoshop could load it, so I tried saving as a new jpeg, but sView could not load that one either. Reducing the size to 16,000x16,000 in PS produced a jpeg that sView could load.

@gkv311
Copy link
Owner

gkv311 commented Jul 29, 2022

This is a bug/limitation of FFmpeg library, which seems to be not yet fixed even within the latest release:
https://trac.ffmpeg.org/ticket/8030

ffmpeg.exe -i "0001_20220722_122118 Panorama_FullSize_OVER-UNDER.JPG"
...
ffmpeg version 2022-07-28-git-6f7d3bde11-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
...
[mjpeg @ 00000229d6594cc0] [IMGUTILS @ 0000008483bfeca0] Picture size 19116x19116 is invalid
[image2 @ 00000229d6581100] Could not find codec parameters for stream 0 (Video: mjpeg (Baseline), none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, image2, from '0001_20220722_122118 Panorama_FullSize_OVER-UNDER.JPG':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 10365555 kb/s
  Stream #0:0: Video: mjpeg (Baseline), none(bt470bg/unknown/unknown), 25 fps, 25 tbr, 25 tbn
At least one output file must be specified

Fill free to ping FFmpeg team with this issue - maybe this would help somebody to start working on it.

As a workaround, you may open this image using FreeImage library instead of FFmpeg (considering that you are running Windows - it still comes with sView as an option):

sview.exe "0001_20220722_122118 Panorama_FullSize_OVER-UNDER.JPG" --imageLib=FreeImage

And to switch back to default FFmpeg (which is usually faster and better for most files):

sview.exe "0001_20220722_122118 Panorama_FullSize_OVER-UNDER.JPG" --imageLib=FFmpeg

@gkv311 gkv311 added bug and removed question labels Jul 29, 2022
@tksharpless
Copy link
Author

tksharpless commented Jul 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants