• About
  • Advertise
  • Privacy & Policy
  • Contact
Raspberry Pi Developing
  • Home
  • Getting Started
    Getting started with Node.js and Raspberry Pi: Controlling an LED with Node.js Webserver

    Getting started with Node.js and Raspberry Pi: Controlling an LED with Node.js Webserver

    All About Batteries

    All About Batteries

    What’s The Difference Between DC, Servo & Stepper Motors?

    What’s The Difference Between DC, Servo & Stepper Motors?

    Which OS is Best for Raspberry PI ?

    Which OS is Best for Raspberry PI ?

  • Pi Projects

    Raspberry Pi UV Sensor using the VEML6075

    Raspberry Pi Nvidia Shield: Stream Games using Moonlight

    Raspberry Pi Accelerometer using the ADXL345

    Raspberry Pi Accelerometer using the ADXL345

    Raspberry Pi Humidity Sensor using the DHT22

    Raspberry Pi Humidity Sensor using the DHT22

  • How to
    Setting up Home Assistant on the Raspberry Pi

    Setting up Home Assistant on the Raspberry Pi

    How to Install PHPMyAdmin on the Raspberry Pi

    How to Install PHPMyAdmin on the Raspberry Pi

    Setup a Raspberry Pi MYSQL Database

    Setup a Raspberry Pi MYSQL Database

    How to Upgrade Raspbian Stretch to Raspbian Buster

    How to Upgrade Raspbian Stretch to Raspbian Buster

    How to Setup Raspberry Pi RecalBox

    Play Retro Games with Raspberry Pi RetroPie

    Trending Tags

    • Arduino Projects
      RS-485 Serial Communication between Raspberry Pi and Arduino Uno

      RS-485 Serial Communication between Raspberry Pi and Arduino Uno

      Installing and Testing Mosquitto MQTT Broker on Raspberry Pi for IoT Communication

      Installing and Testing Mosquitto MQTT Broker on Raspberry Pi for IoT Communication

      The 2019 Thermostat ReThink

      The 2019 Thermostat ReThink

      Tracked Arduino Robot

      Tracked Arduino Robot

    • News
      New report shows how IoT devices remain under ‘constant’ attack

      New report shows how IoT devices remain under ‘constant’ attack

      BlackBerry, Telus, L-Spark among those to launch programme for Canadian IoT startups

      BlackBerry, Telus, L-Spark among those to launch programme for Canadian IoT startups

      Raspberry Pi Comparison Table

      Raspberry Pi Kernel Updated to 4.19

      Apple Watch Series 2 Is Swimproof and Comes With Built-In GPS

      To regain advertiser trust, Facebook is tracking ads by the millisecond

      National Academy of Sciences endorses embryonic engineering

      Trending Tags

      No Result
      View All Result
      • Home
      • Getting Started
        Getting started with Node.js and Raspberry Pi: Controlling an LED with Node.js Webserver

        Getting started with Node.js and Raspberry Pi: Controlling an LED with Node.js Webserver

        All About Batteries

        All About Batteries

        What’s The Difference Between DC, Servo & Stepper Motors?

        What’s The Difference Between DC, Servo & Stepper Motors?

        Which OS is Best for Raspberry PI ?

        Which OS is Best for Raspberry PI ?

      • Pi Projects

        Raspberry Pi UV Sensor using the VEML6075

        Raspberry Pi Nvidia Shield: Stream Games using Moonlight

        Raspberry Pi Accelerometer using the ADXL345

        Raspberry Pi Accelerometer using the ADXL345

        Raspberry Pi Humidity Sensor using the DHT22

        Raspberry Pi Humidity Sensor using the DHT22

      • How to
        Setting up Home Assistant on the Raspberry Pi

        Setting up Home Assistant on the Raspberry Pi

        How to Install PHPMyAdmin on the Raspberry Pi

        How to Install PHPMyAdmin on the Raspberry Pi

        Setup a Raspberry Pi MYSQL Database

        Setup a Raspberry Pi MYSQL Database

        How to Upgrade Raspbian Stretch to Raspbian Buster

        How to Upgrade Raspbian Stretch to Raspbian Buster

        How to Setup Raspberry Pi RecalBox

        Play Retro Games with Raspberry Pi RetroPie

        Trending Tags

        • Arduino Projects
          RS-485 Serial Communication between Raspberry Pi and Arduino Uno

          RS-485 Serial Communication between Raspberry Pi and Arduino Uno

          Installing and Testing Mosquitto MQTT Broker on Raspberry Pi for IoT Communication

          Installing and Testing Mosquitto MQTT Broker on Raspberry Pi for IoT Communication

          The 2019 Thermostat ReThink

          The 2019 Thermostat ReThink

          Tracked Arduino Robot

          Tracked Arduino Robot

        • News
          New report shows how IoT devices remain under ‘constant’ attack

          New report shows how IoT devices remain under ‘constant’ attack

          BlackBerry, Telus, L-Spark among those to launch programme for Canadian IoT startups

          BlackBerry, Telus, L-Spark among those to launch programme for Canadian IoT startups

          Raspberry Pi Comparison Table

          Raspberry Pi Kernel Updated to 4.19

          Apple Watch Series 2 Is Swimproof and Comes With Built-In GPS

          To regain advertiser trust, Facebook is tracking ads by the millisecond

          National Academy of Sciences endorses embryonic engineering

          Trending Tags

          No Result
          View All Result
          Raspberry Pi Developing
          No Result
          View All Result

          Raspberry Pi Nvidia Shield: Stream Games using Moonlight

          tibi by tibi
          June 18, 2019
          Home How to
          Share on FacebookShare on Twitter

          In this tutorial, I will be setting up Raspberry Pi Nvidia Shield streaming so you can stream PC games from your computer straight to the Pi.

          Raspberry Pi Nvidia Shield


          This project is an awesome way to get games to another screen or TV in your house without spending a huge amount of money on extra equipment.

          This tutorial is perfect for anyone who loves video games, but something like the Raspberry Pi retro game emulator is a little too old school for you.

          With this, you will be able to play most modern games, but you will also need to have a computer that is powerful enough to run them.  You can also now set up your Raspberry Pi to act as a Steam Link using one line of code.c

          One of the most significant downsides to this tutorial is that you will need a Nvidia graphics card in your computer. Unfortunately, there isn’t an AMD equivalent of doing the same thing at the time of when I wrote this tutorial.

          In this tutorial, we will be using a software package called Moonlight on the Pi. This software will connect to the Nvidia Geforce Experience app running on a PC. You will then be able to stream most games that are available to the Pi.

           Equipment

          You will need the following equipment for this Raspberry Pi Nvidia Shield tutorial. Keep in mind you will probably want to avoid using WiFi and use Ethernet for the best performance.

          Recommended:

           Raspberry Pi

           Micro SD Card if you’re using a Raspberry Pi 2, 3 or B+

           Power Supply

           Ethernet Cord (Recommended) or Wifi dongle

           Computer with an NVidia graphics card

          Optional:

           Raspberry Pi Case

           USB Keyboard

           USB Mouse

           USB Game Controller

           Video

          If you want to see how to get this up and running, then be sure to check out the video below.

          It goes through all the steps to getting this cool Raspberry Pi tutorial up and running.

           Setting up Raspberry Pi Moonlight Software

          As with the majority of the tutorials on this website, you will need to make sure you have Raspbian installed. If you don’t and have no idea where to start, then you can find my handy guide to installing Raspbian here. We recommend that you use Raspbian Stretch for this tutorial.

          1. To begin, you will need to either SSH or be in the terminal on your Pi.

          2. In here we need to add the moonlight repository to our package source list. To do this simply enter the following. The | will copy the result of the first command into the second.

          echo "deb http://archive.itimmer.nl/raspbian/moonlight stretch main" | sudo tee /etc/apt/sources.list.d/pms.list

          3. You need to fetch and install the GPG key so you will not receive warnings about the public key not being available.

          wget http://archive.itimmer.nl/itimmer.gpg
          sudo apt-key add itimmer.gpg

          4. Next, you will need to update the package list by simply running the following command.

          sudo apt-get update

          5. Now install the package by running the following command.

          sudo apt-get install moonlight-embedded

          That’s all you need to do, and now we’re ready to connect the Pi up to a PC. This process is super easy, and I’ll go through the steps below.

           Connect your Pi to the PC

          To begin, you will need to make sure you have a Nvidia GeForce graphics card. Secondly, you will need to make sure you have the GeForce experience app installed.  If you don’t have Geforce experience application installed, then you download it at the Geforce website.

          1. To begin, make sure you know the IP address of the gaming PC you want to connect to. To do this, go to CMD (command prompt) on Windows. This application can be found by simply searching for it.

          ip-config

          2. In here run the command ipconfig

          Write down or copy the IP in the field next to IPv4 Address.

          3. On the Pi enter the following to pair with the gaming PC running the GeForce experience. Replacing 192.168.1.105 with your own IP address.

          moonlight pair 192.168.1.105
          Raspberry Pi Nvidia Shield Code

          4. This command will generate a 4-digit pin that you will need to enter on your computer in the pop up saying “SHIELD is requesting to connect.”

          Nvidia Shield Code

          5. It’s all good to go now, to begin streaming simply enter the following. (Replacing the 192.168.1.105 with own IP)

          moonlight stream 192.168.1.105

          6. There are additional configuration options that you might be interested in taking a look at. I will go through them below.

           Extra Configuration Options

          To help improve the performance of the Raspberry Pi Nvidia shield streaming you can tinker with some settings. When you go to launch moonlight streaming on the Pi, there are several additional options, which you’re able to add to the command line. If you want to add options, they go after stream. For example: moonlight stream [OPTIONS] x.x.x.x

          Below is a list of almost all the options that you’re able to add.

          -720 Use 1280x720 resolution (default)
          
          -1080 Use 1920x1080 resolution
          
          -width <width> Horizontal resolution (default 1280)
          
          -height <height> Vertical resolution (default 720)
          
          -30fps Use 30fps
          
          -60fps Use 60fps (default)
          
          -bitrate <bitrate> Specify the bit-rate in Kbps
          
          -packetsize <size> Specify the maximum packet size in bytes
          
          -app <app> Name of app to stream
          
          -nosops Don't allow GFE to modify game settings
          
          -localaudio Play audio locally
          
          -keydir <directory>\tLoad encryption keys from directory

          As you can see, there are quite a few options to pick from. You will probably find the FPS and resolution are the two you will find handy the most. Change these if you’re finding stream issues such as lagging etc. Reducing these will help lower the amount of data that needs to be sent over the network. For example, if you had 30 FPS and a 720 resolution, it would look something like this.

          moonlight stream -30fps -720 x.x.x.x

          If you want to have it launch an app like steam by default, then you do something like this.

          moonlight stream -app steam x.x.x.x

          These are just a couple of examples of what you can do. There are also other additional options that you’re able to add. The full list can be found on Moonlights wiki page.

           Troubleshooting & Limitations

          I have found that some games didn’t work at all. I am not entirely sure why this is the case, but I think it could be something to do with the multiple monitors causing issues. Doom, for example, will run fine on the PC but won’t stream to the Pi for some odd reason.

          Games vary in quality, for example, games like ARMA I found quite a significant difference between the host PC and the Pi but games like Ori & the blind forest I didn’t notice too much difference between the two.

          As I mentioned above, you can tinker with settings to try and get the best quality without any lag. Below is a short clip of some of the games I tested with the PC version on the left and the streamed version of the right.

          I sometimes found Moonlight would crash, but this was only between changing games and wasn’t so common for it to become annoying (I was also changing games quite often to test things out).

          You can simply relaunch the stream with one simple command in the terminal so crashes aren’t too bad to recover from. (As long as it’s not mid game).

          If you have would like to see a list of issues that are currently known, then be sure to head over to the moonlight-embedded GitHub page. This page will have a list of open and closed problems with the software.

          I hope this Raspberry Pi Nvidia Shield streaming tutorial has helped you be able to stream video games to the Pi. If you come across any issues or have some feedback related to this tutorial, then please don’t hesitate to leave a comment below.

          Tags: gamesmoonlightnvidiaraspberryshieldstreamusing
          tibi

          tibi

          Next Post

          Raspberry Pi DOSBox: Play Classic DOS Games on the Pi

          Comments 1

          1. spockle says:
            1 year ago

            does this work with the pi 4? if so, will it allow me to get better streaming quality (1080p 60fps) than the Pi3?

            disregard network speed. I’m just asking about if the Pi 3 can handle 1080p 60fps, I’ve read elsewhere that it doesn’t do so well on that front.

            Reply

          Leave a Reply Cancel reply

          Your email address will not be published. Required fields are marked *

          Recommended.

          Watch Cruise’s self-driving Bolt EV navigate smoothly to SF’s Dolores Park

          Raspberry Pi PirateBox

          Raspberry Pi PirateBox

          April 3, 2019

          Trending.

          How to Setup a Raspberry Pi Nextcloud Server

          How to Setup a Raspberry Pi Nextcloud Server

          March 14, 2019
          How to Setup a Raspberry Pi NAS (Network Attached Storage)

          How to Setup a Raspberry Pi NAS (Network Attached Storage)

          April 13, 2019
          Raspberry Pi TorrentBox: Build an Always-On Torrent Machine

          Raspberry Pi TorrentBox: Build an Always-On Torrent Machine

          March 16, 2019
          Setup a Raspberry Pi MYSQL Database

          Setup a Raspberry Pi MYSQL Database

          July 28, 2019
          Raspberry Pi Humidity Sensor using the DHT22

          Raspberry Pi Humidity Sensor using the DHT22

          May 14, 2019
          Raspberry Pi Developing

          PI Guide Developing is where you can find some of the coolest Raspberry Pi projects and guides on the web. You can check them all out right here.

          Follow Us

          Categories

          • Arduino Projects
          • Getting Started
          • How to
          • News
          • Pi Projects

          Tags

          about adding Apple Watch 2 arduino beginners Best iPhone 7 deals build Buying Guides camera CES 2017 clock digital display drive email games getting guide install installing iOS 10 iPhone 7 learn linux mount mysql network Nintendo Switch phpmyadmin Playstation 4 Pro python raspberry Raspbian sense sensor server setting setup Sillicon Valley simple started storage system tutorial using

          Recent News

          Setting up Home Assistant on the Raspberry Pi

          Setting up Home Assistant on the Raspberry Pi

          March 22, 2020
          How to Install PHPMyAdmin on the Raspberry Pi

          How to Install PHPMyAdmin on the Raspberry Pi

          July 28, 2019
          • About
          • Advertise
          • Privacy & Policy
          • Contact

          © 2019 PI GUIDE - Premium PI Guide PI GUIDE.

          No Result
          View All Result
          • Home
          • Getting Started
          • How to
          • Pi Projects
          • Arduino Projects
          • News

          © 2019 PI GUIDE - Premium PI Guide PI GUIDE.