Thanks Daniel.
I'm on Windows. I tried a few variations. Latest ffmpeg is 4.0. Pyglet is
compiled against 3.3 but not 3.3.4 which is the last 3.3 release before 4.0.
When I use 3.3.4 I get:
File "R:\Mark_Sector\!!Projects-2\McCracken\code\media_info.py", line 23,
in print_ffmpeg_info
if have_ffmpeg():
File "C:\Python27\lib\site-packages\pyglet\media\sources\loader.py", line
117, in have_ffmpeg
from . import ffmpeg_lib
File
"C:\Python27\lib\site-packages\pyglet\media\sources\ffmpeg_lib\__init__.py",
line 35, in <module>
from .libavcodec import *
File
"C:\Python27\lib\site-packages\pyglet\media\sources\ffmpeg_lib\libavcodec.py",
line 44, in <module>
from . import libavutil
File
"C:\Python27\lib\site-packages\pyglet\media\sources\ffmpeg_lib\libavutil.py",
line 45, in <module>
avutil = pyglet.lib.load_library('avutil', win32='avutil-55')
File "C:\Python27\lib\site-packages\pyglet\lib.py", line 141, in
load_library
lib = ctypes.cdll.LoadLibrary(name)
File "C:\Python27\lib\ctypes\__init__.py", line 443, in LoadLibrary
return self._dlltype(name)
File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application
I have the shared library version of ffmpeg 3.3.4 in C:/ffmpeg to keep it
simple.
If installed here - and PATH updated to point to it - I can call ffprobe
from command line and OK.
But pyglet does not find it.
So I put it in a lib directory under my top level code file and I get the
above result after adding
```pyglet.options['search_local_libs'] = True ```to the media_info.py code.
So getting a bit closer but not there yet. Will now try 3.3.3
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.