FS#74044 - [python-pyglet] undefined symbol: av_frame_get_best_effort_timestamp

Attached to Project: Community Packages
Opened by Michel (xantares) - Sunday, 06 March 2022, 20:36 GMT
Last edited by Toolybird (Toolybird) - Saturday, 01 April 2023, 21:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

pyglet does not support ffmpeg 5.x yet

it can be linked to ffmpeg 4 in the mean time by forcing ffmpeg4.4 libs:


diff --git a/pyglet/media/codecs/ffmpeg_lib/libavcodec.py b/pyglet/media/codecs/ffmpeg_lib/libavcodec.py
index 5f1cc5e0..9d011b55 100644
--- a/pyglet/media/codecs/ffmpeg_lib/libavcodec.py
+++ b/pyglet/media/codecs/ffmpeg_lib/libavcodec.py
@@ -45,7 +45,7 @@ import pyglet.lib
from . import libavutil

avcodec = pyglet.lib.load_library(
- 'avcodec',
+ 'libavcodec.so.58',
win32='avcodec-58',
darwin='avcodec.58'
)
diff --git a/pyglet/media/codecs/ffmpeg_lib/libavformat.py b/pyglet/media/codecs/ffmpeg_lib/libavformat.py
index 2854b426..42453eda 100644
--- a/pyglet/media/codecs/ffmpeg_lib/libavformat.py
+++ b/pyglet/media/codecs/ffmpeg_lib/libavformat.py
@@ -46,7 +46,7 @@ from . import libavcodec
from . import libavutil

avformat = pyglet.lib.load_library(
- 'avformat',
+ 'libavformat.so.58',
win32='avformat-58',
darwin='avformat.58'
)
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 01 April 2023, 21:51 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Pkg dropped to the AUR
Comment by Michel (xantares) - Tuesday, 29 March 2022, 08:43 GMT
seems the newest version 1.5.23 fixes this
Comment by Michel (xantares) - Tuesday, 03 May 2022, 06:44 GMT
actually no, ffmpeg 5.x is only in the dev branch, we need to stick to ffmpeg 4
Comment by Michel (xantares) - Tuesday, 03 May 2022, 06:52 GMT
Comment by Michel (xantares) - Tuesday, 03 May 2022, 06:57 GMT
updated patch
Comment by Michel (xantares) - Tuesday, 03 May 2022, 07:30 GMT

Loading...