Bugs item #1607360, was opened at 2006-12-02 12:47
Message generated for change (Comment added) made by duncanwebb
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1607360&group_id=46652

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.x svn
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Frank Naude (naudefj)
Assigned to: Nobody/Anonymous (nobody)
Summary: Errors with cache rebuild

Initial Comment:
$ freevo cache --rebuild
...
ERROR factory(192): parse error
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/kaa/metadata/factory.py", line 186, in 
create_from_file
    return parser(file)
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py", line 
147, in __init__
    if not self.isMPEG(file):
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py", line 
475, in isMPEG
    self.length = self.get_length()
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py", line 
798, in get_length
    end = self.get_endpos()
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py", line 
787, in get_endpos
    end    = self.get_time(buffer[pos:])
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py", line 
316, in ReadSCRMpeg1
    highbit = (ord(buffer[0]) >> 3) & 0x01
IndexError: string index out of range


----------------------------------------------------------------------

>Comment By: Duncan Webb (duncanwebb)
Date: 2006-12-03 09:49

Message:
Logged In: YES 
user_id=104395
Originator: NO

Didn't think that this would fix the problem...

The correct thing to do is find out why it's failing.

Clearly there's nothing in the buffer. Can you upload the offending mpeg1
file to:
ftp.linuxowl.com/incoming, onlyt the first 10MB is required.

If you don't know which file it is then add a print self.filename at line
778 in kaa/metadata/src/video/mpeginfo.py maybe it's not an mpeg1 file.

----------------------------------------------------------------------

Comment By: Frank Naude (naudefj)
Date: 2006-12-02 14:18

Message:
Logged In: YES 
user_id=143611
Originator: YES

Same problem, different line numbers:

ERROR factory(192): parse error
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/kaa/metadata/factory.py", line
186, in create_from_file
    return parser(file)
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py",
line 147, in __init__
    if not self.isMPEG(file):
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py",
line 475, in isMPEG
    self.length = self.get_length()
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py",
line 798, in get_length
    end = self.get_endpos()
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py",
line 787, in get_endpos
    end    = self.get_time(buffer[pos:])
  File "/usr/lib/python2.4/site-packages/kaa/metadata/video/mpeginfo.py",
line 316, in ReadSCRMpeg1
    highbit = (ord(buffer[0]) >> 3) & 0x01
IndexError: string index out of range

Not sure if it's the right thing to do, but the attached patch can be used
to suppress the error. 

----------------------------------------------------------------------

Comment By: Duncan Webb (duncanwebb)
Date: 2006-12-02 13:43

Message:
Logged In: YES 
user_id=104395
Originator: NO

It's complaining about an mpeg 1 type video. Do you have these in your
media? Do you have a clue as to which file this is?

The metadata/video/mpeginfo.py has some stray tabs in there and a return
that is a incorrecly indented. I've updated this in svn. I don't this will
correct the problem but would you give it a try.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1607360&group_id=46652

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to