FDH2 / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.35k stars 72 forks source link

8 color mode #200

Closed reed123 closed 1 year ago

reed123 commented 1 year ago

System info: Intel 3xxx i7 AMD GPU Ubuntu Server 22.04.2

Problem: UxPlay only renders in 8 color mode when run from the console. This issue does not occur when X server is running.

Is there maybe a video sink argument I can use to force it to render with 256 color?

fduncanh commented 1 year ago

probably.

Does "-vs kmssink" work?

EDIT @reed123 yes it does (tested in ubuntu 22.04.1 console (tested with nvidia / nouveau graphics, though))

reed123 commented 1 year ago

Hi - thanks for the reply. That also doesn’t work - but it says “GStreamer encountered a general resource error” and never shows the stream. Do you have any other ideas? This will definitely help point me in the right direction alot though.

On Sat, May 27, 2023 at 10:01 PM fduncanh @.***> wrote:

probably.

Does "-vs kmssink" work?

— Reply to this email directly, view it on GitHub https://github.com/FDH2/UxPlay/issues/200#issuecomment-1565797305, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABT36XCN673SITCPJOA673LXIKWX7ANCNFSM6AAAAAAYRNP3QA . You are receiving this because you authored the thread.Message ID: @.***>

--

Reed Kemp @. @.>*

fduncanh commented 1 year ago

@reed123

It did work for me on ubuntu 22.04, after shutting down X11, the console graphics was a nvidia card with the nouveau driver.

It didnt work on openSUSE, where the console graphics was using the nvidia driver, and it didnt work on an AMD system with a radeon card.

So kmssink should in principle work (that's what get used on Raspberry Pi without X), but ...

try using "export GST_DEBUG=2" befor running uxplay (and then GST_DEBUG=4) to see if GStreamer messages give any clue

fduncanh commented 1 year ago

@reed123 I found that on OpenSUSE with nvidia graphics and nivdia drivers , -vs fbdevsink worked but the image was too big, so some width and height parameters need to be set. see

https://gstreamer.freedesktop.org/documentation/fbdevsink/index.html?gi-language=c#fbdevsink

another videosink for framebuffer video is -vs dfbvideosink https://gstreamer.freedesktop.org/documentation/directfb/index.html?gi-language=c#dfbvideosink

but it was missing on my systems

fduncanh commented 1 year ago

dfbvideosink uses "directfb"

dont know if it can work for you, through, seems to be aimed at R Pi now (after being dead for 10 years)

https://github.com/directfb2/

fduncanh commented 1 year ago

@reed123 Maybe you need some AMD GPU driver to use the kmssink framebuffer videosink?

https://www.amd.com/en/support/linux-drivers

Your issue is a GStreamer one to do with your graphics hardware, I think. Not sure I can help more.

fduncanh commented 1 year ago

closing (feel free to reopen or post more details of your attempts )