Dirk Meyer wrote: > Duncan Webb wrote: >> /freevo/record/ricky_martin_-_Living_la_vida_loca.mpg >> | type: MPEG-1 Video >> | media: MEDIA_AV >> | mime: video/mpeg >> | length: -1 > > Hard to tell. Does it also happen when you only have the first 10 MB > of that file? If yes, please send it to me (not the list).
It works fine with the first 10MB, but not with the whole file is 51MB. > But the main problem is here: > > | def get_length(self): > | """ > | get the length in seconds, return -1 if this is not possible > | """ > | end = self.get_endpos() > | if end == -1: > | return -1 > | if self.start > end: > | return int(((long(1) << 33) - 1 ) / 90000) - self.start + end > | return end - self.start > mminfo tmp/xaa kaa media metadata info tmp/xaa | type: MPEG-1 Video | media: MEDIA_AV | mime: video/mpeg | length: 44 +-- Video Track #1 | | media: MEDIA_VIDEO | | length: 44 | | bitrate: 1318000 | | codec: MPEG-1 | | width: 320 | | height: 240 | | fps: 30 | | aspect: 1.0 | | fourcc: MPEG | | id: 224 +-- Audio Track #1 | | media: MEDIA_AUDIO | | codec: MPEG 1, Layer 1,2 | | fourcc: 0x0050 | | id: 192 Duncan ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
