FDH2 / UxPlay

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

GStreamer error: GStreamer encountered a general resource error. #17

Closed trungus closed 2 years ago

trungus commented 3 years ago

Hi guys

I'm triyng to use this incredible project in my old Toshiba C845.

The machine use Nitrux OS 1.6.1, KDE 5.22.5 and Wayland (so far I get the same error with X11), you can see the complete release notes here.

Here is the log

>./uxplay -d
Initialized server socket(s)
Accepted IPv4 client on socket 29
Local: 192.168.100.72
Remote: 192.168.100.14
Open connections: 1
httpd receiving on socket 29
conn_request
Handling request GET with URL /info
INFO len = 511686756
httpd receiving on socket 29
conn_request
Handling request POST with URL /pair-setup
httpd receiving on socket 29
conn_request
Handling request POST with URL /pair-verify
httpd receiving on socket 29
conn_request
Handling request POST with URL /pair-verify
httpd receiving on socket 29
conn_request
Handling request POST with URL /fp-setup
httpd receiving on socket 29
conn_request
Handling request POST with URL /fp-setup
httpd receiving on socket 29
conn_request
Handling request SETUP with URL rtsp://192.168.100.72/12281695283857607771
DACP-ID: C08112678A645905
Active-Remote: 2973092858
Transport: null
SETUP 1
eiv_len = 16
ekey_len = 72
fairplay_decrypt ret = 0
timing_rport = 51562
raop_ntp parse remote ip = 192.168.100.14
raop_ntp starting time
raop_ntp local timing port socket 31 port UDP 59109
raop_rtp parse remote ip = 192.168.100.14
raop_rtp_mirror parse remote ip = 192.168.100.14
eport = 38505, tport = 59109
raop_ntp send_len = 32
raop_ntp receive time type_t packetlen = 32
raop_ntp sync correction = -1633355484039148
Accepted IPv4 client on socket 32
Local: 192.168.100.72
Remote: 192.168.100.14
Open connections: 2
httpd receiving on socket 29
conn_request
Handling request GET with URL /info
INFO len = 511686756
httpd receiving on socket 29
conn_request
Handling request GET_PARAMETER with URL rtsp://192.168.100.72/12281695283857607771
httpd receiving on socket 29
conn_request
Handling request RECORD with URL rtsp://192.168.100.72/12281695283857607771
raop_handler_record
httpd receiving on socket 29
conn_request
Handling request SET_PARAMETER with URL rtsp://192.168.100.72/12281695283857607771
httpd receiving on socket 29
conn_request
Handling request SETUP with URL rtsp://192.168.100.72/12281695283857607771
DACP-ID: C08112678A645905
Active-Remote: 2973092858
Transport: null
type = 110
streamConnectionID = 7038138042667847646
raop_rtp_mirror starting mirroring
raop_rtp_mirror local data port socket 33 port TCP 35331
Mirroring initialized successfully
raop_rtp_mirror accepting client
raop_rtp_mirror width_source = 608.000000 height_source = 1080.000000 width = 608.000000 height = 1080.000000
raop_rtp_mirror sps size = 17
raop_rtp_mirror pps size = 4
raop_rtp_mirror video ntp = 1633401082400163, now = 1633401082343811, latency = -56352
raop_rtp_mirror video ntp = 1633401082416829, now = 1633401082349601, latency = -67228
raop_rtp_mirror video ntp = 1633401082466838, now = 1633401082365292, latency = -101546
raop_rtp_mirror video ntp = 1633401082500179, now = 1633401082397554, latency = -102625
raop_rtp_mirror video ntp = 1633401082533510, now = 1633401082436430, latency = -97080
raop_rtp_mirror video ntp = 1633401082566848, now = 1633401082466260, latency = -100588
raop_rtp_mirror video ntp = 1633401082600185, now = 1633401082497924, latency = -102261
raop_rtp_mirror video ntp = 1633401082633515, now = 1633401082543668, latency = -89847
raop_rtp_mirror video ntp = 1633401082666851, now = 1633401082573901, latency = -92950
raop_rtp_mirror video ntp = 1633401082700190, now = 1633401082618073, latency = -82117
GStreamer error: GStreamer encountered a general resource error.
Re-launching server...
raop_rtp_mirror video ntp = 1633401082733521, now = 1633401082713219, latency = -20302
raop_rtp_mirror video ntp = 1633401082766854, now = 1633401082717303, latency = -49551
raop_rtp_mirror video ntp = 1633401082800187, now = 1633401082735017, latency = -65170
raop_rtp_mirror video ntp = 1633401082833521, now = 1633401082766942, latency = -66579
raop_rtp_mirror video ntp = 1633401082866854, now = 1633401082815581, latency = -51273
Removing connection for socket 29
Destroying connection
Open connections: 1
raop_ntp stopping time thread
raop_ntp exiting thread
raop_ntp stopped time thread
raop_rtp_mirror exiting TCP thread
Removing connection for socket 32
Destroying connection
Open connections: 0
Exiting HTTP thread
Initialized server socket(s)

I have this libraries installed (Gstreamer)

gir1.2-gst-plugins-base-1.0:amd64
gir1.2-gstreamer-1.0:amd64
gstreamer1.0-alsa:amd64
gstreamer1.0-libav:amd64
gstreamer1.0-plugins-bad:amd64
gstreamer1.0-plugins-base:amd64
gstreamer1.0-plugins-good:amd64
gstreamer1.0-plugins-ugly:amd64
gstreamer1.0-pulseaudio:amd64
gstreamer1.0-qt5:amd64
gstreamer1.0-vaapi:amd64
libgstreamer-gl1.0-0:amd64
libgstreamer-plugins-bad1.0-0:amd64
libgstreamer-plugins-base1.0-0:amd64
libgstreamer-plugins-base1.0-dev:amd64
libgstreamer1.0-0:amd64
libgstreamer1.0-dev:amd64
libqt5multimediagsttools5:amd64
phonon-backend-gstreamer
phonon-backend-gstreamer-common:amd64
phonon4qt5-backend-gstreamer:amd64

So far I have the same version of UxPlay in my Lenovo T430 with MX 19.04 (X11+XFCE) and work like a charm.

Somebody can help me?

Best Regards and Thank you in advance

fduncanh commented 3 years ago

Its a GStreamer problem

try "uxplay -vs ximagesink"

If you have nVidia graphics the gstreamer vaapi plugin should be uninstalled

trungus commented 2 years ago

Hi @fduncanh

Thank for your answer, I resolve the problem installing the package gstreamer1.0-x

Now work like a charm, thank you a lot