Skip to content

Termux: CANNOT LINK EXECUTABLE "ffmpeg": cannot locate symbol "eglDestroySyncKHR" referenced by "/system/lib64/libgui.so" #1

@Benjamin-Loison

Description

@Benjamin-Loison
liveStreamUrl = execute('yt-dlp -f hls-657 -g https://www.bfmtv.com/en-direct/')
try:
    out, err = (
        ffmpeg
        .input(liveStreamUrl)
        .output('pipe:', vframes=1, format='image2')
        .run(capture_stdout=True, capture_stderr=True)
    )
except ffmpeg.Error as e:
    print(e)
    print(e.stdout)
    print(e.stderr)
ffmpeg error (see stderr output for detail)
b''
b'CANNOT LINK EXECUTABLE "ffmpeg": cannot locate symbol "eglDestroySyncKHR" referenced by "/system/lib64/libgui.so"...\n'

Have not found any issue or pull request from forked repository mentioning Termux.
Note that native Termux works fine. What does it mean? If I remember correctly it is a question of env. Using ffmpeg as a shell command in Python script with unset LD_LIBRARY_PATH && before solves the issue.

https://www.reddit.com/r/termux/comments/14z3ysd/running_ffmpeg_directly_via_terminal_worked_but/

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions