Git Product home page Git Product logo

vita-moonlight's Introduction

Vita Moonlight

This is a vita port of Moonlight Embedded. Moonlight is an open source implementation of NVIDIA GameStream.

Documentation

More information can find moonlight-docs, moonlight-embedded, and our wiki. If you need more help, join the #vita-help channel in discord.

Build deps

You can install build dependencies with vdpm.

Build Moonlight

# if you do git pull, make sure submodules are updated first
git submodule update --init
mkdir build && cd build
cmake ..
make

Assets

See also

Moonlight-common-c is the shared codebase between different Moonlight implementations

Contribute

  1. Fork us
  2. Write code
  3. Send Pull Requests

vita-moonlight's People

Contributors

areascout avatar cgutman avatar d3m3vilurr avatar dead avatar fabioneves avatar fewnity avatar hhromic avatar irtimmer avatar isoron avatar kiralycraft avatar makisekurisu avatar mariotaku avatar migs3 avatar runoshun avatar sauyon avatar sonicmastr avatar xyzz avatar yuntiancherry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vita-moonlight's Issues

It seems that vita.conf didn't work while I change key code for LT(L2) RT(R2)

Please provide the following info.

**_NVidia Geforce Experience version:it's ok
**Moonlight Embedded version:0.12
Moonlight Embedded running on: Raspberry Pi/Cubox-i/Hummingboard/Other linux device/...

Output of Moonlight Embedded:

**What is the expected result?with front touchpad mapped with NW to L3,NE to R3,SW to L1,SE to R1.And L2(LT) R2(RT) mapped to shoulder buttons on psvita

**What happens instead of that?vita.conf seems didn't work.
vita.conf file by default:

LB

btn_thumbl = 300400

RB

btn_thumbr = 300800

LT

btn_tl = 500001

RT

btn_tr = 500002

LS

btn_tl2 = 500004

RS

btn_tr2 = 500008

vita.conf file by modified:

LB

btn_thumbl = 500010

RB

btn_thumbr = 500020

LT

btn_tl = 300400

RT

btn_tr = 300800

LS

btn_tl2 = 500040

RS

btn_tr2 = 500080

other key code unchanged!

and I Hope may change stream pause button to long press start or select?

Moonlight not working with Geforce Experience 3.x

Please provide the following info.

NVidia Geforce Experience version: 3.xx
Moonlight Embedded version: 2.28
Moonlight Embedded running on: Playstation Vita

Output of Moonlight Embedded: Nothing. You can hear sound if you move on the PC, but picture and input don't work.

What is the expected result? A working stream.

I'm assuming that either this port or moonlight itself may not yet be compatible. Just creating this issue so it stays documented for further reference.

Downgraded GFE to 2.x and it works just fine.

Vita Guaranteed Crash

Please provide the following info.
NVidia Geforce Experience version:
2.11.4.1
Moonlight Embedded version:
Vita Alpha 4
Moonlight Embedded running on: Raspberry Pi/Cubox-i/Hummingboard/Other linux device/...
Vita
Output of Moonlight Embedded:
960x544@60, 5000kbps
How to reproduce
Start a stream, open the GUI menu (default tap top left corner of touch screen), press circle, then select Resume from that menu
What is the expected result?
Resuming stream
What happens instead of that?
Hard system crash (Vita encountered an error, shuts down with the [*********] progress bar)

Failed to start stream: error code -1

Please provide the following info.

NVidia Geforce Experience version: 2.2.3
Moonlight Embedded version: 0.1.0
Moonlight Embedded running on: Vita, iOS 10

Output of Moonlight Embedded:

What is the expected result?
Stream starting
What happens instead of that?
Failed to start stream: error code -1
failed stage: rtsp handshake
(Error code -1)

First of I have to use a old version of GeForce experience since my gt650m is not supported native.
So i use a modified version 2.2.3
With moonlight Alpha 6 while installing everything i got a connection with my vita and it worked.
Since 0.1.0 I get the error above, and when i downgrade to Alpha 6I also get the error message.
I have also installed moonlight on my iPad and it's connecting just fine no error. So I have to assume that's a problem with the vita version of moonlight.

I really hope someone can help me find the problem.

Disconnect from server

Last develop branch, sometimes disconnect from server.

In log messages, AudioStream and VideoStream raised socket error (code number is 55)
(This error code is ENOBUFS)

...
20170507 00:17:53.632508 Video Receive: recvUdpSocket() failed: 55
20170507 00:17:53.632508 Audio Receive: recvUdpSocket() failed: 55
...

Embedded 2.2.2, 0 understanding, pls help

NVidia Geforce Experience 3.0.7
Moonlight Alpha 4
Moonlight Embedded running on: Vita

Output of Moonlight Embedded:
Using 720p both on vita and in system

What is the expected result?
Normal pairing, video and audio

What happens instead of that?
Black screen, no moving, no sound. Was told ver 2.2.2 fix some bugs, but im 0 in programming, need fixed vpk file

Black screen but sound working

Moonlight seems to work fine , sound and input works , i can see my game on the PC screen but NOT on the vita , no idea for this :/

__NVidia Geforce Experience version: 3.0.5.22
*Moonlight Embedded version: alpha 4
*_Moonlight Embedded running on: Vita

error code -1

Please provide the following info.

**NVidia Geforce Experience version:**3.0.5.22
**Moonlight Embedded version:**v4
Moonlight Embedded running on: Raspberry Pi/Cubox-i/Hummingboard/Other linux device/...
psv and my PC is window 10
**Output of Moonlight Embedded:**failed with a error information

**What is the expected result?**the game steaming on the psv successful

**What happens instead of that?**it said:Failed to start stream:error code -1 Failed stage:RTSP handshake (error code -1)

No video with GeForce Experience 3.0.7

NVIDIA made a breaking change in the video frame header format in GeForce Experience 3.0.7 that causes devices to fail to decode the video stream.

I have fixed the issue upstream in moonlight-common-c: moonlight-stream/moonlight-common-c@bd82577

But it comes with a breaking API change that needs some slight modifications to the client to directly pass the 'appversion' string unmodified from the serverinfo query rather than just the major version number.

You may find these changes helpful to show how Moonlight iOS and Chrome were updated to the newer API:
moonlight-stream/moonlight-ios@23564a3
moonlight-stream/moonlight-chrome@ee5ee58

Crash on start: Error C1-9649-8

NVidia Geforce Experience version: 3.2.0.96
Moonlight version: 0.1.2
Output of Moonlight Embedded: Error C1-9649-8

Tried uninstalling everything including data, tried updating over a running version (albeit the version was running without a picture because of geforce experience :) ). Tried turning it off and on again.

RTSP handshake (error code 9) (solved?)

Please provide the following info.

NVidia Geforce Experience version: 2.4.5.28
Moonlight Embedded version: alpha4/alpha3
Moonlight Embedded running on: PSVITA

Output of Moonlight Embedded: Failed to start stream: error code 9. Failed stage: RTSP handshake (error code 9)

What is the expected result? Start of GameStream

What happens instead of that? The Game starts only on the Pc. No Problems with Android so far.

Configure controls

I have a hori case for my vita and i'd like to configure the l2\r2\l3\r3 buttons on the back screen for moonlight

how do i do this?

Pairing fails instantly.

NVidia Geforce Experience version: 3.0.7.34
Moonlight Embedded version: 2.2.0 (VITA)
Moonlight Embedded running on: PS VITA PCH-1001

Output of Moonlight Embedded: 960x544 60FPS 5000

What is the expected result?
Having just installed the newest 5th alpha, I attempted to pair my device and stream.

What happens instead of that?
As soon as I attempt to pair, it tells me the code to input to the target PC, then immediately tells me that pairing failed. The error messages itself says "Pairing Failed: -1". The window to input the device code on the PC never shows up either.

No sound when using PSTV

NVidia Geforce Experience version: 3.1.0.52
Moonlight Embedded version: 0.1.0
Moonlight Embedded running on: Vita (PSTV)

Output of Moonlight Embedded:
HDMI to TV from PSTV
What is the expected result?
Playing God Eater Rage Burst (Steam) with sound.
What happens instead of that?
There was picture, but no sound on the TV screen, only sound from my PC speakers. I tried to increase the TV volume to max but couldn't hear anything . Though when I return to the Live Area and play other games there is sound from my TV.

Stream freezing then unable to re-enter.

Please provide the following info.

__NVidia Geforce Experience version:_3.0.7
*Moonlight Embedded version: Alpha 5&6
*_Moonlight Embedded running on: PS Vita

Output of Moonlight Embedded:

What is the expected result? Stream freezes and so I exit and am able to sesume.

**What happens instead of that?**Stream freezes and when I attempt to resume all I get is video and input does not work.

Steam recognises multiple Generic X input controllers, 4 button presses at once.

Nvidia Geforce Experience 3.2.2.49

Using the new steam Beta that allows controller profiles and remapping (like Xpadder, joy to key etc) I see that Steam recognises 4 generic x-input controllers when connected via vita moonlight. also when pressing any vita button (eg directions) it pushes that control 4 times, which makes navigating and accepting functions impossible, let alone gaming.

Is this a config issue, a moonlight issue or a geforce issue, the same happens if I use the steam release stable version,

Really looking forward to a working vita moonlight set up soon thanks

Seems to be affecting more than just Vita Moonlight moonlight-stream/moonlight-ios#264

Adding the regular keyboard to the "Enter IP" screen

I use a dynamic dns that uses an alphanumeric address to hook my other uses of moonlight. Is there any way to have the regular keyboard come up during the connect to screen?

Or a way to manually add the server like before?

*__NVidia Geforce Experience version: 3.0.5.22
*_Moonlight Embedded version: alpha 4
**Moonlight Embedded running on: Vita

error (C2-12828-1) when clicking o to start

Please provide the following info.

NVidia Geforce Experience version: 3.0.5.22
Moonlight Embedded version: 2.2.0
Moonlight Embedded running on: Raspberry Pi/Cubox-i/Hummingboard/Other linux device/...

Output of Moonlight Embedded: ?

What is the expected result? start when clicking o button instead of a crash c;

What happens instead of that? error (C2-12828-1)

No controls on some games?

I'm not able to control some games, i was just trying to play madden 08 for pc on my vita but it doesn't see controls at all.

**_NVidia Geforce Experience version: whatever the latest version is, idk how to check it on GFE.
**Moonlight Embedded version: 0.1.1
Moonlight Embedded running on: vita

Sound, no video

Please provide the following info.

NVidia Geforce Experience version: 3.2.0.96
Moonlight Embedded version: Release 0.1.1
Moonlight Embedded running on: Vita

Output of Moonlight Embedded:
When streaming anything, I get sound and controls, but no video

What is the expected result?
Video

What happens instead of that?
No video

Debug log attached incase it's useful

moonlight.log.txt

Failed to start stream error code -1 Failed stage: RTSP handshake

Please provide the following info.

NVidia Geforce Experience version: 3.0.5.22
Moonlight Embedded version: alpha4
Moonlight Embedded running on: PSVITA

Output of Moonlight Embedded: Failed to start stream error code -1 Failed stage: RTSP handshake (error code -1)

What is the expected result? Streaming start

What happens instead of that? Error code screen

An error has ocurred vita will be power down

When trying to enter settings this message appear with a loading bar and it shuts down. I can play fine and everything but to acces settings i have to delete moonlight config file otherwise it will allways happens this.
I'm using last geforce experience and moonlight 0.1.2 with last taihenkaku stable.

Unpair not working

Topic.
Workaround - you can un pair devices using Geforce Experience.

About mapping

Please provide the following info.

**NVidia Geforce Experience version:**382.33
**Vita Moonlight version:**0.2.0
Vita Moonlight running on: _PSVita 1000

Hi, what is the corresponding code for keyboard mapping (the 0FFFFF part)?? I tried several versions but don't seems working.

Moonlight Alpha 4 & 5 cannot connect to server if not re-paired by deleting data folder

Please provide the following info.

_NVidia Geforce Experience version: 3.0.7.34
Moonlight Vita Version: Alpha 4 & 5
Moonlight Embedded running on: PSVita 2000

Output of Moonlight Embedded: Cannot connect to server

**What is the expected result? It should connect to the server as it does after pairing and stay paired, so that everytime i open the program i should be able to connect to gamestream server.

What happens instead of that? The thing is that i have to delete everything under Ux0:/data/moonlight/ everytime it crashes or i quit without quit(stream)--> disconnect-->quit(moonlight) I have uninstalled GFE and Nvidia drivers with DDU and installed GFE 2.11 which gave RTSP error, but i was having this error all the time, since Alpha4 and had tried Alpha 2 and 3 before the transition to the new GFE3 that gives blackscreen on them and they where working fine.**

Vita.conf not working alpha 5

First of all thanks for the update, now it runs like charm, the performance is amazing, no lag no stuttering at all.
Now to the point, it seems like vita.conf has to be tweaked in order to work with the latest release so i just wanted to let you know.
Other issue i found is after you connect to the host if you press circle to go back it just crashes but if you hit disconnect you can go back so no biggie.

Can't connect to server

So i paired the vita and start a game without any problem, then i exit the game and try to start another game and it gives me the "stream starting..." message for a minute, then it gives me 2 "errorcode starting app: -1"
Now i tried quitting and it says "quitting failed: -1"
So i close the moonlight and open it again and hit the connect button and it says "can't connect to server" evertime even if you close the moonlight or restart the pc. The only workaround i found is eiter to delete moonlight data or go to connect to... and put any number so it will fail the conection and then put again the correct ip of your pc and it will work again for just one game because when you exit it and try to play again it will happen all this everytime.
It happened to me using 2.11.4.1 and now with the latest 3.0.5 but i still think it might be a problem related to geforce experience more than the moonlight. Anyway i will try uninstalling everything and report back.

Analogue sticks not working in moonlight alpha 5

*__NVidia Geforce Experience version: 3.0.7.34
*_Moonlight Embedded version: vita-moonlight alpha 5
**Moonlight Embedded running on: ps vita 2000

Analogue sticks do not work, including navigating the app before launching streams. All other buttons work. This is also the case using the mapping file vita.conf in moonlight/mappings

Controller now working

Please provide the following info.

**_NVidia Geforce Experience version:_3.0.7.4
_Moonlight Embedded version:0.6
_Moonlight Embedded running on:
_PS Vita

**Output of Moonlight Embedded: 1280p

**What is the expected result? Controller works

**What happens instead of that? I install the vpk, copy vita.conf to data/moonlight/mappings folder but when streaming, the controller on PS vita does not work. I once renamed rxinput.dll to rxinput.dll.old to use PC controller but it was geforce experience 2 long time ago before Vita Moonlight was born. I have checked, after update to GE 3, there's only rxgamepadinput.dll and rxinput.dll on NvStreamSrv folder (both programs (x86) and programs but still cannot use Controller on PS Vita to play.

Prevent game "optimization"

NVidia Geforce Experience version: 3.2.0.96
Moonlight Embedded version: 0.1.2
Moonlight Embedded running on: Vita

Apparently, Nvidia Gamestream has a feature where it changes the game's graphical settings to those it sees better fit for the client device.
I can deal with changing the resolution from 720p to my native 1440p everytime I launch a game (it's a pain in the butt, but it's not a dealbreaker), but changing literally every graphical setting to the one I want is quite impossible for some games (some settings require a restart of the executable, which changes the settings back to what Nvidia thinks you want).
Sometimes the Nvidia service screws up, and my game launches with it's original settings, but I have no idea what triggers it (I thought launching games through Big Picure did it, but I couldn't replicate that the next day)
I looked it up, it seems that legit Shield devices have a thing called "Shield Hub" where you can tell Nvidia to fuck right off with their "optimizations" and it will launch the game with your selected settings.
Is it possible to implement this into Vita's Moonlight port?

Thanks in advance

Error -1

Please provide the following info.

NVidia Geforce Experience version: 3.1.0.52
Moonlight Embedded version: 0.1.0
Moonlight Embedded running on: Vita

Output of Moonlight Embedded: Failed to start stream: error code -1
Faled stage: RTSP handshake (error code -1)

What is the expected result?
Game opens and starts streaming on my Vita

What happens instead of that?
Game opens on my computer, but I get this error on my Vita and can't stream

Moonlight not changing resolution

Please provide the following info.

_NVidia Geforce Experience version: 3.6.0.74
**Vita Moonlight version: 0.2.0
**Vita Moonlight running on: PSVita 2000

Output of Vita Moonlight: Completely blank

What is the expected result?
That windows/steam changes resolution to 1280x720 or 960x544

What happens instead of that?
Windows or steam always stays on 1920x1080

ps vita with ds4 (ds4vita plugin)

  • NVidia Geforce Experience version: 3.6.0.74
  • Vita Moonlight version: 0.2.0
  • Vita Moonlight running on: PSVita 1000 with ds4
  • What is the expected result? L2/R2 and L3/R3 working on ds4 when playing PC games.
  • What happens instead of that? L2/R2 and L3/R3 on ds4 are not responding, no input.

overlay virtual keyboard

moonlight connection support sending keyboard data
but, in vita system, generic ways is to use their IME system.
problem is, vita ime always draw full screen over the game, it can make hard detect game statue.
so, if we support virtual keyboard on stream mode, probably make more easier for game play

proposal:

  • tap 3 or 4 fingers on front screen will print overlay keyboard & disable special touch buttons on front screen
  • if printed keyboard, screen touch will input keydata.
  • devices buttons still support game play.
  • repeat tap 3 or 4 fingers (or touch close keyboard button), close keyboard & enable special buttons on front screen.

L2/R2 using a ps3 controller on PS TV

Please provide the following info.

*__NVidia Geforce Experience version: 2.11.4
*_Moonlight Embedded version: alpha 4
**Moonlight Embedded running on: PS vita

Does anyone know what are the keys to map those buttons in the vita.conf?

L2/R2 working as L1/R1. L2/R2/L3/R3 buttons not mapped.

Please provide the following info.

*__NVidia Geforce Experience version:_3.0.7
*_Moonlight Embedded version: Alpha 5
**Moonlight Embedded running on: PS Vita

Output of Moonlight Embedded:

**What is the expected result? L2/R2/L3/R3 Working after using vita.conf

**What happens instead of that? Those buttons doesn't work. L2 and R2 work as L1 and R1

Unsing vita.conf from here: https://github.com/d3m3vilurr/vita-moonlight/blob/266b989a247cb25e221633b810aeb43eb70a93bd/mappings/vita.conf

Trackpad usage.

Please provide the following info.

NVidia Geforce Experience version: 3.3.0.95
Moonlight Embedded version: v0.6.3
Moonlight Embedded running on: Chromebook

Output of Moonlight Embedded: Moonlight Chrome

What is the expected result? While using a trackpad, be able to tap the trackpad (instead of clicking) and have it work like a mouse click

What happens instead of that? Nothing

Only send controller events if the data has changed

Apologies for not just submitting a PR myself, but at the end of vitainput_process(), you send a controller input packet every 1 ms, even if the data isn't changed. I'd suggest only sending them if the data has changed.

Moonlight-common-c currently assumes the client will avoid sending duplicate events and doesn't handle duplicates optimally (by not actually transmitting them to the server). Other Moonlight clients do this themselves.

Constantly sending duplicate input packets every 1 ms uses valuable WiFi airtime needed to receive video frames. Only sending them when input changes will likely help to prevent unnecessary video stuttering.

As an aside, you may also want to reduce the polling rate to maybe once per 5 ms to again cut down on input events that likely won't be consumed by the application on the server PC.

Black screen on vita when host pc's monitor is off, sound works

NVidia Geforce Experience version: 3.5.0.69

Display driver version: 378.92

Graphics card: GeForce GTX 1080

32 GB system ram

Running on Windows 10, latest version of Steam

1080p resolution on my PC

Basically, moonlight can connect just fine and will function normally if my monitor is on but if I turn the monitor off it will cease functioning. If I try to connect and launch a game with the PC monitor off the whole time I'll only get sound from my vita.

Tried all the resolutions available in the moonlight app, also tried a lower bitrate to no avail.

Sudden C2-12828-1 error

Please provide the following info.

**_NVidia Geforce Experience version: *_3.0.6.48
*_Moonlight Embedded version: _2.2.0
_Moonlight Embedded running on:
PS Vita

Output of Moonlight Embedded:
1280x720@60, 6000kbps
What is the expected result?
After having connected many times successfully and launching games, now every single time I try to connect, it gives me the C2-12828-1 error, and crashes. I have tried reinstalling both Henkaku and moonlight, but neither seems to help. I've tried resetting my Vita's wifi, having GeForce Experience forget my system, but nothing helps. I'm quite perplexed, as it was working fine for a good while.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.