I went through the source code and found my mistakes. Not the whole unzip folder should be put into the local 'lib' folder but the dls in the 'bin' folder. Then i changed few codes:(pyglet\lib.py; line61) orgin code:
_local_lib_paths = [script_path, os.path.join(script_path, 'lib'), os.path.join(cwd, 'lib')] Edited code: _local_lib_paths = [script_path, os.path.join(script_path, 'lib\\ffmpeg\\bin'), os.path.join(cwd, 'lib\\ffmpeg\\bin')] and my file tree show as picture below: [image: 3794b19593a286365140a3cbc703f13.png] On Tuesday, December 18, 2018 at 10:55:14 PM UTC+11, Li Jiayuan wrote: > > Hi, > Everyone. > > I am doing a project with a video player inside, and i am using pyglet. I > tried to install ffmpeg as local lib. I did as documentation of ffmpeg > installation, but i can only get decoder only for WAVE files when I load a > video file. > > I already set options to search local libs: > > pyglet.options['search_local_libs'] = True > > > And my file tree is showed in the picture below: > > [image: ba93c2a3deab68c6d4237be7efc90b1.png][image: > 3794b19593a286365140a3cbc703f13.png] > > > > > My OS: Windows 10-64bit > Python version: 3.6.1 > Pyglet version: 1.4.0b1 > Ffmepg version: ffmpeg-4.1-win64-shared > > Thanks! > Jiayuan Li. > > -- 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 pyglet-users+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.