Thumb (poster) error: Error: Not a JPEG file: starts with 0xec 0x46 (115)
#1
Hi,

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
g1.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinapg2.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinapg3.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/
090/locandinapg4.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinapg5.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinapg6.jpg</thumb><thumb>http://pad.mymovies.it/fil
mclub/2008/03/090/locandinapg7.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinapg8.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinapg9.jpg</thumb><thumb>http://pad.m
ymovies.it/filmclub/2008/03/090/locandinapg10.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinapg11.jpg</thumb><thumb>http://pad.mymovies.it/filmclub/2008/03/090/locandinapg12.jpg</thumb></
details>

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.
Reply
#2
bump
Reply
#3
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?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
(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...

mhhh...but...why?!

thanks for your help
Reply
#5
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.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
A fix for the internal decoder is available. You can check progress here:

https://github.com/xbmc/xbmc/pull/1885

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
thanks for your help!

...and good work.
Reply

Logout Mark Read Team Forum Stats Members Help
Thumb (poster) error: Error: Not a JPEG file: starts with 0xec 0x46 (115)0