After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 332892 - [faad] 'Negative scalefactor found' and 'Maximum number of scalefactor bands exceeded'
[faad] 'Negative scalefactor found' and 'Maximum number of scalefactor bands ...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal major
: 0.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 331207 338935 (view as bug list)
Depends on:
Blocks: 324082
 
 
Reported: 2006-02-28 20:51 UTC by Luca Ferretti
Modified: 2006-05-03 21:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Luca Ferretti 2006-02-28 20:51:01 UTC
Please describe the problem:
I downloaded this [1] video file (197.43 MB / 38:33 mm:ss).

After 0:33 Totem says: "Failed to decode JPEG image". I suspect at this time the
 JPEG still image should be replaced by the video.


[1] http://www.danieleluttazzi.it/themes/chameleon/background.png

Steps to reproduce:
1. Download the file (if you can)
2. Open in toten+gstreame-0-10
3. 


Actual results:
Error "Failed to decode JPEG image" after 0:33

Expected results:
Play the movie :-) Here is a movie somewhere in this file.

Does this happen every time?
Yes

Other information:
The video is also available as m4v (iPod) and 3gp (Mobile phone). I could try
them also, but in the next days.

Links here http://www.danieleluttazzi.it/?q=node/250
Comment 1 Luca Ferretti 2006-02-28 20:57:17 UTC
Note 1: link to mov file is wrong. It's http://www.danieleluttazzi.it/files/daniele_luttazzi_20050227_sky.mov


Note 2: "if you can" in step 1 means:
 * if you have ADSL or similar
 * if you have flat connection
Very slow server. I'm downloading the 3gp file (~21 MB) now: it needs ~30 minutes O_O

Comment 2 Luca Ferretti 2006-02-28 21:02:23 UTC
A final note about console messages:

$ totem /daniele_luttazzi_20050227_sky.mov
GTK Accessibility Module initialized
Bonobo accessibility support initialized
ERROR (0x8118d18 - 0:00:06.753709000)              qtdemux(15358) qtdemux.c(1634):qtdemux_parse: length too long (1024 > 107)
ERROR (0x8118d18 - 0:00:06.755021000)              qtdemux(15358) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8118d18 - 0:00:06.755170000)              qtdemux(15358) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8118d18 - 0:00:06.755283000)              qtdemux(15358) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
Comment 3 Luca Ferretti 2006-03-03 09:59:14 UTC
Increased severty. It seems that a lot of mov files fail to play (in Totem) with or without JPEG still image. Here is a list.

1) http://www.mightymcpilgrim.com/films/brokemac/Mighty_McPilgrim_broke_mac_small.mov (900 KB)
  totem error:   Could not decode stream.
  console error: ERROR (0x8118cc0 - 0:00:02.061007000)              qtdemux(10245) qtdemux.c(1634):qtdemux_parse: length too long (1024 > 151)
  other info: also available at med size, large size and WMV at http://www.mightymcpilgrim.com/films/brokemac/


3) http://www.ryb.it/fosindaco/foallamore.mov (~ 14 MB)
   totem error: Could not decode stream.
   consolo error: ERROR (0x8118d10 - 0:00:02.270481000)              qtdemux(10566) qtdemux.c(1634):qtdemux_parse: length too long (1024 > 143)
ERROR (0x8118d10 - 0:00:02.271763000)              qtdemux(10566) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8118d10 - 0:00:02.271898000)              qtdemux(10566) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8118d10 - 0:00:02.272044000)              qtdemux(10566) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8118d10 - 0:00:02.272161000)              qtdemux(10566) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8118d10 - 0:00:02.272259000)              qtdemux(10566) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)

3) http://media.arstechnica.com/images/tiger/intro.mov (~15 MB)
   totem error: Could not decode stream.
   console error: ERROR (0x8114e98 - 0:00:02.439567000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.440867000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.441021000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.441263000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.441408000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.441530000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.441653000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.441788000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.441910000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.442031000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.442175000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.442297000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.442429000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.442550000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.442671000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.442803000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.442924000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.443055000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.443266000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.443390000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.443524000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.443645000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.443778000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.443899000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.444020000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.446278000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.446588000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.446734000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.446855000)              qtdemux(10657) qtdemux.c(1634):qtdemux_parse: length too long (1024 > 107)
ERROR (0x8114e98 - 0:00:02.446969000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.447106000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.447242000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)
ERROR (0x8114e98 - 0:00:02.447390000)              qtdemux(10657) qtdemux.c(1569):qtdemux_parse: atom length too long (1114112 > 21)
ERROR (0x8114e98 - 0:00:02.447502000)              qtdemux(10657) qtdemux.c(1565):qtdemux_parse: atom length too short (0 < 8)

4) http://www.ghettoyouths.com/jamrock.mov
   (from bug 302606)
   works fine

5) http://www.oldeenglish.org/OldeEnglish.org_-_Gymclass.mov (~25 MB)
   (from bug 302606)
   works fine
Comment 4 Luca Ferretti 2006-03-03 10:49:45 UTC
Other test case: see comment 2 on bug 333232

http://www.arstechnica.com/reviews/003/panther/movies/sheet-still.mov

this makes totem and totem-mozilla crash
Comment 5 Edward Hervey 2006-03-03 11:00:35 UTC
(In reply to comment #3)
> Increased severty. It seems that a lot of mov files fail to play (in Totem)
> with or without JPEG still image. Here is a list.
> 
> 1)
> http://www.mightymcpilgrim.com/films/brokemac/Mighty_McPilgrim_broke_mac_small.mov
> (900 KB)

The only problem with this file is on the audio stream:
gstfaad.c(930):gst_faad_chain:<faad0> error: Failed to decode buffer: Negative scalefactor found, should be impossible

Using decodebin/playbin that error emission causes the whole pipeline to stop unfortunately.
The following works fine (without sound):
gst-launch-0.10 -v -t filesrc location=Mighty_McPilgrim_broke_mac_small.mov ! qtdemux ! ffdec_h264 ! queue ! xvimagesink

> 
> 
> 3a) http://www.ryb.it/fosindaco/foallamore.mov (~ 14 MB)
> 3b) http://media.arstechnica.com/images/tiger/intro.mov (~15 MB)

The two files have the same problem as above with a slightly different error:
gstfaad.c(930):gst_faad_chain:<faad0> error: Failed to decode buffer: Maximum number of scalefactor bands exceeded

Plays fine (video only) using:
3a/ qtdemux ! ffdec_mpeg4
3b/ qtdemux ! jpegdec

> 4) http://www.ghettoyouths.com/jamrock.mov
>    (from bug 302606)
>    works fine
> 
> 5) http://www.oldeenglish.org/OldeEnglish.org_-_Gymclass.mov (~25 MB)
>    (from bug 302606)
>    works fine
> 

So I guess the one to blame here is faad and not qtdemux...
Comment 6 Edward Hervey 2006-03-05 16:36:46 UTC
Changing the title to properly reflect the problem.
Comment 7 Wim Taymans 2006-04-19 09:29:08 UTC
*** Bug 338935 has been marked as a duplicate of this bug. ***
Comment 8 Tim-Philipp Müller 2006-04-21 11:47:03 UTC
The patch in bug #173007 fixes these file for me as well.

Comment 9 Tim-Philipp Müller 2006-04-28 11:13:53 UTC
All these videos work fine for me now:

 2006-04-28  Tim-Philipp Müller  <tim at centricular dot net>

        * ext/faad/gstfaad.c: (gst_faad_init), (aac_rate_idx),
        (gst_faad_setcaps), (gst_faad_chain), (gst_faad_open_decoder),
        (gst_faad_close_decoder), (gst_faad_change_state):
        * ext/faad/gstfaad.h:
          If we run into a decoding error, try re-opening the decoder
          with faacDecInit2() using fake codec data created from the
          data the demuxer gave us. Should fix a whole bunch of
          GStreamer-faad problems incl. 'channel coupling not
          implemented', 'maximum number of scalefactor bands exceeded'
          etc. (#173007, #332892).

Comment 10 Tim-Philipp Müller 2006-05-02 15:56:46 UTC
*** Bug 331207 has been marked as a duplicate of this bug. ***