Hi, There are some h263 files which cannot be seeked correctly. Something goes wrong and libavcodec fails to read it further. It can even fail to read it in a normal fashion. I never managed to understand the problem. If anyone can help please do so ;) Dmitry/
----- Original Message ----- From: "Alex Kirhenshtein" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, September 28, 2006 5:16 AM Subject: [Pymedia-users] player.seekTo() problem > Hello. > > I'm trying to use pymedia.Player to play some video files and run into a > problem with seekTo() - it crash player on seek to non-zero position. > > Output: > ---------------------- > invalid picture type > header damaged > Traceback (most recent call last): > File "C:\apps\Python24\Lib\site-packages\pymedia\player.py", line 790, > in _readerLoop > self._processVideoFrame( d ) > File "C:\apps\Python24\Lib\site-packages\pymedia\player.py", line 216, > in _processVideoFrame > if self._decodeVideoFrame( forced )== -1: > File "C:\apps\Python24\Lib\site-packages\pymedia\player.py", line 234, > in _decodeVideoFrame > vfr= self.vc.decode( d[ 1 ] ) > VCodecError: Unspecified error -1. Cannot find any help text for it. > ---------------------- > > Simplified code: > > player = pymedia.Player(PlayerCallback()) > player.start() > player.startPlayback(open(file, 'rb'), file.split( '.' )[ -1 ].lower()) > while player.isPlaying() and not goDown: > events = pygame.event.get() > if e.type== pygame.KEYDOWN: > player.seekTo(10) # will crash the player > > > Environment: > ActivePython 2.4.3 Build 12 >>>> pygame.__version__ > '1.7.1release' >>>> import pymedia >>>> pymedia.__version__ > '1.3.7.0' (installed using pymedia-1.3.7.2.win32-py2.4.exe from sf.net) > > > > wbr, alex. > > ------------------------------------------------------------------------- > 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 > _______________________________________________ > Pymedia-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pymedia-users > ------------------------------------------------------------------------- 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 _______________________________________________ Pymedia-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pymedia-users
