jezzipin
Posts: 3
Joined: Mon May 11, 2015 5:59 pm

Re: Moonlight Embedded

Mon May 11, 2015 6:03 pm

Hi all,

I've managed to install this today on Raspbian on my Pi Model B.
The only issues I have is my audio keeps skipping so one minute it comes through then quiet, rinse and repeat.
I also tried playing a game (Shadow of Mordor) with my keyboard attached to the Pi and it's fine when I'm navigating the Steam menu or the in-game menu however when I get into the gameplay the camera just keeps spinning around and around.

Any ideas how to fix these issues?
My audio is hooked up directly to my TV via HDMI.

Cheers,

Jezzipin

UKZz HELLRAISER
Posts: 6
Joined: Thu Apr 23, 2015 8:25 pm

Re: Moonlight Embedded

Mon May 11, 2015 7:51 pm

The spinning camera makes me think Moonlight thinks there's a controller connected.

jezzipin
Posts: 3
Joined: Mon May 11, 2015 5:59 pm

Re: Moonlight Embedded

Mon May 11, 2015 8:57 pm

Well I did try it with a DS4 controller at first and then a keyboard after a restart.

UKZz HELLRAISER
Posts: 6
Joined: Thu Apr 23, 2015 8:25 pm

Re: Moonlight Embedded

Mon May 11, 2015 9:13 pm

Try killing the driver, if you know the name of it, and it's running.

Firestorm185
Posts: 6
Joined: Wed May 13, 2015 1:26 am

Re: Limelight Pi

Wed May 13, 2015 10:43 am

irtimmer wrote:
ferjeezy wrote:Works very well over LAN for me with composite video. One thing I've thought is really cool is the proxy method that was used here: http://forum.xda-developers.com/showthr ... ?t=2435481

Does anyone know how we could go about implementing this for gaming on a seperate network?
As Limelight Pi doesn't use mDNS and don't care about incoming port their is no need for a proxy server and it should just work from a seperate network as long as the ports are not blocked.
Hey Irtimmer! So I've been trying to do the same thing he was, connect to my computer with the pi to play games from somewhere else. I've paired my pi to my pc like the program said to, but how would one go about reaching a pc that was on another network? Do you have to unblock the ports to get in? I'm just a little confused since the IP address I used was for my home network. ( If you can't tell, I'm a little new to all this) thanks and have an awesome day!

Myke
Posts: 13
Joined: Fri Feb 27, 2015 6:54 pm

Re: Moonlight Embedded

Fri May 15, 2015 12:09 pm

A warning: yesterday I did a sudo apt-get upgrade to update my raspbian system. However, it broke my streaming setup (GFE 2.1.3, limelight 1.2.2)!
Problems occuring after the update: Sound was stuttering extremely (unplayable) and I got multiple messages "SEVERE: error code during decode -6" during playing. While the video stream seemed to be ok, this has NEVER happened before.

I managed to find the offending packages (excerpt from my apt-get history):

Code: Select all

Start-Date: 2015-05-14  16:59:42
Commandline: apt-get upgrade
Upgrade: libraspberrypi0:armhf (1.20150214-2, 1.20150421-1), raspberrypi-bootloader:armhf (1.20150214-2, 1.20150421-1), libraspberrypi-bin:armhf (1.20150214-2, 1.20150421-1), libraspberrypi-dev:armhf (1.20150214-2, 1.20150421-1), libraspberrypi-doc:armhf (1.20150214-2, 1.20150421-1)
End-Date: 2015-05-14  17:02:17
Downgrading them to the old versions manually seems to fix the problem.

Anyone else noticed that?

AmigaGamer
Posts: 90
Joined: Sat Feb 01, 2014 9:02 pm

Re: Moonlight Embedded

Fri May 15, 2015 6:09 pm

Same problem here as myke (audio) on Rpi1 with latest kernel.
I havent tested on my PI2 in fear it will ruin my Project CARS session tonight ...

User avatar
ScoobyDoo
Posts: 108
Joined: Wed Apr 04, 2012 2:52 pm
Location: Staffordshire, UK

Re: Limelight Pi

Fri May 15, 2015 6:23 pm

JRJoe wrote:Hi,



Second thing is, my Xbox controller has some weird behaviour. The D-Pad directions are switched (left is up etc..) and the Triggers do not work sometimes. I installed the latest xboxdrv but it did not change anything. Ideas?

Joe
This method fixed my problems with my xbox controller, dpad and triggers all work fine.


https://github.com/petrockblog/RetroPie ... controller

Use option 3 and then use this mapping file..

#Gamepad
#Wed Jan 14 22:35:46 CET 2015
reverse_y=false
reverse_x=false
abs_ry=4
btn_dpad_right=297
abs_rx=3
btn_start=315
btn_tl2=310
btn_select=314
btn_tr2=311
btn_west=307
btn_east=305
btn_tr=313
btn_south=304
btn_dpad_left=296
btn_mode=316
btn_tl=312
btn_thumbr=318
btn_dpad_up=294
btn_north=308
btn_dpad_down=295
abs_y=1
abs_x=0
btn_thumbl=317
reverse_ry=false
reverse_rx=false

User avatar
ScoobyDoo
Posts: 108
Joined: Wed Apr 04, 2012 2:52 pm
Location: Staffordshire, UK

Re: Moonlight Embedded

Fri May 15, 2015 6:24 pm

AmigaGamer wrote:Same problem here as myke (audio) on Rpi1 with latest kernel.
I havent tested on my PI2 in fear it will ruin my Project CARS session tonight ...
Im currently using

RASPBIAN
Debian Wheezy
Release date:2015-05-05
Default login:pi / raspberry
Kernel version:3.18

but havent done an update on this.
The above is working fine on my pi2.

jezzipin
Posts: 3
Joined: Mon May 11, 2015 5:59 pm

Re: Moonlight Embedded

Fri May 15, 2015 7:42 pm

How do I downgrade the drivers mentioned above? I think this might be why my audio is stuttering..

Myke
Posts: 13
Joined: Fri Feb 27, 2015 6:54 pm

Re: Moonlight Embedded

Mon May 18, 2015 6:51 pm

jezzipin wrote:How do I downgrade the drivers mentioned above? I think this might be why my audio is stuttering..
Disclaimer: I'm no expert on this - so it might be a bad idea to do it, depending on your setup, and it certainly is not the only way to do it...

What I did, I simply downloaded the old version debian packages (be very careful to choose the right architecture and version) from http://archive.raspberrypi.org/debian/pool/main/ and installed them one by one using
sudo dpkg -i inserfilenamehere.deb

When you do this, you need to keep the right order of installation in mind, since the packages depend on each other. E.g. in my case, I had to install the bootloader first, then libraspberrypi0, then the rest. Dpkg tells you, when it can't install something because dependencies are not met, so you should be able to work out the right order for your case.

I'd love to have an automated way to roll-back an apt-get upgrade but as it seems there is no canonical way to do this (and usually it is not required anyway). Hope this helps.

User avatar
Lombra
Posts: 67
Joined: Tue Sep 16, 2014 12:41 am
Location: Sweden

Re: Moonlight Embedded

Wed May 27, 2015 12:23 pm

After going through various hoops to get a PS3 controller working (it didn't), I instead installed xboxdrv to emulate an Xbox controller, which will be basically required anyway. I didn't undo any of the PS3 things I did, so I'm not sure if that's interfering somehow.

I followed this guide at first:
http://embedded-software-architecture.com/?page_id=147
But the Limelight mapping tool would not recognise any input.

After setting xboxdrv up though, the mapping tool did recognise the input, but it still wouldn't work while streaming. At least, not in Steam big picture mode, nor the game I then launched. I did launch Limelight with the mapping argument.

Anyone had this?

sc0repi0
Posts: 1
Joined: Sun May 31, 2015 12:39 pm

Re: Moonlight Embedded

Sun May 31, 2015 2:43 pm

I just bought an RPi2 and Limelight works very well. Thanks, it's awesome! :)

I have a problem though. When I start
>java -jar limelight.jar stream -1080 -60fps 192.168.178.32 -app Witcher3
I only get menu and cutscene audio. The picture lags slightly and the quality is choppy.

When I start
>java -jar limelight.jar stream -1080 -60fps 192.168.178.32 -app Witcher3 -localaudio
the audio works fine everywhere, although the quality is not better.

Now I tried
>java -jar limelight.jar stream -1080 -60fps 192.168.178.32 -app steam
and I added Witcher3 as non-steam game. The steam menu has audio. If I start TheWitcher3,
the picture is lagfree and has a good quality, but then again there is only audio in the menu and the cutscenes.

>java -jar limelight.jar stream -1080 -60fps 192.168.178.32 -app steam -localaudio
doesn't change anything this time.

Can somebody point out the problem here, because I don't get it to be honest. I also found this on the gamestream forums:
https://forums.geforce.com/default/topi ... -scenes/9/
So there seems to be a problem with Shield and the audio of Witcher 3.

But why am I able to get audio via -localaudio with gamestream Witcher3, but not with steam?

-v on Pastebin: http://pastebin.com/qisRSVJF

krazypoloc
Posts: 2
Joined: Mon Jun 08, 2015 12:49 am

Re: Moonlight Embedded

Mon Jun 08, 2015 1:08 am

I'm also not getting any audio over HDMI. I can add some variety to the mix. Details of my configuration are below.

Rasplex 0.6.0 (Openelec)
java version "1.8.0_33"
Java(TM) SE Runtime Environment (build 1.8.0_33-b05)
Java HotSpot(TM) Client VM (build 25.33-b05, mixed mode)
limelight 1.2.2 with matching libopus release

This is my command to launch limelight
#java -jar limelight.jar stream limelight -input /dev/input/event0 -720

This is the error I'm getting.

Code: Select all

com.limelight.nvstream.av.audio.AudioStream$1.run(Unknown Source)
Here is my confit.txt
http://pastie.org/private/wsjxupkljojm2bezkxsyw

I've tried GTAV, Project Cars, and Broforce all through Steam with no audio outputting in the Steam menus or in-game.

I'll try and launch one of them with the -app command and report back with my findings.

Its also worth noting that this is the first time I've tried this so I'm also going to attempt to downgrade limelight to a previous version.

UPDATE:I've opened a support case with the project that can be viewed here.
https://github.com/irtimmer/moonlight-e ... issues/131

krazypoloc
Posts: 2
Joined: Mon Jun 08, 2015 12:49 am

Re: Moonlight Embedded

Wed Jun 10, 2015 1:14 pm

For all those that are not getting audio over HDMI with a RPi or RPi2 you need to load the kernel module.

You can reference that here.
https://github.com/irtimmer/moonlight-e ... issues/131

And for more detail I just did the below to load the drivers into the kernel.

#modprobe snd_bcm2835

Myke
Posts: 13
Joined: Fri Feb 27, 2015 6:54 pm

Re: Moonlight Embedded

Mon Jun 15, 2015 4:59 pm

A new version has been launched, based entirely on C.

Does anyone have experiences with that one already? Also, I can use both versions along side each other, right (just in case the new one is not as stable)?

AmigaGamer
Posts: 90
Joined: Sat Feb 01, 2014 9:02 pm

Re: Moonlight Embedded

Mon Jun 15, 2015 5:11 pm

Myke,

ive been experimenting with the new version, as you mentioned its rewritten in C. Its definitely faster loading (as your not launching Java each time). I had some problems with my limelight controller mappings so had to create new ones. There was also a few issues with the makefile, which are discussed at https://github.com/irtimmer/moonlight-e ... issues/104 and fixed in a fork by 7thunderbug. I run at 720p on a PI2 (which was more than adequate for the java version) so i havent noticed any major difference in streaming once the softwares up and running. Perhaps it will be a noticeable improvement on PI1 or at 1080/30

If your comfortable compiling software thats a good place to start. Hopefully there will be an official binary release of it soon though!

benjimaestro
Posts: 44
Joined: Thu Jun 04, 2015 8:04 pm
Location: UK
Contact: Website

Re: Moonlight Embedded

Mon Jun 15, 2015 8:07 pm

Hey, I was wondering if it were possible to run this with Python? Eg, have the equivalent of

Code: Select all

java -jar /home/pi/Desktop/limelight.jar stream -app Steam -notest 192.168.1.100
but have a Python script to do this? I have been trying for ages and I need some noob-friendly help :(

User avatar
Lombra
Posts: 67
Joined: Tue Sep 16, 2014 12:41 am
Location: Sweden

Re: Moonlight Embedded

Wed Jun 17, 2015 11:08 am

There's a new "release" on Github for the C implementation, but it doesn't actually have any binaries?

benjimaestro
Posts: 44
Joined: Thu Jun 04, 2015 8:04 pm
Location: UK
Contact: Website

Re: Moonlight Embedded

Wed Jun 17, 2015 2:39 pm

Lombra wrote:There's a new "release" on Github for the C implementation, but it doesn't actually have any binaries?
Yeah, how do you get the C version working? There are no decent instructions and I'm no Linux pro.
Please do a step by step guide on compilation and installation as well as running it.

Myke
Posts: 13
Joined: Fri Feb 27, 2015 6:54 pm

Re: Moonlight Embedded

Wed Jun 17, 2015 6:25 pm

AmigaGamer, thanks for the information. I had actually hoped that streaming performance might improve somehow - but just as you do, I have been running 720p @ 30fps so far, so I probably won't notice anything there either.
For me it's the question whether or not the "hassle" of compilation is worth it...I''ve got only little experience in compiling myself so I guess I'd rather wait for an official binary release.

rewind22x
Posts: 1
Joined: Fri Jun 19, 2015 9:09 pm

Re: Moonlight Embedded

Fri Jun 19, 2015 9:11 pm

benjimaestro wrote:
Lombra wrote:There's a new "release" on Github for the C implementation, but it doesn't actually have any binaries?
Yeah, how do you get the C version working? There are no decent instructions and I'm no Linux pro.
Please do a step by step guide on compilation and installation as well as running it.
Found this today:

http://www.instructables.com/id/Stream- ... erry-Pi-2/

Seems to work for me. Good Luck!

adcooney
Posts: 23
Joined: Sat Jun 20, 2015 6:04 pm

Re: Moonlight Embedded

Sat Jun 20, 2015 6:07 pm

Hi I have also been setting up Moonlight and integrating it into RetroPie/emulationstation.

I was wondering if there is any way of automatically pairing with a device (perhaps from a whitelist of IPs) so that I can remove this step of the process? I have tried searching but haven't yet found out if this is possible (apologies if it is glaringly obvious) so I am not sure if it is even possible.

adcooney
Posts: 23
Joined: Sat Jun 20, 2015 6:04 pm

Re: Moonlight Embedded

Sun Jun 21, 2015 3:58 pm

Incidentally since posting the above I haven't had to 'pair' my Pi once even after not playing it for over 12 hours so perhaps it already has some mechanism to do this.

User avatar
Lombra
Posts: 67
Joined: Tue Sep 16, 2014 12:41 am
Location: Sweden

Re: Moonlight Embedded

Sun Jun 21, 2015 9:57 pm

adcooney wrote:Incidentally since posting the above I haven't had to 'pair' my Pi once even after not playing it for over 12 hours so perhaps it already has some mechanism to do this.
You should only ever have to pair once, and that's the behaviour I've witnessed since I started using it.

Return to “Gaming”