Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Error: unrecognized data stream contents when reading image file

A topic by rocketvole created Dec 22, 2021 Views: 1,173 Replies: 2
Viewing posts 1 to 3

I'm getting this error when running dain-app. Oddly enough, I have run another video with the same format, framerate and length and I did not get any errors. This error has seemed to occur after ffmpeg frame-splitting and after a few frames had has already successfully been interpolated. 

The output of the crash_log.txt file are below. 

App Crash Log Traceback (most recent call last):

  File "my_design.py", line 72, in run

  File "my_DAIN_class.py", line 1190, in RenderVideo

  File "my_DAIN_class.py", line 1010, in StepRenderInterpolation

  File "DainDataset.py", line 22, in __init__

  File "psnr.py", line 17, in IsDiffScenes

  File "psnr.py", line 8, in calculate_psnr

  File "site-packages\PIL\Image.py", line 893, in convert

  File "site-packages\PIL\ImageFile.py", line 284, in load

  File "site-packages\PIL\ImageFile.py", line 67, in raise_oserror

OSError: unrecognized data stream contents when reading image file

How to I fix this error? Any help is appreciated, let me know if you need any other files. 

Developer

This is a weird one, can you try to disable scene change detection to see if the problem persist?

aha, that fixed the issue. I didn't know I had turned it on.

Thank you!