antimof / UxPlay

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

How to watch the stream? #2

Closed malown closed 4 years ago

malown commented 4 years ago

I successfully compiled the program, got it running and connected my iPhone. However I can't find any info on how to watch the stream. Some additional steps on how to use the program in the README would be useful

scorpi11 commented 4 years ago

I successfully compiled the program, got it running and connected my iPhone. However I can't find any info on how to watch the stream. Some additional steps on how to use the program in the README would be useful

uxplay only works as a screen mirror, not like a general AirPlay video sink. For the latter, there is no free software as far as I know.

malown commented 4 years ago

Then how do you show the mirror on screen?

scorpi11 commented 4 years ago

It happens automatically as soon as you start screen mirroring.

malown commented 4 years ago

Oh, then it must be a bug, because I don‘t see anything. The program just says that a device connected and the iPhone shows that it is mirroring the screen

riseforrice commented 4 years ago

same issue here.... I cannot see anything on my ubuntu 20.02, but the log shows everything works fine.

rcampbel3 commented 4 years ago

same issue on Ubuntu Studio 19.10... compiles fine, I start it, can connect, I see messages about connection, but no video

**UPDATE: after I rebooted, upgraded my apps, and changed window managers and tried again, UxPlay worked! Awesome

wegank commented 4 years ago

UxPlay works after installing gst-libav. Tested on Arch.

nhusung commented 4 years ago

I had some trouble getting this work, too. I’m using Ubuntu 20.04 with nvidia drivers and somehow the autovideosink does not show any output. However, glimagesink is working fine for me. So I simply changed it here:

https://github.com/antimof/UxPlay/blob/ed96d3f095c32ef7021f1dc9e986e28891baab5d/renderers/video_renderer_gstreamer.c#L47

I guess this issue is more related to the gstreamer/system graphics configuration than this application. But my solution might be a ‘temporary’ fix for others, too.

antimof commented 4 years ago

Yes, there's a problem with Nvidia nvdec and decodebin. Comparing to other HW accelerated decoders like VAAPI, decodebin cant corectly hadle nvdec and autovideosink combination. The only way to go is to add glimagesink to gstreamer pipelene manualy, as you did.

christianknauer commented 4 years ago

Building was flawless, but for me no output was shown on a Lenovo X1 Carbon (Intel UHD 620) running Ubuntu 20 until I installed all of gstreamer as described, e.g., on https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c

Now everything works as advertised. Great work, much appreciated!

malown commented 4 years ago

See the comment above this for a fix

thalesmaoa commented 4 years ago

I had some trouble getting this work, too. I’m using Ubuntu 20.04 with nvidia drivers and somehow the autovideosink does not show any output. However, glimagesink is working fine for me. So I simply changed it here:

https://github.com/antimof/UxPlay/blob/ed96d3f095c32ef7021f1dc9e986e28891baab5d/renderers/video_renderer_gstreamer.c#L47

I guess this issue is more related to the gstreamer/system graphics configuration than this application. But my solution might be a ‘temporary’ fix for others, too.

I did as you suggested:

"queue ! decodebin ! videoconvert ! glimagesink name=video_sink sync=false", &error); 

But I get no output window.

nhusung commented 4 years ago

But I get no output window.

Did you start the screen sharing on your mobile device? At least in my setup the window does not appear until then.

thalesmaoa commented 4 years ago

Yes! I did!

I can get it working now:

  1. Debug using GST_DEBUG=3 ./uxplay
  2. It was claiming of missing H264 plugin.
  3. sudo apt install libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg
jeremy9959 commented 4 years ago

I made the glimagesink change as above, and I get a window mirroring my iphone, but the graphics are garbled. I do have an NVIDIA video card in this machine.

nhusung commented 4 years ago

I made the glimagesink change as above, and I get a window mirroring my iphone, but the graphics are garbled. I do have an NVIDIA video card in this machine.

I experienced some artifacts directly after establishing the connection as well. For me, it helped to rotate my iPad back and forth once as each rotation changes the resolution of the video stream. After that, everything worked reliably.

jeremy9959 commented 4 years ago

No luck, alas.

-- Jeremy Teitelbaum, Ph.D. Professor of Mathematics University of Connecticut 341 Mansfield Road U-1009 Storrs, Connecticut 06269-1009 jeremy.teitelbaum@uconn.edu http://teitelbaum.math.uconn.edu


From: Nils Husung notifications@github.com Sent: Tuesday, August 18, 2020 12:50 AM To: antimof/UxPlay UxPlay@noreply.github.com Cc: Teitelbaum, Jeremy jeremy.teitelbaum@uconn.edu; Comment comment@noreply.github.com Subject: Re: [antimof/UxPlay] How to watch the stream? (#2)

Message sent from a system outside of UConn.

I made the glimagesink change as above, and I get a window mirroring my iphone, but the graphics are garbled. I do have an NVIDIA video card in this machine.

I experienced some artifacts directly after establishing the connection as well. For me, it helped to rotate my iPad back and forth once as each rotation changes the resolution of the video stream. After that, everything worked reliably.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fantimof%2FUxPlay%2Fissues%2F2%23issuecomment-675247219&data=02%7C01%7Cjeremy.teitelbaum%40uconn.edu%7C3dcf746922074d4cefbf08d843322f50%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C0%7C637333230115921933&sdata=0mllEUDiJnEafxpYKpgIBsb8ywfdaViQpyt89G36tPc%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACZK4KOZ5QBMGDDWVT2NNFTSBICADANCNFSM4MNNFLSA&data=02%7C01%7Cjeremy.teitelbaum%40uconn.edu%7C3dcf746922074d4cefbf08d843322f50%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C0%7C637333230115921933&sdata=JEwnFzJNc6sqTEG4rGJ09r%2FQ9lEPrhptcviMRCYfWb4%3D&reserved=0.

littlewu2508 commented 4 years ago

I'm using kUbuntu 20.10 (groovy, development); one month ago everything about uxplay goes fine after sudo apt install libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg, but recently some packages updated, and uxplay cannot display the stream. Also libdvdread4 has no installation candidate

Here's my package versions of libdvd* :

ii  libdvd-pkg                                     1.4.2-1-1                                   all          DVD-Video playing library - installer
ii  libdvdcss-dev:amd64                            1.4.2-1~local                               amd64        library for accessing encrypted DVDs - development files
ii  libdvdcss2:amd64                               1.4.2-1~local                               amd64        library for accessing encrypted DVDs
ii  libdvdnav4:amd64                               6.1.0-1build1                               amd64        DVD navigation library
ii  libdvdread-dev:amd64                           6.1.1-2                                     amd64        library for reading DVDs (development)
MartinPilu commented 2 years ago

got nvidia card, for me the fix was to remove vaapi sudo apt-get remove gstreamer1.0-vaapi