quick fix 2

This commit is contained in:
Bartłomiej Patyk
2025-10-22 19:05:25 +02:00
commit e5e64b6dc8
598 changed files with 300649 additions and 0 deletions

View File

@ -0,0 +1 @@
pip

View File

@ -0,0 +1,127 @@
Metadata-Version: 2.4
Name: ffpyplayer
Version: 4.5.3
Summary: A cython implementation of an ffmpeg based player.
Home-page: https://matham.github.io/ffpyplayer/
Author: Matthew Einhorn
Author-email: matt@einhorn.dev
License: LGPL3
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Multimedia :: Video :: Display
Classifier: Topic :: Multimedia :: Sound/Audio :: Players
Classifier: Topic :: Multimedia :: Sound/Audio :: Players :: MP3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: BSD :: FreeBSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Intended Audience :: Developers
License-File: COPYING
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: summary
FFPyPlayer is a python binding for the FFmpeg library for playing and writing
media files.
For more information: https://matham.github.io/ffpyplayer/index.html
To install: https://matham.github.io/ffpyplayer/installation.html
.. image:: https://travis-ci.org/matham/ffpyplayer.svg?branch=master
:target: https://travis-ci.org/matham/ffpyplayer
:alt: TravisCI status
.. image:: https://ci.appveyor.com/api/projects/status/nfl6tyiwks26ngyu/branch/master?svg=true
:target: https://ci.appveyor.com/project/matham/ffpyplayer/branch/master
:alt: Appveyor status
.. image:: https://img.shields.io/pypi/pyversions/ffpyplayer.svg
:target: https://pypi.python.org/pypi/ffpyplayer/
:alt: Supported Python versions
.. image:: https://img.shields.io/pypi/v/ffpyplayer.svg
:target: https://pypi.python.org/pypi/ffpyplayer/
:alt: Latest Version on PyPI
.. warning::
Although the ffpyplayer source code is licensed under the LGPL, the ffpyplayer wheels
for Windows and linux on PYPI are distributed under the GPL because the included FFmpeg binaries
were compiled with GPL options.
If you want to use it under the LGPL you need to compile FFmpeg yourself with the correct options.
Similarly, the wheels bundle openssl for online camera support. However, releases are not made
for every openssl release, so it is recommended that you compile ffpyplayer yourself if security
is a issue.
Usage example
-------------
Playing a file:
.. code-block:: python
>>> from ffpyplayer.player import MediaPlayer
>>> import time
>>> player = MediaPlayer(filename)
>>> val = ''
>>> while val != 'eof':
... frame, val = player.get_frame()
... if val != 'eof' and frame is not None:
... img, t = frame
... # display img
Writing a video file:
.. code-block:: python
>>> from ffpyplayer.writer import MediaWriter
>>> from ffpyplayer.pic import Image
>>> w, h = 640, 480
>>> # write at 5 fps.
>>> out_opts = {'pix_fmt_in':'rgb24', 'width_in':w, 'height_in':h,
... 'codec':'rawvideo', 'frame_rate':(5, 1)}
>>> writer = MediaWriter('output.avi', [out_opts])
>>> # Construct image
>>> size = w * h * 3
>>> buf = bytearray([int(x * 255 / size) for x in range(size)])
>>> img = Image(plane_buffers=[buf], pix_fmt='rgb24', size=(w, h))
>>> for i in range(20):
... writer.write_frame(img=img, pts=i / 5., stream=0)
Converting images:
.. code-block:: python
>>> from ffpyplayer.pic import Image, SWScale
>>> w, h = 500, 100
>>> size = w * h * 3
>>> buf = bytearray([int(x * 255 / size) for x in range(size)])
>>> img = Image(plane_buffers=[buf], pix_fmt='rgb24', size=(w, h))
>>> sws = SWScale(w, h, img.get_pixel_format(), ofmt='yuv420p')
>>> img2 = sws.scale(img)
>>> img2.get_pixel_format()
'yuv420p'
>>> planes = img2.to_bytearray()
>>> map(len, planes)
[50000, 12500, 12500, 0]

View File

@ -0,0 +1,73 @@
../../share/ffpyplayer/ffmpeg/README.txt,sha256=nZpmLkyZnjV9GbzgBGBjTbezpwAJ-2C_g7gWP2JRmGg,40052
../../share/ffpyplayer/ffmpeg/bin/avcodec-60.dll,sha256=iqg4GbvTiyt7PYwGNEHFA7Z_wXrCwG0b9NwDPhbgSio,77325312
../../share/ffpyplayer/ffmpeg/bin/avdevice-60.dll,sha256=4-XUr2e0vxzaz215WFpqLCaO2uAVyMMm0DV8blesiJc,3856896
../../share/ffpyplayer/ffmpeg/bin/avfilter-9.dll,sha256=ahbaG8wRZgkdQctN8Ipg5lM7QWDb1V-tUmjhY-p4oJE,39591424
../../share/ffpyplayer/ffmpeg/bin/avformat-60.dll,sha256=tidMgdtswBWM3SXgb4gYYYX89tpWbVOY1BoR3Ku9Hnc,16813056
../../share/ffpyplayer/ffmpeg/bin/avutil-58.dll,sha256=_2MiiBKcssnwRehwWnl2Q8PTUYNa5UAOARcvx7L8x2s,2193408
../../share/ffpyplayer/ffmpeg/bin/ffmpeg.exe,sha256=D7EOLTBzumQ3eNcsTjdmRW14SfQcqfySA7GbEXKJfDk,381440
../../share/ffpyplayer/ffmpeg/bin/ffplay.exe,sha256=Iphhq5O_kU9RvT8Kn53k3MWuBj40KS2AlGdDAK5h7CA,1808896
../../share/ffpyplayer/ffmpeg/bin/ffprobe.exe,sha256=WTLdK4zplbhjr4VPpwoGWCvUqjCOkU6u466WhAtkWH8,193536
../../share/ffpyplayer/ffmpeg/bin/postproc-57.dll,sha256=PdYpMpdd6P0jWBJvDViHBGovnni6x6sVtOk6Qs8Y_5o,76288
../../share/ffpyplayer/ffmpeg/bin/swresample-4.dll,sha256=xoq1ZMMRj8EZyaBAuQ9rMKHAT83HZeWKb6KwTd0Kanc,437760
../../share/ffpyplayer/ffmpeg/bin/swscale-7.dll,sha256=S6xc79GoB3ARY86pDDHNKIA5ihTjCyN0I1h4ArDQCsI,642560
../../share/ffpyplayer/sdl/bin/COPYING.txt,sha256=rk3zdZpyZThge4TACrj4pVZ9nzitU5dIbrm1xfYmyu8,930
../../share/ffpyplayer/sdl/bin/README-SDL.txt,sha256=8X2JGRNvlidGi03_vXvd0YjvKqqO0hkU0hB9HHWemdc,433
../../share/ffpyplayer/sdl/bin/SDL2.dll,sha256=wjJc4Bc07hq-DyoEDSyoVRASvjggofsvMlMNhy3xlRc,2509824
../../share/ffpyplayer/sdl/bin/SDL2_mixer.dll,sha256=sfpRDfSau5J5i-3TGrMg-AXedAVhwCjtTOG5QwueLVU,285184
ffpyplayer-4.5.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
ffpyplayer-4.5.3.dist-info/METADATA,sha256=WR8Qf1noROZ3N3pQnQEE8A2NXPrFt8DZYnCb5G39nnw,4432
ffpyplayer-4.5.3.dist-info/RECORD,,
ffpyplayer-4.5.3.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
ffpyplayer-4.5.3.dist-info/licenses/COPYING,sha256=6n0EnHcF3BOvwgLdGOGCfzSE-CEv0_p7gvxKDDY0Msk,7816
ffpyplayer-4.5.3.dist-info/top_level.txt,sha256=M1JGmvzCbPmL7v-RP0BkwkmpcZ0NEy5V-Xn1J00NlhU,11
ffpyplayer/__init__.py,sha256=KWkDxRWMvAO-TJuqVvjU-z__PM6INWKP38J-Bm3adWs,1739
ffpyplayer/__pycache__/__init__.cpython-313.pyc,,
ffpyplayer/clib/misc.c,sha256=yGKJxpDA_CjVjcrVtoG2RaNcJvRtH3PoYwCOsgsDIpU,5885
ffpyplayer/clib/misc.h,sha256=rjjf9C_WOYXoyRnTT_tTMOi3lEOT6Gm1S3gcIdSYhWY,2507
ffpyplayer/includes/ff_consts.pxi,sha256=YmC45OtqcUiWn5rLWgki2gTrXqVlJZDVFmYw-I8ZE8Y,1878
ffpyplayer/includes/ffconfig.h,sha256=MNktgZNMiuk4LniPo5W6LJ4nC76tB3k-Dy3RxYeGfC8,892
ffpyplayer/includes/ffconfig.pxi,sha256=K2iUaHtFIbOZpcRTan2JdTKq0cgQG5JU0SwdBRZf3gc,319
ffpyplayer/includes/ffmpeg.pxi,sha256=kzhL_S_MDPrJk5Fckv_rVzaL4784fKLvoTpBhUXVGjk,24738
ffpyplayer/includes/inline_funcs.pxi,sha256=NYAk0oCtw6xgPZNT--DthO43JVhL_lWfvDbf5IXge4w,3208
ffpyplayer/includes/sdl.pxi,sha256=9M_DrYZGYfmZBuELQIjFyiOxmz5905q1kF6utYzFewM,5082
ffpyplayer/pic.cp313-win_amd64.pyd,sha256=nm7_4h64PVkdoh3mrXmYz87MbDP-ena5DSgAMYrGoUM,247808
ffpyplayer/pic.pxd,sha256=bgPeBW0gZ8-LRH2_0OVvg_Ha0hesdnory5TbDpEcO_0,1156
ffpyplayer/pic.pyx,sha256=ZRx-hwQKlxGFcj6W3F6flNmpMmERf1ao8dN-iklhs6I,42645
ffpyplayer/player/__init__.py,sha256=FtZYqQWl2KYa1qhAuDgOsdXYY1Qd6v3zbvsOql3Kmn4,224
ffpyplayer/player/__pycache__/__init__.cpython-313.pyc,,
ffpyplayer/player/clock.cp313-win_amd64.pyd,sha256=kZmxlhAkvUZeQLDOVqJELODBLtUoa5rstbdfb8cr-qM,42496
ffpyplayer/player/clock.pxd,sha256=0frWKwSpf914tSHor-WCxUVuLsSFC6ifVPz5m-11St4,846
ffpyplayer/player/clock.pyx,sha256=uSge6R916ihdq9dIiT2KOIXoz395LSGoNUwtv_usNnM,1842
ffpyplayer/player/core.cp313-win_amd64.pyd,sha256=I8BmgL6QPwXQYXuPPDhUg1Q86TMdJmOP3nByGK3NBtI,140800
ffpyplayer/player/core.pxd,sha256=5Vatls2PxhSRRZgrLNYQGqLiQoRV-_wlSCGk64ueVZQ,8597
ffpyplayer/player/core.pyx,sha256=GzBaOYsOeUaP-6w3OMMZx__KZdUXwm3BHRpAmBAf9bU,110232
ffpyplayer/player/decoder.cp313-win_amd64.pyd,sha256=3l6Ra1bowdHdBsNRuUWPd94MPG2whnwulio4ULNZZtk,48128
ffpyplayer/player/decoder.pxd,sha256=iixNj19hsG3k1Bd_y4TSVv2SlUQJ6JmwprFRpYzTSVk,1273
ffpyplayer/player/decoder.pyx,sha256=QUycbPjZSqqVNxQrkWczIBYu34GDgwf_r48QB9Kc_EY,6117
ffpyplayer/player/frame_queue.cp313-win_amd64.pyd,sha256=OqTApmeq9liE56rUxeAbUdNm4cQZmmQwjgFkaaX52GE,59904
ffpyplayer/player/frame_queue.pxd,sha256=AuiR6IS2a-6adjp4RAcpaHzmfESAonx12bfKw_jwSh0,2169
ffpyplayer/player/frame_queue.pyx,sha256=kZ_HN4OxUc6Hfn0A1q-skDg3OvwnpjRu9To68I0X-ow,9596
ffpyplayer/player/player.cp313-win_amd64.pyd,sha256=Yn-kDndiHOiNdQBh5rjD0Oo3w43FAnYCeZAf1RBCbmc,161792
ffpyplayer/player/player.pxd,sha256=WMrVAjjZ8HG1zT-3IG-zR3CpUtRXUetxIQOGoH26M_Y,529
ffpyplayer/player/player.pyx,sha256=3VdF-lEs_y-oqUO9AJdgKOXx7qHVvyBqb0lyJQs-gxU,46127
ffpyplayer/player/queue.cp313-win_amd64.pyd,sha256=9-T9rE-Rlir5xxKnNAeLUtBIeVr1FPaYsbH3Ke9bSLY,48128
ffpyplayer/player/queue.pxd,sha256=JqRxylubopPo2ZAREU26N16MOwL8t_q34_3kbpgGNHU,1060
ffpyplayer/player/queue.pyx,sha256=YAOMS3BgMcGI6Nhv3GTKMrIPrUua5CoMFlurwvlP0pI,4342
ffpyplayer/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
ffpyplayer/tests/__pycache__/__init__.cpython-313.pyc,,
ffpyplayer/tests/__pycache__/common.cpython-313.pyc,,
ffpyplayer/tests/__pycache__/test_pic.cpython-313.pyc,,
ffpyplayer/tests/__pycache__/test_play.cpython-313.pyc,,
ffpyplayer/tests/__pycache__/test_write.cpython-313.pyc,,
ffpyplayer/tests/common.py,sha256=tf7fOTpcj6C73g3jGJMRclNNEqhwNveMd2xJ6viOJKI,874
ffpyplayer/tests/test_pic.py,sha256=xoQCkWJM_i_gdCQeLXMYPyJJUu26vDkGhmxXH0PFzIw,679
ffpyplayer/tests/test_play.py,sha256=QW_6tg6CetLz8d5m8EkBgLubnsFqVs_Pyl3q8r7pHaY,795
ffpyplayer/tests/test_write.py,sha256=XUSE1WOwGjI_8qkhFehBfVmYB3ZMLKvtlzZVkNuhqCY,5625
ffpyplayer/threading.cp313-win_amd64.pyd,sha256=M3vqpSKgWZ93zQRGAfPwClJFDevqPT5PGpL9Elv15dY,79872
ffpyplayer/threading.pxd,sha256=Dbo8kXICi4zKjn-SwL3uoS9D51vHKqx_U2miwPdeEGk,1428
ffpyplayer/threading.pyx,sha256=yK4031RQ6_hfLhKpvmWnV1o3Rvj175wjigBdYCILBW4,8426
ffpyplayer/tools.cp313-win_amd64.pyd,sha256=q3iRhEsCjSCaZhC4tILy4X-T8PWJDggibfMxzfFbpyI,191488
ffpyplayer/tools.pyx,sha256=C80okB6rzyCscRuuKCWPeb6XRzXkKvurCKYAWWqH4t0,32004
ffpyplayer/writer.cp313-win_amd64.pyd,sha256=CJL3OvFVV5ozdWKsF0xHlR8RT_GI0-dTQpyJKitIEyk,115712
ffpyplayer/writer.pxd,sha256=59qeOu_KIxh_r0ZMUSRMOAk0nM0nkBX4rcw0bUf2bTc,1352
ffpyplayer/writer.pyx,sha256=D69NEp5cg-iJ-i6dKnh1drzLQxAmUhgZm-TIpLwp2Qs,27202

View File

@ -0,0 +1,5 @@
Wheel-Version: 1.0
Generator: setuptools (80.9.0)
Root-Is-Purelib: false
Tag: cp313-cp313-win_amd64

View File

@ -0,0 +1 @@
ffpyplayer