imsparsh / pyffmpeg

Automatically exported from code.google.com/p/pyffmpeg
0 stars 0 forks source link

GetFrameNo : compatibility with previous PyFFMPEG version #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Pyffmpeg2 doesn't preserve compatibility with previous PyFFMpeg version :

stream = pyffmpeg.VideoStream()
stream.open('myvideo.avi')
image = stream.GetFrameNo(0)

AttributeError: 'pyffmpegb.FFMpegReader' object has no attribute
'seek_to_frameno'

/usr/lib/python2.5/site-packages/pyffmpegb.so in
pyffmpegb.VideoStream.GetFrameNo (pyffmpegb.c:19911)()
   2131         return self.vr.get_current_frame()
   2132     def GetFrameNo(self, fno):
-> 2133         self.vr.seek_to_frameno(fno)
   2134         return self.vr.get_current_frame()
   2135     def GetCurrentFrame(self, fno):

Original issue reported on code.google.com by sebastien.campion@gmail.com on 12 Nov 2009 at 1:04

GoogleCodeExporter commented 9 years ago

Original comment by bertrand...@gmail.com on 8 Jan 2010 at 3:26