albfan / miraclecast

Connect external monitors to your system via Wifi-Display specification also known as Miracast
Other
3.66k stars 407 forks source link

[bug] gstplayer errors out on ChromeOS with Chromebrew #476

Open pinuke opened 1 year ago

pinuke commented 1 year ago

When running gstplayer, it errors out.

This is likely due to the lack of shared libraries that normally come with most desktop linux systems. Honestly, I'm just being hopeful that miraclecast works at all.

In theory it should. Chrome OS is just a stripped down version of Gentoo.

Firstly, it errors out on not finding python3 due to a bad python3 symlink in Chrome OS, which can be fixed by correcting the bad symlink:

command:

chronos@localhost ~ $ gstplayer --help

output:

bash: /usr/local/bin/gstplayer: /usr/bin/python3: bad interpreter: No such file or directory

current fix:

ln -s /usr/local/bin/python3 /usr/local/usr/bin/python3

Next Problem:

That seems to fix the majority of problems, but then it errors out on a missing shared library

(gst-plugin-scanner:12873): GStreamer-WARNING **: 01:49:38.987: Failed to load plugin '/usr/local/lib64/gstreamer-1.0/libgstchromaprint.so': libavcodec.so.58: cannot open shared object file: No such file or directory

Possible solution would be to recompile the ffmpeg shared library for it and install it on Chrome OS.

I'm currently exploring this as a solution on the Chromebrew issue

FWIW, I don't really think this is necessarily an issue with miraclecast, just with Linux systems that are minimal/stripped down such as Chrome OS

pinuke commented 1 year ago

@albfan Any thoughts on this? - Chromebrew PR