RELEASE SysDVR - Stream gameplay directly to a pc

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by exelix11, Oct 21, 2019.

  1. Craftyawesome

    Craftyawesome GBAtemp Regular

    Member
    4
    Feb 3, 2018
    United States
    Read the readme, it shows how to do it. USBStream GUI is for usb only. You will need to follow https://github.com/exelix11/SysDVR/#network-streaming
     
    Ka_Ninja likes this.
  2. exelix11
    OP

    exelix11 Developer

    pip Developer
    10
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    It's called relay cause it will send the video data to another app, you're supposed to launch another program like mvp or vlc and manually connect to tcp://localhost:<port number> and setting the proper args for raw h264 decoding

    — Posts automatically merged - Please don't double post! —

    Probably there's some confusion about this.
    Network mode is for SysDVR to stream via network on its own, as in you don't need custom receiver programs like UsbStream
    TCP or Relay mode in UsbStream is to receive the stream via USB and then relay it via network, ideally on the same pc to avoid performance loss.
    The first feature is to actually stream wireless, the second one is a way of allowing other non-supported players to stream via USB
     
    Ka_Ninja likes this.
  3. ressit

    ressit GBAtemp Regular

    Member
    3
    Jun 4, 2018
    Vietnam
    can use it with online game ??
     
  4. gameboy

    gameboy GBAtemp Advanced Maniac

    Member
    9
    Dec 9, 2015
    United States
    can i use this app through the dock?
     
  5. exelix11
    OP

    exelix11 Developer

    pip Developer
    10
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    If you feel bold enough to run cfw while going online

    Only with network mode and for optimal performances with a lan adapter
     
  6. strunx

    strunx Newbie

    Newcomer
    1
    Oct 24, 2014
    United States
    When i try to launch it, i receive this error:


    Error:
    An assembly specified in the application dependencies manifest (UsbStream.deps.json) was not found:
    package: 'LibUsbDotNet', version: '3.0.48-alpha'
    path: 'runtimes/win-x64/lib/netcoreapp2.1/LibUsbDotNet.dll'

    .net core 3.0 is installed, both 64 and x86 version, even sdk because i though maybe could be that so i'm running out of ideas xD
     
  7. exelix11
    OP

    exelix11 Developer

    pip Developer
    10
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Did you extract the whole zip ? Looks like you skipped the runtimes folder that's supposed to be in the archive.
     
  8. strunx

    strunx Newbie

    Newcomer
    1
    Oct 24, 2014
    United States
    Yeah, that was exactly the problem but it was weird, i extracted the zip twice yesterday and today i had to add an exception to windows defender because i dont't know why but every time i extracted the zip, the whole runtimes folder dissapeared. Solved, thanks for pointing me the way
     
  9. exelix11
    OP

    exelix11 Developer

    pip Developer
    10
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Follow-up on this, i just found out windows has fifos as well so i'm trying to implement livestream support.
    Could you share your ffmpeg command ? I'm currently using this:
    Code:
    -f s16le -ar 48000 -ac 2 -i "//./pipe/UsbStreamA" -f h264 -i "//./pipe/UsbStreamV" -deinterlace -vcodec copy -pix_fmt yuv420p -preset veryfast -r 30 -g 60 -b:v 2500k -acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k -f flv "rtmp://a.rtmp.youtube.com/......."
    Not an expert in ffmpeg magic at all and as expected quality is not really what i'd would like
     
  10. shadowofdarkness

    shadowofdarkness GBAtemp Advanced Fan

    Member
    6
    Apr 17, 2007
    Canada
    Here is the commands I was using to stream it live. It would never get out of sync playing most games like Mario Kart or NSMBUDX. But it didn't like the Let's GO games when transitioning to a encounter.

    ./dotnet UsbStream.dll video file video.264 audio file audio.raw &
    ffmpeg -fflags +genpts -framerate 30 -i video.264 -f s16le -ar 48000 -ac 2 -i audio.raw -c:v copy -c:a copy -f matroska - | ffplay -

    Naturally ffmpeg could output to a file but I was just outputting to a pipe for immediate live playing. My command also left everything untouched and just muxed the audio and video together in a container for the player to have a easy time. Yours probably has some slowdown due to transcoding.
     
    Last edited by shadowofdarkness, Nov 3, 2019
  11. exelix11
    OP

    exelix11 Developer

    pip Developer
    10
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    oh right i forgot about -framerate 30, was getting a 25 fps stream and that broke everything.
    Only audio has to be encoded, for video i can stream HOS h264 feed directly, even tho youtube once in a while complains about frequency of keyframes. Youtube's live preview has around 15s which looks just a bit above average for live streams so i'd say i'm getting there.
    Thanks for the input
     
  12. virusburger101

    virusburger101 Newbie

    Newcomer
    2
    Jul 30, 2018
    United States
    Just an interesting point I tried running the 2.0 version on SXOS just because the newest version of the cfw can start running stuff like this now. But the full version with the homebrew app and wireless will crash the cfw on a reboot, but the USB only version works perfectly. So anyone else that's running into this issue just know this will work AMAZINGLY on the USB mode and for now, you just have to manually disable it when needing to use the USB port.

    Other than that thanks for the amazing tool!
     
  13. exelix11
    OP

    exelix11 Developer

    pip Developer
    10
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Don't see why the other version should crash on sx, sounds more like you have other sysmodules thtat use too much memory
     
  14. virusburger101

    virusburger101 Newbie

    Newcomer
    2
    Jul 30, 2018
    United States
    Hmm ok, I guess ill tinker to see what's going on. Thx
     
  15. obs123194

    obs123194 GBAtemp Advanced Fan

    Member
    4
    Mar 9, 2014
    United States
    This only works on cfw?
     
  16. lordzombies

    lordzombies Newbie

    Newcomer
    1
    Nov 11, 2017
    United Kingdom
    UK
    Thought i'd save everybody time and let them know it doesnt work in VR mode. i was hoping to stream the blaster gun, even if it would appear to be two circles. hah.

    excellent when you get it working wireless however, better than kitkat for the 3ds in my opinion.
     
  17. Itsblaze302

    Itsblaze302 Member

    Newcomer
    2
    Nov 4, 2017
    United States
    i am playing a game that goes into local wireless mode and wont allow to stream the gameplay, will there be a patch in the future or no way to record while in local wireless?
     
  18. exelix11
    OP

    exelix11 Developer

    pip Developer
    10
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Yes

    Not sure, still looking into the possibility of patching games that don't support it but it doesn't seem easy. About your case you mean via USB right ? Cause i'm pretty sure local wireless mode disconnects from the actual wireless thus network streaming would not work no matter what.
     
  19. OkazakiTheOtaku

    OkazakiTheOtaku no thanks, I don't want a custom title

    Member
    9
    Jul 20, 2016
    Japan
    127.0.0.1
    I don't understand how to use UsbStream on *nix. It says it is supported and there is a runtime for my operating system but I don't see an actual CLI binary.
     
  20. exelix11
    OP

    exelix11 Developer

    pip Developer
    10
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Download and install .net core runtime according to your distro instructions. If your distro is not officially supported just download the binaries. extract somewhere and add to path.
    Then just run dotnet UsbStream.dll
     
    OkazakiTheOtaku likes this.
Quick Reply
Draft saved Draft deleted
Loading...