ffpyplayer 4.5.2__tar.gz → 4.5.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/PKG-INFO +12 -3
  2. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/README.rst +1 -1
  3. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/__init__.py +1 -1
  4. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/frame_queue.pyx +1 -1
  5. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/tools.pyx +6 -0
  6. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer.egg-info/PKG-INFO +12 -3
  7. ffpyplayer-4.5.4/pyproject.toml +6 -0
  8. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/setup.py +5 -1
  9. ffpyplayer-4.5.2/pyproject.toml +0 -4
  10. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/COPYING +0 -0
  11. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/clib/misc.c +0 -0
  12. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/clib/misc.h +0 -0
  13. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/includes/ff_consts.pxi +0 -0
  14. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/includes/ffconfig.h +0 -0
  15. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/includes/ffconfig.pxi +0 -0
  16. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/includes/ffmpeg.pxi +0 -0
  17. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/includes/inline_funcs.pxi +0 -0
  18. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/includes/sdl.pxi +0 -0
  19. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/pic.pxd +0 -0
  20. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/pic.pyx +0 -0
  21. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/__init__.py +0 -0
  22. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/clock.pxd +0 -0
  23. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/clock.pyx +0 -0
  24. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/core.pxd +0 -0
  25. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/core.pyx +0 -0
  26. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/decoder.pxd +0 -0
  27. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/decoder.pyx +0 -0
  28. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/frame_queue.pxd +0 -0
  29. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/player.pxd +0 -0
  30. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/player.pyx +0 -0
  31. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/queue.pxd +0 -0
  32. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/player/queue.pyx +0 -0
  33. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/tests/__init__.py +0 -0
  34. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/tests/common.py +0 -0
  35. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/tests/test_pic.py +0 -0
  36. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/tests/test_play.py +0 -0
  37. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/tests/test_write.py +0 -0
  38. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/threading.pxd +0 -0
  39. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/threading.pyx +0 -0
  40. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/writer.pxd +0 -0
  41. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer/writer.pyx +0 -0
  42. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer.egg-info/SOURCES.txt +0 -0
  43. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer.egg-info/dependency_links.txt +0 -0
  44. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/ffpyplayer.egg-info/top_level.txt +0 -0
  45. {ffpyplayer-4.5.2 → ffpyplayer-4.5.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: ffpyplayer
3
- Version: 4.5.2
3
+ Version: 4.5.4
4
4
  Summary: A cython implementation of an ffmpeg based player.
5
5
  Home-page: https://matham.github.io/ffpyplayer/
6
6
  Author: Matthew Einhorn
@@ -18,12 +18,21 @@ Classifier: Programming Language :: Python :: 3.10
18
18
  Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
21
22
  Classifier: Operating System :: MacOS :: MacOS X
22
23
  Classifier: Operating System :: Microsoft :: Windows
23
24
  Classifier: Operating System :: POSIX :: BSD :: FreeBSD
24
25
  Classifier: Operating System :: POSIX :: Linux
25
26
  Classifier: Intended Audience :: Developers
26
27
  License-File: COPYING
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: home-page
33
+ Dynamic: license
34
+ Dynamic: license-file
35
+ Dynamic: summary
27
36
 
28
37
  FFPyPlayer is a python binding for the FFmpeg library for playing and writing
29
38
  media files.
@@ -115,5 +124,5 @@ Converting images:
115
124
  >>> img2.get_pixel_format()
116
125
  'yuv420p'
117
126
  >>> planes = img2.to_bytearray()
118
- >>> map(len, planes)
127
+ >>> [len(plane) for plane in planes]
119
128
  [50000, 12500, 12500, 0]
@@ -88,5 +88,5 @@ Converting images:
88
88
  >>> img2.get_pixel_format()
89
89
  'yuv420p'
90
90
  >>> planes = img2.to_bytearray()
91
- >>> map(len, planes)
91
+ >>> [len(plane) for plane in planes]
92
92
  [50000, 12500, 12500, 0]
@@ -10,7 +10,7 @@ import platform
10
10
 
11
11
  __all__ = ('dep_bins', )
12
12
 
13
- __version__ = '4.5.2'
13
+ __version__ = '4.5.4'
14
14
  version = __version__
15
15
 
16
16
  # the ffmpeg src git version tested and upto date with,
@@ -162,7 +162,7 @@ cdef class FrameQueue(object):
162
162
  if player.img_convert_ctx == NULL:
163
163
  av_log(NULL, AV_LOG_FATAL, b"Cannot initialize the conversion context\n")
164
164
  raise_py_exception(b'Cannot initialize the conversion context.')
165
- sws_scale(player.img_convert_ctx, src_frame.data, src_frame.linesize,
165
+ sws_scale(player.img_convert_ctx, <const unsigned char* const*>src_frame.data, src_frame.linesize,
166
166
  0, vp.height, vp.frame.data, vp.frame.linesize)
167
167
  av_frame_unref(src_frame)
168
168
  return 0
@@ -707,12 +707,15 @@ def list_dshow_devices():
707
707
 
708
708
  # list devices
709
709
  list_dshow_opts(res, b'dummy', b'list_devices')
710
+ # primary dev name
710
711
  pname = re.compile(' *\[dshow *@ *[\w]+\] *"(.+)" *\\((video|audio)\\) *')
712
+ # alternate dev name
711
713
  apname = re.compile(' *\[dshow *@ *[\w]+\] *Alternative name *"(.+)" *')
712
714
  m = None
713
715
  for msg, level in res:
714
716
  message = msg.decode('utf8')
715
717
 
718
+ # do we match a primary name - i.e. next device
716
719
  m_temp = pname.match(message)
717
720
  if m_temp:
718
721
  m = m_temp
@@ -722,6 +725,7 @@ def list_dshow_devices():
722
725
  continue
723
726
 
724
727
  m_temp = apname.match(message)
728
+ # if we match alternate name and already have primary, then we're adding it
725
729
  if m_temp and m:
726
730
  curr[m_temp.group(1)] = []
727
731
  name_map[m_temp.group(1)] = m.group(1)
@@ -731,6 +735,8 @@ def list_dshow_devices():
731
735
  msg2 = message.encode('utf8')
732
736
  av_log(NULL, loglevels[level], '%s', msg2)
733
737
 
738
+ m = None
739
+
734
740
  # list video devices options
735
741
  vid_opts = re.compile(' *\[dshow *@ *[\w]+\] +(pixel_format|vcodec)=([\w]+) +min +s=\d+x\d+ +fps=(\d+)\
736
742
  +max +s=(\d+)x(\d+) +fps=(\d+).*')
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: ffpyplayer
3
- Version: 4.5.2
3
+ Version: 4.5.4
4
4
  Summary: A cython implementation of an ffmpeg based player.
5
5
  Home-page: https://matham.github.io/ffpyplayer/
6
6
  Author: Matthew Einhorn
@@ -18,12 +18,21 @@ Classifier: Programming Language :: Python :: 3.10
18
18
  Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
21
22
  Classifier: Operating System :: MacOS :: MacOS X
22
23
  Classifier: Operating System :: Microsoft :: Windows
23
24
  Classifier: Operating System :: POSIX :: BSD :: FreeBSD
24
25
  Classifier: Operating System :: POSIX :: Linux
25
26
  Classifier: Intended Audience :: Developers
26
27
  License-File: COPYING
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: home-page
33
+ Dynamic: license
34
+ Dynamic: license-file
35
+ Dynamic: summary
27
36
 
28
37
  FFPyPlayer is a python binding for the FFmpeg library for playing and writing
29
38
  media files.
@@ -115,5 +124,5 @@ Converting images:
115
124
  >>> img2.get_pixel_format()
116
125
  'yuv420p'
117
126
  >>> planes = img2.to_bytearray()
118
- >>> map(len, planes)
127
+ >>> [len(plane) for plane in planes]
119
128
  [50000, 12500, 12500, 0]
@@ -0,0 +1,6 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools", "wheel",
4
+ "cython~=3.0.11; python_version < '3.14'",
5
+ "cython~=3.1.8; python_version >= '3.14'",
6
+ ]
@@ -376,7 +376,10 @@ with open('README.rst') as fh:
376
376
 
377
377
  setup_requires = []
378
378
  if declare_cython:
379
- setup_requires.append('cython~=3.0.11')
379
+ if sys.version_info < (3, 14):
380
+ setup_requires.append('cython~=3.0.11')
381
+ else:
382
+ setup_requires.append('cython~=3.1.8')
380
383
 
381
384
  setup(name='ffpyplayer',
382
385
  version=ffpyplayer.__version__,
@@ -400,6 +403,7 @@ setup(name='ffpyplayer',
400
403
  'Programming Language :: Python :: 3.11',
401
404
  'Programming Language :: Python :: 3.12',
402
405
  'Programming Language :: Python :: 3.13',
406
+ 'Programming Language :: Python :: 3.14',
403
407
  'Operating System :: MacOS :: MacOS X',
404
408
  'Operating System :: Microsoft :: Windows',
405
409
  'Operating System :: POSIX :: BSD :: FreeBSD',
@@ -1,4 +0,0 @@
1
- [build-system]
2
- requires = [
3
- "setuptools", "wheel", "cython~=3.0.11",
4
- ]
File without changes
File without changes