Kodi Community Forum

Full Version: Thumb (poster) error: Error: Not a JPEG file: starts with 0xec 0x46 (115)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

after some user feedback (http://forum.xbmc.org/showthread.php?tid=58141&page=18). I have install latested xbmc version 12.0 Frodo beta 1.

With this version I have the same issues as users report.

What my internal scraper function return for poster (film: Avatar):
Quote:DEBUG: scraper: GetMovieThumbs returned <details><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandina.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinap

This are the errors that log report:
Quote:12:18:30 T:140175892866816 DEBUG: CurlFile::Open(0x7f7d280997b0) http://pad.mymovies.it/filmclub/2008/03/...andina.jpg
12:18:30 T:140175892866816 DEBUG: LoadFromFileInternal - Load of http://pad.mymovies.it/filmclub/2008/03/...andina.jpg failed. Falling back to ImageLib
12:18:30 T:140175892866816 DEBUG: CurlFile::Open(0x7f7d281adff0) http://pad.mymovies.it/filmclub/2008/03/...andina.jpg
12:18:30 T:140176069068672 DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc
12:18:30 T:140176069068672 DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnUpdate
12:18:30 T:140176069068672 DEBUG: GetMovieId (/home/muttley/Projects/XBMC myMovies.it scraper/material/fakeFilm/Avatar.avi), query = select idMovie from movie where idFile=7
12:18:30 T:140175903422208 DEBUG: DoWork - trying to extract filestream details from video file [censored Smile]
12:18:30 T:140176069068672 DEBUG: ------ Window Init (DialogVideoInfo.xml) ------
12:18:30 T:140175903422208 ERROR: Open - error probing input format, [censored Smile]
12:18:31 T:140176069068672 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
12:18:31 T:140175892866816 DEBUG: CurlFile::Open(0x7f7d281f5410) http://pad.mymovies.it/filmclub/2008/03/...andina.jpg
12:18:31 T:140175040571136 DEBUG: CurlFile::Open(0x7f7cfc0082c0) http://pad.mymovies.it/filmclub/2007/02/...andina.jpg
12:18:31 T:140175884474112 DEBUG: CurlFile::Open(0x7f7d40091f40) http://pad.mymovies.it/filmclub/2008/03/...andina.jpg
12:18:31 T:140175892866816 INFO: msg: PICTURE::LoadImage: Unable to open image: http://pad.mymovies.it/filmclub/2008/03/...andina.jpg Error:Not a JPEG file: starts with 0xec 0x46 (115)

if I try (on linux) "file locandina.jpg", get:
Quote:locandina.jpg: JPEG image data, JFIF standard 1.02

The images reported in my log are correctly opened by firefox...

Any suggest?!

p.s. on XBMC 11.0 with the same scraper I have not problems.
The (avatar) image loads locally fine (i.e. if you download and pop it in a folder as a poster.jpg). Can you confirm this?
(2012-11-30, 03:51)jmarshall Wrote: [ -> ]The (avatar) image loads locally fine (i.e. if you download and pop it in a folder as a poster.jpg). Can you confirm this?

yes...if i download (wget http://pad.mymovies.it/filmclub/2008/03/...andina.jpg) and set it with" Choose Art/Browse" on the film sheet, all it's ok.

You can also try...


thanks for your help
Confirmed the problem: The stream specifies it's not seekable (we can't get the filesize for instance).

CxImage doesn't handle this at all (i.e. it blindly assumes it can seek) so the jpeg decoding fails as we don't seek back to the correct position after reading EXIF info.

Will see why the internal decoder is failing.
A fix for the internal decoder is available. You can check progress here:

1885 (PR)

thanks for your help!

...and good work.