Hi Paul,

About 6 months later ... here I come looking at your problem. Sorry to hear 
you could not make this work on Mac. It actually already worked on Mac, but 
I don't understand why the naming is here different.

Anyway, a similar problem exists on Windows, where the lib files are also 
named with a version number. I was for a long time wondering what the best 
approach would be to let the user place the version needed. But I realized 
that the ctypes binding was done for a specific version of FFmpeg! Chances 
are small that the API would change but the binding could nevertheless 
break if a newer version is used, or it could introduce subtle bugs.

When I did the binding, I was working with FFmpeg 3.3. More specifically 
with the following lib versions:

libavutil      55.
libavcodec     57.
libavformat    57.
libavdevice    57.
libavfilter     6.
libswscale      4.
libswresample   2.
libpostproc    54.


In order to make this also work on Mac, following the naming convention you 
described, there is a way to fix the problem. If you're willing to give it 
a try, you would need to go in the folder pyglet\media\codecs\ffmpeg_lib 
and open all the files like libavcodec.py, etc. I'll take libavcodec.py as 
an example. At the beginning of the file you will find the following code

avcodec = pyglet.lib.load_library('avcodec', win32='avcodec-57')

You would just need to update it to the following:

avcodec = pyglet.lib.load_library('avcodec', win32='avcodec-57', 
darwin='avcodec.57')

This obviously assumes you're using libavcodec 57. This should then look 
for the lib named libavcodec.57.dylib.

I don't have access to a Mac. But I can try to help make it work.

Dan

-- 
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.

Reply via email to