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
  • BigOnYa @ BigOnYa:
    Surprised they never made a second one.
  • K3Nv2 @ K3Nv2:
    It takes two was their newest different theme
  • BigOnYa @ BigOnYa:
    I didn't care for that one so much, but didn't play it much either.
  • BigOnYa @ BigOnYa:
    I just played little of "Still Wakes The Deep" , just came to gamepass today, its alright, kinda creepy. I'm not usually a horror game fan, but it looks really good graphic wise, esp w 4k. I admit it made me jump a few times.
  • LNLenost @ LNLenost:
    Anyone here using the 3DS?
  • LNLenost @ LNLenost:
    do u have pretendo?
  • LNLenost @ LNLenost:
    whats ur code?
  • B @ btjunior:
    i dont have pretendo sorry
  • LNLenost @ LNLenost:
    oh ok
  • LNLenost @ LNLenost:
    well if ur console isnt modded i suggest u to mod it
  • B @ btjunior:
    also, just curius, does the freinds app still work after the shutdown?
  • LNLenost @ LNLenost:
    yes
  • B @ btjunior:
    nice
  • LNLenost @ LNLenost:
    but u cant play online games anymore :(
  • LNLenost @ LNLenost:
    i miss going in other peoples town
  • B @ btjunior:
    yeah
  • LNLenost @ LNLenost:
    i have a friend named Pineapple (@pineappleJuice hi). we played a lot the day b4 the server shutdown
  • K3Nv2 @ K3Nv2:
    I preten to know doe
  • BigOnYa @ BigOnYa:
    @LNLenost how well is the pretendo servers, you ever get kicked off games when playing online?
    +1
  • LNLenost @ LNLenost:
    @BigOnYa not always you get kicked. it happens rarely to me.
    +1
  • LNLenost @ LNLenost:
    ofc they're not great, but props to them for making this
    +1
  • LNLenost @ LNLenost:
    btw, I decided to make the nintendo support team going insane
  • LNLenost @ LNLenost:
    i told them my badges disappeared after i opened the badge arcade after the shutdown, but actually they disappeared because i opened the badge arcade w/ pretendo
  • AcuteBulbasaurappears @ AcuteBulbasaurappears:
    Hey, is there anybody who knows how to create wuhb-files? :) I would like to create forwarders for two Wii-channels: https://gbatemp.net/threads/wuhb-to-vwii-channel-request.657253/#post-10441514
    AcuteBulbasaurappears @ AcuteBulbasaurappears: Hey, is there anybody who knows how to create wuhb-files? :) I would like to create forwarders...