Release Moonlight

Discussion in 'Software Releases' started by ptitSeb, Jul 15, 2015.

  1. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    Here is Moonlight, an open source implementation of the NVidia GameStream Streaming Protocol.

    [​IMG]


    A video on Moonlight (embedded) running FEZ

    With it, and using an NVidia equiped PC, you can stream your PC Games to your Pandora.

    Problem is that the Pandora power and Wifi make it slow to render the PC Screen, and add some lag, making that software not super useable.

    To be able to use the native Pandora resolution, you may need to create the 800x480 as a custom resolution in the NVidia control panel.

    But I guess for Turn by Turn game, it may be usefull...

    History log
    ==========


    Build 04
    -----------

    • Switched to upstream Moonlight-embeded
    • Using latest sources
    • Revamped gtkdialog to add a more options
    • Nubs are now configuration in the dialog
    • Streaming Texture is now optional
    Build 03
    -----------

    • Now using Streaming Texture
    Build 02
    -----------

    • Switched to Moonlight-embedded (GLES2 build from ODroid user AreaScout).
    • Using some cheap gtkdialog menu for more ease of use
    Build 01
    -----------

    • Initial build
    • Forced 800x480 fullscreen
    • OpenGL mode is not working
     
    Last edited: Jan 13, 2018
    Tags:
    Glyph Reader and FaeMinx like this.
  2. TheTeaGuy

    TheTeaGuy Still Fresh

    Joined:
    Dec 17, 2013
    Messages:
    27
    Location:
    England
    Thanks pitSeb! Look promising. Is there any chance this will be worked on to improve Moonlight? Or is it mostly down to the Pandoras limitations which cause the lag?
     
  3. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    I don't know for sure, but I'm afraid the Pandora Wifi and CPU are a bit weak for this.

    Still, I may try to get more usefulness out of this one in the future..
     
  4. cgutman

    cgutman Newbie

    Joined:
    Jul 15, 2015
    Messages:
    2
    Have you considered porting the embedded port of Moonlight? It runs well on very limited hardware like the Pi. If there's some hardware accelerated video decoding API you can use like OpenMAX or VDPAU, it could be worth a shot. If you're lucky, you might only need to write a video decoder/renderer implementation for the Pandora (https://github.com/irtimmer/moonlight-embedded/blob/master/src/video/omx.c). It would also let you drop the dependency on Java since Moonlight-Embedded is pure C since v2.0.

    https://github.com/irtimmer/moonlight-embedded
     
    Last edited by a moderator: Jul 15, 2015
  5. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    I may have a look. Not sure it will help much, I think most lag comes from Network (the decoding is done with the avcodec lib in the java version, so it's already native, the java part is mostly for the windows & menu handling).
     
  6. cgutman

    cgutman Newbie

    Joined:
    Jul 15, 2015
    Messages:
    2
    Well decoding is native code but it's definitely not fast. It needs to be done on the GPU/VPU to have a chance at reasonable performance. Even current generation phones can't decode the stream in realtime without hardware assistance during periods of high action. Android and iOS ports have to use hardware decoding to reliably decode at a reasonable frame rate.

    Can the hardware decoder in the Pandora SoC handle H.264 high profile?
     
    Last edited by a moderator: Jul 16, 2015
  7. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    There should be some H.264 hardware assist, but not for high profile, and I don't think it's open source anyway.

    The only thing that can help is probably the Color Conversion that may be done in hardware, but that's pretty much all that can be done (to my knowledge).

    PS: Are you from the dev team of moonlight?
     
    Last edited by a moderator: Jul 16, 2015
  8. WizardStan

    WizardStan Mega GP Mania

    Joined:
    May 24, 2008
    Messages:
    16,629
    Can it? Yes, technically.The codec doesn't exist though. All we need is for someone to write a DSP implementation of the h.264 decoder and we'll be in business :p

    That hasn't happened in the 7 years since the Pandora's release, I don't expect it to happen any time before the Pyra's release. :(
     
  9. Hồng Thất Công

    Hồng Thất Công Đả Cẩu Bổng Pháp

    Joined:
    Dec 19, 2012
    Messages:
    4,372
    Location:
    Cái Bang
    Where's bsp? :)
     
  10. Hồng Thất Công

    Hồng Thất Công Đả Cẩu Bổng Pháp

    Joined:
    Dec 19, 2012
    Messages:
    4,372
    Location:
    Cái Bang
    Moonlight doesn't start for me eventhough java has been installed.

    =======================================================================================

    PND             : /media/psd1_256gb/pandora/apps/moonlight.pnd

    PND_FSTYPE      : Squashfs

    APPDATADIR      : /media/psd1_256gb/pandora/appdata/moonlight

    APPDD_FSTYPE    : ext4

    PND_CPUSPEED    : <unset>

    EXENAME         : runscript.sh

    ARGUMENTS       : <unset>

    =======================================================================================

    [ START ]--- Mount the PND ----------

    Mounting : mount -t squashfs -o ro "/dev/loop0" "/mnt/utmp/moonlight"

    Mounting the Union FS : mount -t aufs -o exec,dirs="/media/psd1_256gb/pandora/appdata/moonlight=rw+nolwh":"/mnt/pnd/moonlight=rr" none "/mnt/utmp/moonlight"

    [sUCCESS]--- Mount the PND ----------

    [ START ]--- Starting the application ( runscript.sh  ) ----------

    System check

    ============

    Freememory is 1368

    Cpu Speed is 1295

    Sys Speed is 400

    nubs has mouse mbuttons

    Found java.pnd at /media/psd1_256gb/pandora/apps/java.pnd

    Attempting to execute jvm at /mnt/utmp/java/jdk/bin/java

    Args are: -Xmx256m build/moonlight-pandora.jar

    Error: Could not find or load main class build.moonlight-pandora.jar

    rmdir: failed to remove `/mnt/utmp/java': Device or resource busy

    [sUCCESS]--- Starting the application ( runscript.sh  ) ----------

    [ START ]--- Restoring the frame buffer status ----------

    [sUCCESS]--- Restoring the frame buffer status ----------

    [ START ]--- Restoring nub mode ----------

    [sUCCESS]--- Restoring nub mode ----------

    [ START ]--- uMount the PND ----------

    [ START ]--- Waiting the Union to be available ----------

    [sUCCESS]--- Waiting the Union to be available ----------

    rmdir: failed to remove `/mnt/utmp/moonlight': Device or resource busy

    [ START ]--- Waiting the PND mount dir to be free ----------

    [sUCCESS]--- Waiting the PND mount dir to be free ----------

    cleanup done

    [sUCCESS]--- uMount the PND ----------

    =======================================================================================

    Return code is : 3

     
     
  11. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    Which java version did you installed?
     
  12. Hồng Thất Công

    Hồng Thất Công Đả Cẩu Bổng Pháp

    Joined:
    Dec 19, 2012
    Messages:
    4,372
    Location:
    Cái Bang
    The one Wizardstan made on the repo.
     
  13. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    If I remember correctly, you can choose from OpenJDK or SUN.

    I choosed SUN myseif, and you?

    *EDIT*: also, can you download it again from the Repo, it looks like you have the 1st beta release I had done, that doesn't start properly.
     
    Last edited by a moderator: Jul 16, 2015
  14. Hồng Thất Công

    Hồng Thất Công Đả Cẩu Bổng Pháp

    Joined:
    Dec 19, 2012
    Messages:
    4,372
    Location:
    Cái Bang
    Redowndloaded and reinstall  Java PND, but still can start it.
     
  15. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    But the log you put came from the 1st beta version (the line "Args are: -Xmx256m build/moonlight-pandora.jar").

    The correct version should print "Args are: -Xmx256m -jar moonlight-pandora.jar". Can you delete all the moonlight.pnd you have and re-download?
     
  16. ekianjo

    ekianjo Hardcore Member

    Joined:
    May 7, 2012
    Messages:
    8,261
    Location:
    神戸市、日本 (Japan)
    So this PND works only with some GeFOrce cards (above a certian generation right?) and therefore it is unusable for certain older GeForce cards ? 
     
  17. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    You need a PC with a GeForce 600 or more for it works yes.
     
  18. ekianjo

    ekianjo Hardcore Member

    Joined:
    May 7, 2012
    Messages:
    8,261
    Location:
    神戸市、日本 (Japan)
    Thanks for confirming, that is what I thought.
     
  19. Hồng Thất Công

    Hồng Thất Công Đả Cẩu Bổng Pháp

    Joined:
    Dec 19, 2012
    Messages:
    4,372
    Location:
    Cái Bang
    I did, still the same result.  Let me try another Moonlight see if it works.

    [​IMG]
     
    Last edited by a moderator: Jul 17, 2015
  20. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,280
    Location:
    France, near Lyon
    That other moonlight seems to taste good, but I prefer belgian ones ;)

    Anyway, I have downloaded moonlight from the repo to be sure, and it's working fine for me.

    To be sure of the pnd version you have, you can do


    /usr/pandora/scripts/pnd_run.sh -p /media/psd1_256gb/pandora/apps/moonlight.pnd -m

    than copy/past here the result of


    cat /mnt/utmp/moonlight/runscript.sh

    after that, you can unmount the pnd with

    Code:
    /usr/pandora/scripts/pnd_run.sh -p /media/psd1_256gb/pandora/apps/moonlight.pnd -u
    
     

Share This Page

Loading...