Homebrew RELEASE pPlay: switch video player

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
Hi guys,

First sorry for not looking closely at this thread, i'm a little out of development since a few months, i'm doing this since a lot of years (developing) and i think i need a little (big) beak :)

I did saw @ShroomKing work thought (thanks to his github PR), thanks to him for improving pPlay. I also needs to thanks @DarkMatterCore for usbhostfs I guess :)

Since yesterday i did take the time to merge his changes and fix a few things (including subtitles).
Please note that I was not able to test usb.

So you'll find a new version of pPlay on the release page (3.3) !

https://github.com/Cpasjuste/pplay/releases/tag/v3.3
 
Last edited by cpasjuste,

Kyrn

Member
Newcomer
Joined
May 18, 2019
Messages
10
Trophies
0
Age
48
XP
376
Country
Sweden
Hi!

I just found out about this great homebrew the other day and after trying it out i downloaded the source and started adding some features to the OSD with options set/read in the config file of the app. @cpasjuste Would you be interested in more collaborators on this project?
I’m planning to use it also for music playback so i’m thinking playlists and other features too.
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
Hi!

I just found out about this great homebrew the other day and after trying it out i downloaded the source and started adding some features to the OSD with options set/read in the config file of the app. @cpasjuste Would you be interested in more collaborators on this project?
I’m planning to use it also for music playback so i’m thinking playlists and other features too.
Hi,

You're more than welcome, of course. The project (as all my projects) is open source, and it's one of the reasons :)

A few dev notes, to @ShroomKing and @Kyrn :

- I use a custom ffmpeg build because the devkitpro one is "stripped" (missing some codecs/demuxers..). You can see how to compile it here: https://github.com/Cpasjuste/pplay/blob/master/ffmpeg.sh
- @ShroomKing , there is a cmake target to build the nro (and the release package)
- You can (should) build it for linux for faster development (unless you're doing switch specific stuff, of course)
- I use CLion ide to handle the project, it's a great ide (you can get free licence on request)
 
Last edited by cpasjuste,

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
@cpasjuste It seems the latest official release breaks the USB mass storage option from the + button menu. According to a friend, pressing A on it does nothing (compared to the build from @ShroomKing). I just wanted to let you know this.

Also, it seems the print code doesn't parse strings as UTF-8. This results in garbled text in the file browser while displaying file/directory names that hold UTF-8 codepoints. All fs strings should be handled as UTF-8.

@Kyrn using pPlay as an audio player sounds great. If possible, displaying files with unsupported extensions would be great - in the end, file extensions don't really mean anything at all.

Adding some sort of mark right next to videos that have already been played would be great as well.
 

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
Hi @cpasjuste testing pplay 3.3 right now and USB doesn't seem to work, tried in my 2T HDD and when press A on Usb tab nothing happens, I did a clean exit from PC.
Just for the record, safely removing a NTFS drive from a PC is no longer mandatory since libusbhsfs v0.2.2.

It is still, however, good practice, so keep doing it.
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
@cpasjuste It seems the latest official release breaks the USB mass storage option from the + button menu. According to a friend, pressing A on it does nothing (compared to the build from @ShroomKing). I just wanted to let you know this.

Also, it seems the print code doesn't parse strings as UTF-8. This results in garbled text in the file browser while displaying file/directory names that hold UTF-8 codepoints. All fs strings should be handled as UTF-8.

@Kyrn using pPlay as an audio player sounds great. If possible, displaying files with unsupported extensions would be great - in the end, file extensions don't really mean anything at all.

Adding some sort of mark right next to videos that have already been played would be great as well.

Erf, unfortunately i can't really test usb stuff. Tomorrow i'll try to take a closer look to the changes I made, but I don't think I did modify something on the usb code from @ShroomKing. Would be great if he could debug that :)

For the utf part, this is something I need to do since a while in my libcross2d lib, but... well... :)
 
Last edited by cpasjuste,

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
@cpasjuste I recall @ShroomKing was looking for a way to update the elements from the + button menu at runtime. It'd be nice to actually display a submenu with all the available UMS devices instead of a hardcoded/configurable list.
Is it possible to use an usb-c pen drive? Is it possible to debug this (usb host) without a dock at all ?
 
Last edited by cpasjuste,

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
Is it possible to use an usb-c pen drive? Is it possible to debug this (usb host) without a dock at all ?
Yes. USB3 storage devices also implement the legacy Bulk-Only Transport protocol used by USB2 storage devices, which is also the protocol supported by my driver. And sure, you can use USB-C OTG adapters in handheld mode.
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,827
Trophies
1
Age
44
XP
6,606
Country
Germany
@cpasjuste Since you're here (for a short amount of time at least?) I'd like to thank you very much for the update and I wanna drop, that FTP does not work but worked in 2.1 according to other users here.
If you can fix FTP by any chance before you disappear again (which is well deserved!), that's be amazing!
I'd love to access my drive that is hanging on my Fritz!Box (popular german router).
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
Yes. USB3 storage devices also implement the legacy Bulk-Only Transport protocol used by USB2 storage devices, which is also the protocol supported by my driver. And sure, you can use USB-C OTG adapters in handheld mode.

Hi @DarkMatterCore,

I just installed the devkitpro switch environment today on a new computer (so all is stock), but liblwext4 fail to compile. Do you have an idea of what on going on ? :)
 

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
Hi @DarkMatterCore,

I just installed the devkitpro switch environment today on a new computer (so all is stock), but liblwext4 fail to compile. Do you have an idea of what on going on ? :)
Take a look at line 23. cmake is generating a command line for aarch64-none-elf-gcc where the specs file is defined twice - maybe that's the issue.

Which Linux distro are you using? And which steps did you exactly follow to compile lwext4?
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
Take a look at line 23. cmake is generating a command line for aarch64-none-elf-gcc where the specs file is defined twice - maybe that's the issue.

Which Linux distro are you using? And which steps did you exactly follow to compile lwext4?

I'm using ubuntu (20.04), and i just use "dkp-makepkg" for building. I'm used to pacman, i did handle a lot of switch packages, but i didn't want to go further yet :) I wonder if you could try to compile it with an up to date pacman packages (pacman -Syyu) to see if the problem is on my side.

What is very strange is i didn't had this problem yesterday on another computer (ubuntu 20.04 too) and an up to date pacman packages... Very strange...
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
I'm using ubuntu (20.04), and i just use "dkp-makepkg" for building. I'm used to pacman, i did handle a lot of switch packages, but i didn't want to go further yet :) I wonder if you could try to compile it with an up to date pacman packages (pacman -Syyu) to see if the problem is on my side.

What is very strange is i didn't had this problem yesterday on another computer (ubuntu 20.04 too) and an up to date pacman packages... Very strange...
Ok, it seems we've spotted a problem in latest devkitpro updates, "we" are working on it.
 
  • Like
Reactions: cucholix

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
I could gladly help you fix this using UTF-8 helper functions from libnx if you point me in the right direction. :)

Unfortunately this won't be easy. I need to implement this in my libcross2d library, but this will require some time (it should not break anything). But this is on my todo !
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...