I'm running Linux, so I gave this a quick try. Unfortunately it looks like 
the build script is missing the ffmpeg bits, so it fails in it's current 
state. For a quick test, I checked out the old AVbin 8.1 tag, and cloned 
the ffmpeg revision it was looking for. It does try building, but fails 
halfway through (which makes sense since these are all pretty old revisions 
at this point). I didn't spend any time troubleshooting, but it seems 
possible to support ffmpeg again (providing that the actual ffmpeg specific 
code still exists inside AVbin).

I like the idea of rewriting the AVbin functionality in pure python. All 
other components of pyglet wrap the so/dlls directly, and gives us the 
ability to run without any compilation just by dropping the pyglet folder 
into a project. I think this is a major advantage, so we shouldn't break 
this. 




On Wednesday, March 8, 2017 at 8:19:33 PM UTC+9, Daniel Gillet wrote:
>
> Hello Benjamin,
>
> I see a couple of options here. Again trying to find the simplest solution 
> first.
> If we drop AVbin and try to wrap FFmpeg directly through ctypes, we could 
> then start by re-creating the functions from AVbin, but written in pure 
> Python. This way, the rest of the code from avbin.py should still work.
>
> Another option would be to rewrite AVbin using Cython. But I'm not sure 
> this will give a real advantage as the C code already exists.
>
> I also noticed this bit in AVbin build.sh:
> # Either "libav" or "ffmpeg"
> BACKEND=libav
>
> So it seems it is even possible to switch to FFmpeg when compiling AVbin. 
> Also in avbin.h, the struct AVbinInfo has a member called backend:
>     /**
>      * Which backend we are using: "libav" or "ffmpeg"
>      */
>     char *backend;
>
> I'm on Windows, so I cannot build easily AVbin. But it would be 
> interesting to see if we can build using FFmpeg. 
>

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