pudwerkin / pyffmpeg

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

ioerror unable to seek #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install everything
2. run the sample program on the frontpage

What is the expected output? 
it should output an image file

What do you see instead?
[NULL @ 0x856d500]hmm, seems the headers are not complete, trying to guess
time_increment_bits
[NULL @ 0x856d500]my guess is 16 bits ;)
[NULL @ 0x856d500]looks like this file was encoded with
(divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x856d500]low_delay flag incorrectly, clearing it
[swscaler @ 0x856e6c0]No accelerated colorspace conversion found.
Traceback (most recent call last):
  File "./tt.py", line 5, in <module>
    image = stream.GetFrameNo(1)
  File "pyffmpeg.pyx", line 2043, in pyffmpeg.VideoStream.GetFrameNo
(pyffmpeg.c:14997)
  File "pyffmpeg.pyx", line 1539, in pyffmpeg.VideoTrack.seek_to_frame
(pyffmpeg.c:9228)
  File "pyffmpeg.pyx", line 960, in pyffmpeg.Track.seek_to_seconds
(pyffmpeg.c:3887)
  File "pyffmpeg.pyx", line 986, in pyffmpeg.Track.seek_to_pts
(pyffmpeg.c:3974)
  File "pyffmpeg.pyx", line 1915, in pyffmpeg.FFMpegReader.seek_to
(pyffmpeg.c:13343)
IOError: Unable to seek: -1

What version of the product are you using? 
latest svn

On what operating system?
ubuntu 9.04 and its apt packages

Original issue reported on code.google.com by in.incog...@gmail.com on 12 Jan 2010 at 8:28

GoogleCodeExporter commented 8 years ago
It seems that your video file is damaged.

To have robust seeking on all kind of files, is something I shall still be 
working at.

Here the message you've got means that FFMPEG is not able to seek byitself on 
these
kind of file.
You may start with demo program that do not require any seeking.
Have a look at the "examples" directory and try the player.

examples/playvideo_nosound.py

You may also try the players with sound but then comment out the line with
"tracks[0].seek_to_seconds(10)".

Original comment by bertrand...@gmail.com on 12 Jan 2010 at 8:47

GoogleCodeExporter commented 8 years ago
I can manually run ffmpeg using CLI and it will seek fine and create the image 
file
for the frame.

Original comment by in.incog...@gmail.com on 12 Jan 2010 at 5:01

GoogleCodeExporter commented 8 years ago
svn is not the latest version ... check version 2.1 beta as ZIP file

Original comment by martin.h...@gmail.com on 17 Mar 2011 at 11:39