App Details
This is an experimental sysmodule that allows capturing the running game output to a pc via USB or network connection.
Two versions are provided:
SysDVR.zip is the "full" version, can stream using both modes and comes with an homebrew app to switch between them
SysDVR-USB-Only.zip(not included in this download) will only stream via USB but uses less memory and should run alongside multiple sysmodules.
You should use the full version unless you have specific requirements.
To play the stream mpv player is recommended as it's the most straight forward to set up, any other player that supports raw h264 streams via tcp or stdin should work but you may have to configure it manually.
Limitations
Video quality is fixed to 720p @ 30fps with h264 compression (hardware limit)
Audio quality is fixed to 16bit PCM @ 48kHz stereo. Not compressed
Only works on games that have video recording enabled (aka you can long-press the capture button to save a video)
Video and audio are two different streams, they're likely to desync as they require two different player instances. Vlc does support a secondary audio stream but i didn't manage to get it working properly.
Only captures game output. System UI, home menu and homebrews running as applet won't be captured
Video feed is not realtime, there will always be a minimum of ~1 second of delay.
Stream quality depends heavily on the environment, bad usb wires or low wifi signal can affect it significantly.
USB streaming is not available when docked
Requires firmware >= 6.0.0
Clearly with these limitations this sysmodule doesn't allow "remote play" and does not replace a capture card.
Usage
Setting up the sysmodule
The provided builds already contain the correct file structure, you should just be able to extract them to your sd card.
CFWs other than atmosphere should work but I won't provide support for them.
By default SysDVR will stream over network, to switch between modes and set the default one you can use the SysDVR Settings homebrew included in the zip.
Network streaming
This is the easiest way to stream, In this mode the sysmodule is completely standalone, you should be able to play the video stream just by running mpv tcp://:6666 --no-correct-pts --fps=30 and mpv tcp://:6667 --no-video --demuxer=rawaudio --demuxer-rawaudio-rate=48000 for audio.
When using network streaming it's not recommended to stream both audio and video at the same time as it may cause slowdowns. In general network streaming has more lag and delay compared to USB, it is worth the time to set it up, especially for gameplay recording.
USB streaming
To stream via usb you need the UsbStream program, it's built using .NET core and is compatible with linux as well.
First of all you should make sure to install .NET core 3 on your pc, then proceed to setup the drivers, this step is needed only the first time:
Driver setup on windows
On windows you may get the device not found or platform not supported errors or very bad performance on the stream, in this case you may have the wrong driver set up.
Plug your switch in the computer while running SysDVR in USB mode and launch zadig install the libusb-win32 driver for the "Nintendo Switch" device. Before installing make sure the target device USB ID is 057e 3006, if it's different the sysmodule may not be running, try waiting a bit (it should start around 20 seconds after the console boot) or check again your setup.
This won't interfere with other applications that communicate with the switch via usb as this sysmodule uses a different product id.
Driver setup on linux
On linux you may have errors about loading the libusb-1.0 library, this happens when the file name is different than the one expected by dotnet, you can make a symlink as described on the LibUsbDotNet repo:
sudo find / -name "libusb-1.0*.so*" and then
cd /lib/x86_64-linux-gnu
sudo ln -s libusb-1.0.so.0 libusb-1.0.so
(Example commands, change the paths with the one you find on your pc)
Streaming
Most Windows users can simply use UsbStreamGUI, it will allow you to select the streaming mode and launch UsbStream directly.
Linux users will have to use the UsbStream command line interface (Note that this is available on windows too and provides a few more options compared to UsbStreamGUI)
Launch UsbStream like this: UsbStream video audio
These are valid streaming modes:
stdin : pipes the received data directly to a video player via stdin, this will use no caching so you'll have low delay but it may lag. This will likely require you to provide the args to pass to the player, you can do so like this: video stdin args ""
mpv : same as stdin but will automatically set up the args for mpv so it just requires the path
tcp : opens a tcp server so players can connect to it and use their own caching mechanism to remove or reduce lag (at the price of an higher delay)
file : writes the received data directly to a file so it can be converted to a common format later.
When using mpv the arg is the path of mpv on your pc (use the .com file on windows), you have to repeat it twice if using both streams.
The tcp option requires a free port number and the file option the output file path.
To disable a stream just omit the name and its fields.
Example commands:
UsbStream audio mpv C:/programs/mpv/mpv : Plays audio via mpv located at C:/programs/mpv/mpv, video is ignored
UsbStream video mpv ./mpv audio mpv ./mpv : Plays video and audio via mpv (path has to be specified twice)
UsbStream video tcp 1337 audio file C:/audio.raw : Streams video over port 1337 while saving audio to disk
Launching UsbStream without any parameter will display more options and examples.
To connect to the tcp streams you can use: mpv tcp://localhost:
Changelog
Fix video recording when recording two videos in a row (#307)
Added an option to disable controller input when playing through a PC (#315)
Added Spanish language by @unaigonzalezz (#290)
Added Brazilian Portuguese language by @discollizard (#293)