[cgkit-user] using cgkit wrappers to ffmpeg
Brought to you by:
mbaas
|
From: Jonathan P. <jon...@no...> - 2013-01-08 11:10:12
|
Hi there,
I'm one of the authors of a python app called PsychoPy for presenting
stimuli in psychology/neuroscience experiments and I'm looking into the
ctypes wrappers that you've built to ffmpeg as a part of cgkit. I Have
an opengl-based rendering engine and for movie inputs I currently use
avbin as a way to fetch the current frame which I then convert to a
texture, but I've had a number of headaches with avbin and looking for
alternatives.
Right now I'm testing on a mac, but this will ultimately be x-platform.
And I'm currently restricted to using 32bit on all platforms for reasons
of other dependencies.
So... I've built libavformat, libavcodec, ffmpeg etc. and these seem to
be found/imported successfully by cgkit.ffmpeg but when I try to load my
movie file I'm getting an erroneous error message about the file not
being found:
>>> from ffmpeg import findlib, avformat #I've dragged your ffmpeg to a
separate loc
>>> print os.path.isfile('jwpIntro.mov')
True
>>> ff = avformat.av_open_input_file('jwpIntro.mov')
Traceback (most recent call last):
File "/Users/jwp/Desktop/cgKit_ffmpeg.py", line 7, in <module>
ff = avformat.av_open_input_file('jwpIntro.mov')
File "/Users/jwp/code/ffmpeg/avformat.py", line 142, in
av_open_input_file
raise AVFormatError(ret)
ffmpeg.avformat.AVFormatError: No such file or directory
I'm a bit stumped about how to debug this further. Any idea what would
cause the message?
cheers,
Jon
--
Jonathan Peirce
Nottingham Visual Neuroscience
http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
|