Homebrew Question Anyone working on a Moonlight app?

natinusala

Win32 error 31 is not an error
Member
Joined
Dec 1, 2012
Messages
1,032
Trophies
0
Age
44
XP
2,914
Country
France
  • Like
Reactions: mss1988

knopex

Member
Newcomer
Joined
Jun 12, 2012
Messages
21
Trophies
0
XP
418
Country
United States
There is still no support for nvdec in libnx. Without it moonlight runs super slow.

Alternatively there is another homebrew available that turns your switch into a usb screen.

Of course you need to connect your switch via USB to your pc. But it actually works, tried it myself.
Currently just lowres with 30fps.
 
  • Like
Reactions: Mnecraft368

DrNeroCF

Well-Known Member
Newcomer
Joined
Oct 12, 2016
Messages
97
Trophies
0
Age
39
XP
409
Country
United States
There is still no support for nvdec in libnx. Without it moonlight runs super slow.

Alternatively there is another homebrew available that turns your switch into a usb screen.

Of course you need to connect your switch via USB to your pc. But it actually works, tried it myself.
Currently just lowres with 30fps.

Have a look to this? Haven't heard of it and I can't find anything on it.
 
  • Like
Reactions: Mnecraft368

Taelyan

Member
Newcomer
Joined
Nov 24, 2018
Messages
5
Trophies
0
XP
89
Country
Argentina
There is still no support for nvdec in libnx. Without it moonlight runs super slow.

Alternatively there is another homebrew available that turns your switch into a usb screen.

Of course you need to connect your switch via USB to your pc. But it actually works, tried it myself.
Currently just lowres with 30fps.
Is nvdec being worked on?, Last I heard it was blocked because there was no access to the GPU, is that solved?
 

Taelyan

Member
Newcomer
Joined
Nov 24, 2018
Messages
5
Trophies
0
XP
89
Country
Argentina
Seems like FFmpeg has been merged into libnx (can't post links):

github devkitPro/pacman-packages/issues/30

This was listed as dependency for switch-libavcodec in the moonlight-switch repo.

I am going to try to setup everything locally to build the repo and try to update the dependency but it is the first time I try to do something like that, can take a while...
 

Taelyan

Member
Newcomer
Joined
Nov 24, 2018
Messages
5
Trophies
0
XP
89
Country
Argentina
ffmpeg is not hardware decoding though

When I build the switch-libavcodec I am getting this.


External libraries providing hardware acceleration:

Libraries:
avcodec avutil

Programs:

Enabled decoders:
h264

Enabled encoders:

Enabled hwaccels:

Enabled parsers:

Enabled demuxers:

Enabled muxers:

Enabled protocols:

Enabled filters:

Enabled bsfs:
null

Enabled indevs:

Enabled outdevs:

License: LGPL version 2.1 or later


You are right, the part about libraries providing hw acceleration is still empty. :sad:

Correct me if I am wrong, the problem is that we cannot tap on the h264 decoding capabilities of the Tegra chip in order to decode the stream. How are the homebrew video players dealing with this?, are they decoding in software?

I really want this to happen, there has to be a way to contribute.
 

natinusala

Win32 error 31 is not an error
Member
Joined
Dec 1, 2012
Messages
1,032
Trophies
0
Age
44
XP
2,914
Country
France
It looks like VideoSetupNX uses the SDK and doesn't really count as a homebrew (depends on the definition you give it). As a result, it has nvdec but is illegal.

PlayerNX uses ffmpeg but I don't know if it works very well. ffmpeg may be enough to read a local video but certainly not for streaming.
 

Miqote

Well-Known Member
Member
Joined
May 2, 2018
Messages
259
Trophies
0
XP
822
Country
Macedonia, The Former Yugoslav Republic of
It looks like VideoSetupNX uses the SDK and doesn't really count as a homebrew (depends on the definition you give it). As a result, it has nvdec but is illegal.
I created VideoSetupNX using C#/FFMPEG and it doesn't actually deal with any Nintendo Switch files. I don't even have the SDK. I think you're referring to the tool it recommends using, Homebrew Web Framework. (Simply because there's no non-SDK solution to do it. Otherwise, I would recommend that.)

Although you were probably just simplifying it for the end user, now that I look at it. I'd prefer a homebrew solution for playing the videos, but I don't think that's possible with the current library, right?

PlayerNX or VideoSetupNX
VideoSetupNX simply converts files to a MP4 format that the switch can natively play, along with fancy HTML (Modified, the original made by @OkazakiTheOtaku). Then you use a tool built with the SDK (What is what @natinusala was referring to) to package the files and the HTML code (which literally just loads the video file) in a NSP file. It's not a homebrew video player, more like a... preperation tool?
 
Last edited by Miqote,

Miqote

Well-Known Member
Member
Joined
May 2, 2018
Messages
259
Trophies
0
XP
822
Country
Macedonia, The Former Yugoslav Republic of
But the actual web player is in the SDK right ?
I'm not 100% sure - I assumed the switch just natively supported the MP4 format as part of it's web browser. If the web player is something built from the ground up in the SDK (like it was included in a game or something originally), then yes. I'll freely admit you're way more knowledgable about this topic then I am, my extent of devving on the switch is just basic Hello world and controller testing stuff.
 
Last edited by Miqote,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    @ZeroT21, The Russians are after you lol.
  • K3Nv2 @ K3Nv2:
    Send me your ip I'll remotely fix it
  • ZeroT21 @ ZeroT21:
    @K3Nv2 my head needs fixing if I believe you
  • ZeroT21 @ ZeroT21:
    it's kinda fun watching it happen tho
  • K3Nv2 @ K3Nv2:
    It needs fixing for other things but your pc I can fix
  • ZeroT21 @ ZeroT21:
    over 300+ virus/trojians/worms after scanning, what did I do to deserve this attention lol
  • ZeroT21 @ ZeroT21:
    tho I find it funny when i receive other people's pc/laptops in this state
  • ZeroT21 @ ZeroT21:
    i wont be upgrading unless I cant run the games i want anymore
  • K3Nv2 @ K3Nv2:
    Spill water on it good excuse
  • ZeroT21 @ ZeroT21:
    @K3Nv2 that's like a valid option if someone else is paying for ya
  • K3Nv2 @ K3Nv2:
    Daddy's wallet
  • K3Nv2 @ K3Nv2:
    Ngl hogwarts legacy has good pooping music
  • OctoAori20 @ OctoAori20:
    That's uh-
  • OctoAori20 @ OctoAori20:
    That's certainly a Dairy Queen sign lmao
  • K3Nv2 @ K3Nv2:
    You should see his help wanted signs
  • OctoAori20 @ OctoAori20:
    Ugh, so many sweat-dipwads in Sploon 3 Anarchy mode tonight
  • OctoAori20 @ OctoAori20:
    I didn't know this was "Make Octo never finish Fresh Season 2024 Catalog in Splatoon 3" month, good god
  • Veho @ Veho:
    What's the point of "confirming" games you know will get released. Like Nintendo "confirming" a Zelda sequel. "We can't be sure Nintendo is working on a new Zelda game, or if a new Zelda game will ever be released, until they officially confirm it."
  • Veho @ Veho:
    "There is literally no way to know if they will ever release a new Zelda game, it's wild speculation until they officially confirm it."
  • K3Nv2 @ K3Nv2:
    Black ops was the lesser shitter line in cock a poopoo tbf just a way to let people know it hasn't died or going a different route I guess
  • K3Nv2 @ K3Nv2:
    $70 DLC per 6 months is what it turned into
    K3Nv2 @ K3Nv2: https://youtu.be/R28ZSY2Sc2A?si=H5Lb6PNkzMhAHO_P