FDH2 / UxPlay

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

RPI Video Renderer #182

Closed hesa2020 closed 1 year ago

hesa2020 commented 1 year ago

Hello I am not getting any video output with gstreamer window I tried running this from SSH: gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink

And it returned: Could not open display (null)

I then did: export DISPLAY=:0.0

And then the test ran fine with a small window showing on the desktop, however when i try Uxplay with the following command:

./uxplay -n PiStreamer -v4l2 -rpiwl

I am not getting any video but I can hear the audio being streamed even tho it said:

Edit: I got it working with ./uxplay -n PiStreamer -avdec But its very choppy and I preferred how it was shown in RPIPlay with the screen centred and black background.

I tried adding audio part to RPIPlay on my fork and i can play sound without video but I can't play sound with video, I haven't figured out why yet.

fduncanh commented 1 year ago

Have you read the README? Its pretty detailed about what to do. Has Large "Troubleshooting" section. (this is for UxPlay, not RPiPlay, the two have diverged quite a lot).

which model RPi? which operating system ? 32 or 64 bit? if its not raspberry Pi OS (Bullseye), have you patched gstreamer-plugins-good? for hardware video decoding? (Only works for Raspberry Pi OS, Ubuntu and Manjaro which have the kernel module from R Pi.

with -avdec, software video decoding you also need -vsync option in UxPlay 1.63. Gives OK video with -vsync

For best perfomance you need to use hardware video decoding. Then you get really good video, at least on R PI 4 model B

see https://github.com/FDH2/UxPlay/wiki/Gstreamer-Video4Linux2-plugin-patches

fduncanh commented 1 year ago

Doesn't seem to be a UxPlay issue? (is it about backporting to RPiPlay?)