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/