Help testing: Random Video Screensaver on Main Branch
-
@TMNTturtlguy the script saves sources at
~/src
.Edit: typo
-
@pjft said in Help testing: Random Video Screensaver on Main Branch:
Not a dumb question at all. I suppose @meleu would know where the code is compiled to. That's where you'd want to look into.
I've just done a final push to the PR, updating a few things that had gone missing. All seems to be good to go on my end, but more testing is always encouraged and appreciated.
@Hex : the Alsa test works fine, and actually when you change it and exit the options menu the video player is restarted immediately with the new audio option, so no worries about that. Do test it, but it seems to work well.
I do get an error on my end - I believe when set to alsa:hw:1,0 for "ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card".
Unsure if it's because it's not a valid option or if it's because I don't have an external card, but thought you'd like to know.
@TMNTturtlguy one thing you may want to do is to just do it old school style.
https://retropie.org.uk/forum/post/82820
I didn't test those instructions but they should work.
@pjft Yes if you dont have a second USB cad then it errors out. Its not harmful.
For those who are testing you can manually test it with a keyboard. you dont need the script or anything else
$ git clone URL DIR_NAME
$ cd DIR_NAME
$ mkdir build && cd build
$ cmake ..
$ make -j 2
"-j 2" if using Pi 2/3, omit if pi 1/zero
For pi 1/Zero you have less RAM than necessary to compile, so you need the script.To run the executable
$ ../emulationstation
This allows you to test without installing and disturbing stock ESTo update build :
$ cd DIR_NAME/build
// Make sure you are on the correct branch
git branch
// Get updates
git pull
// Make same as above
make -j 2
-
@Hex Thanks for the info - @meleu script is so fun though!
@pjft after uninstalling and reinstalling i have your current build. Works well, thoughts below.
@meleu I think something broke in the script after the last update? It was working before updating the builds, now you must uninstall the build and reinstall it to get the newest updates.@pjft - thoughts on the build
- The screen saver works really well, as expected
- I like the text options, work well.
- sounds settings, OMX Player Audio Device - there are a ton of options, most users wont have any idea what all those mean the way they are presented. I think a lot of people will mess with them and the forum will be flooded with complaints and questions.
- Video Options - on the 4:3 menu both OMX player options are identical because they get cut of now. I don't know which one i am changing. They both say: USE OMX VIDEO PLAYER (FAST) FOR...
I think we need to shorten them, OMX VIDEO (FAST) PREVIEW and OMX VIDEO (FAST) SCRNSVR
-
@pjft I think Video settings should be shifted to Other Settings. Video player for previews and screensaver can be same always so a single setting should work.
-
@TMNTturtlguy thanks, good catch on the option length on 4:3! Could you update and check again? I removed "use" and "video". Let's see if it helps!
As for the audio options, they're already on the main branch, @Hex put them together as he has an external sound card so he needed a few options there.
Are you referring to the OMX ones in particular? I think it's a good question and good feedback in general. Instead of having them be literally the option text that's passed to OMX Player it could be something more user friendly, like
HDMI -> HDMI
Alsa:hw:0,0 -> External sound card 1
Alsa:hw:1,0 -> External sound card 2
Local -> headphone jack
Both -> DefaultIs something like this (assuming that I have them all correct) helpful? We could then do the option to parameters conversion via code.
Thoughts?
-
@pjft I have the girls now for a few hours until they go to bed! Will test in a few hours and let you know, you will probably be getting rest by then!
Yes i was talking about the OMX audio options in particular. I think @hex were fine additions. I think your new suggestion is much better! External Sound Card means something to me! Alsa:hw:0,0 means nothing! I think your list is good if it reads like I think your intentions are, i would order them like this if it was my setup:
Default
HDMI Only
Headphone Only
External Sound Card 1
External Sound Card 2Does this make sense?
-
@Hex The entire video settings options going into the other settings menu?
On the meeting the two video options, I'd rather not. VLC doesn't perform well on the Pi, but there's unfortunately a use case for having it in the gamelist view, which is if you're using a theme with overlays on top of the video. OMX Player doesn't support that. However, it ends up overheating the system after a while, so having it as a screensaver player is far from ideal, unless you have a fan.
If you confirm that the screensaver is running on your pi and the HDMI signal isn't failing, I'll remove the VLC screensaver option altogether. I had just added it as in the previous posts we were considering the possibility that OMX Player would in some configurations not be a valid option because of that, so leaving VLC as a fail safe option was my attempt at that.
I'd love to remove it, though, so if you confirm that things are running for you on the Pi without the game info being displayed, that's good enough for me to remove it! Thanks.
-
@TMNTturtlguy I think so, if they are accurate representations of what they mean - I was mostly making informed guesses :)
@Hex - over to you.
-
@pjft So I compiled on pi3 and hdmi fails if subtitles are enabled with omxplayer . screensaver with vlc is damn slow.
"""The entire video settings options going into the other settings menu?"""
In my opinion it would be helpfulRegarding the audio options it might be possible to rename them that way but i am directly extracting the preference and sending it to omxplayer so if you rename it omxplayer will receive it as
omxplayer -o "External Sound Card 1"
which will not work at all. I will need to add a lot of code to translate option to parameter. I would rather have it the current way. I agree it is a bit vague but when you go looking for "Splash screen no sound usb" you will become familiar with these parameters. Else you would just need the default one ,
both
.I can change it if you guys think so. It will not take much time.
-
@Hex can you expand on hdmi fails with omx player with titles on? Does the audio, the video or both fail? I am running on pi3 with hdmi to 4:3 monitor and 3.5 jack and it is working. I had 1 instance where I got a black screensaver, after changing options in the menu but then could not reproduce it, it ran correctly every time after that. As for audio settings, as a non computer non coder background the asla or whatever naming means nothing to me. The options are very confusing. Also having these options in this menu and then audio options in the retropie menu will be very confusing as neither place tells me what the setting is doing. We will have users forcing audio in the boot configs and users forcing hdmi or 3.5m in the retropie menu and now we are adding even more options forcing audio from this menu. What happens when i go to retropie and force 3.5 and then go to the start menu and force hdmi?
Not trying to be difficult here, I am just approaching this from the common user trying to build a simple system with no knowledge of the underpinnings.
-
@TMNTturtlguy you are right, I will set it up as something simpler later. Since the binary 2.2 is already out there is not much hurry to fix it. I shall submit a PR soon with fixes
-
@TMNTturtlguy Regarding the HDMI I have overscan enabled so I am not the right person to work this with. In my opinion asking users to disable overscan and have black stripes just for video screensavers is not done. Disabling the subtitles sounds as a reasonable request to enable this feature
-
@Hex @pjft let me install the newest update on both of my builds. I have been testing on my 4:3 today as that is the current build I am working on with theme updates. I will update that to check the menu text. I will then test on my 16:9 with overscan enabled to remove the black bars as @Hex has in his setup. Just as an FYI, my previous testing the last few days have all been on 16:9 and it worked properly. That was prior to all of the options on how to display the text.
-
@meleu I think something broke in the script after the last update?
Thanks for pointing it out. Actually the script wasn't broken, just a little dumb. :-)
The last changes @pjft made in his repo had conflicts with the previous version and when the script was trying to
git pull
, it was failing and, with any checking, going ahead with compilation.I've just fixed and added a checking after the
git pull
, if it fails (probably due to conflicts) itrm -rf
the local repo and thengit clone
it again (if it fails again, probably it's a connection problem).Update your script and you'll get the delta version with this fix.
Cheers!
-
@meleu rather than
rm -rf
we can do the following:git merge --abort && git pull -X theirs
This will preserve the build dir rather that making a clean compile thus saving compile time. All changed files will be recompiled by
make
. This is a much better solution on failure ofgit pull
To combine all of theme in one sentence you can have the command as such :
git pull || git merge --abort && git pull -X theirs
The
||
ensures thatgit merge --abort && git pull -X theirs
only runs ifgit pull
fails
The&&
ensures thatgit pull -X theirs
only runs ifgit merge --abort
succeedsThe final status will give you a success or fatal error status so its a win.
-
@Hex Better and very much elegant with this git sorcery! Will change it ASAP.
-
@pjft @hex i have downloaded the most recent build and tested on both my 4:3 and 16:9 pi units. 1 has overscan enabled, the other has it disabled. I am running on a pi 3 in both cases. As of right now both are on monitors, not TV's. Both cases testing audio with the both setting and running audio through 3.5 m jack.
Both builds run very well, both builds run with all setting for game name, always on, never and beginning and end. I have not lost my HDMI signal in any testing whether that is letting them sit and wait for the screensaver to come on, or pressing select.
I have had the 4:3 running screensavers for over an hour, the 16:9 for about a half hour. Randomly waking it up and letting them run. Works great on my end, I cannot replicate the HDMI loss using OMX.
As for the menu here is a screenshot. It is much improved on the 4:3 however you can see that it is still not ideal. I think it is fine in the end. @pjft note the favorites system logo in the background!
-
@TMNTturtlguy What resolution is your setup running?
-
@Hex 16:9 is at default display preferred = 1920 x 1080
4:30 is at default display preferred = 1600 x 1200
-
@TMNTturtlguy love it :) will get onto that after this is finished.
I'll try to reduce screensaver to something smaller even buy a few letters. I agree it's ugly at the moment.
The overscan/HDMI signal thingie is very much a thing, and it's unclear what causes it - we only know it does. In fact if you search in the forums for the splash screen video (which uses OMX Player) you'll see that the disable overscan recommendation comes from there as some setups have the exact same problem. I suspect there are some users who can't have the splash screen video at all because it doesn't work for them for that reason, though I'm not fully sure.
I myself ran into it a few months ago on the same TV when I changed frequency from 50hz to 60hz, and had to disable overscan to make it work. I agree it's not a nice thing to ask of users - though you're thinking of the opposite: what we need to do is to disable overscan, which means removing the black borders, not adding them. The black borders are an extra layer in the rendering pipeline and that's the problem. That being said, some people with specific TVs or monitors might need that option, so I'm not keen on forcing them to change it.
I have no problems with keeping OMX only as the screensaver default, but only if it's guaranteed it works for everyone without the captions showing at least. Otherwise it'll just be a flood of complaints in the forums, that's why I'm not opposed to providing VLC as an option. It can really be crippling, and it's not something that has been solved.
We can remove the option later, I suppose.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.