Video previews paths
-
I'm having a similar issue and can't seem to find any documentation on it. I've spent hours looking. I have my video previews working for several other systems but Arcade (Mame2003) I can't get them to cooperate. Not sure if it makes a difference but I am transfering vidoe previews that I used with hyperspin. I have tried mp4 files and flv and tried placing in 2 different folders. First I tried /home/pi/retropie/roms/arcade/images which was the path i used for the other emulators. I also tried /opt/retropie/configs/all/downloaded_images/arcade. Help!
-
@dj-wheels The configuration of video previews is more than just copying the video files, you need to modify the
gamelist
files used by Emulationstation to show the media and add the path to those files to each game.
The gamelist files are in the/home/pi/.emulationstation/gamelists
folder, each system has it's owngamelist.xml
file (e.gnes
,arcade
, etc). The gamelist XML file is an organized list of games, with information about each game, including the path to theimage
andvideo
associated with the game. See https://retropie.org.uk/docs/EmulationStation/#scraper for more details about the format of these files.
In order for the video previews to show, you need to modify these XML files and add the path to your video for each game. -
I was just having this same issue over the weekend. MAME and FBA gamelists had the video snaps had the correct path. I turned off OMX player and found all the MAME and FBA video would worked. I came across some posts saying they needed to be re-encoded to work with OMX player. I downloaded handbrake, copied my MAME and FBA snaps to my pc and encoded them, copied them back and was good. It took a few tries, mainly I've never used handbrake and had to figure out the batch encode and it was adding a numeric suffix to the names and a few other minor settings. For example, Asteroi1-video.mp4 would be named Asteroi1-video-24.mp4. Once I figured how to chop that number value out of the batch process, it was good.
I can try to post some links if I comes across it or do a quick write-up on settings I used maybe tonight. That was the one thing people weren't posting. They'd just say used a preset but there are so many presets in handbrake.
Like mitu said the gamelist video path needs to be there. The sselph scrapper should have worked if you enabled video preview in the scrapper settings. I'm still new to all this so I'm no expert but it at least worked for me that way.
Actually, here are 2 posts I got good info from. Some people do tell you their setting they used to encode. The one post shows the MAME and FBA snaps codec format is 4:4:4 and won't work with OMX but the re-encoded is 4:2:0 and works. Some were installing handbrake on the PI, I ended up using the desktop version for mine. It was fast to do.
https://www.reddit.com/r/RetroPie/comments/73frxa/omx_player_kills_my_mame_video_previews/
Heres a handbrake link to remove the {title}suffix so -24 in my example. In prefs/output, format is set to {source}{title}, you just need to delete {title} and will not suffix the video name essentially breaking your gamelist path because of a new file name.
https://handbrake.fr/docs/en/latest/technical/automatic-file-naming.html
Also, just make sure you stay with .mp4, mine kept writing them a m4v til I set it up right. Otherwise you'd have to modify gamelist to reflect a new file extension. I didn't feel like spending the time to do that. Video snap sound isn't working for me, did with OMX off I think but I'm fine with it for now. Hope this helps.
-
@mitu thanks for responding. I'm not disputing anything you have said, but up to this point I haven't had to use scraper to download videos for the systems I have running (Atari 2600,Atari 7800,Nes and Daphne) nor did I have to modify the gameslists. I would rather not use scraper if I don't have to, especially since I already have all the videos I need. I simply put the roms in their proper folder and videos in their folder and everything has worked to this point. This is the way I learned from various tutorials and forums. I also noticed my gameslists file for Atari 2600 only lists 9 games but I have about 75 roms all working with their respective videos in Emulationstation. Why is Mame any different?
@pickaxepete thanks for the info. I tried disabling omx player but the Mame videos still didn't play.
-
@dj-wheels it's not that MAME is different in any way. It was explained in another post somewhere, but some of the sources for MAME videos encoded then with the fault MAME video encoding coded which is actually not supported by OMX player.
As such, if you're getting those videos they won't work without re-encoding.
Edit: unless you're referring to the paths. That I can't really comment on.
-
@pjft said in Video previews paths:
As such, if you're getting those videos they won't work without re-encoding.
… which can be done, among other ways, by a simple script by me or a more sophisticated one by @hiulit.
-
Thanks guys! I got the Mame videos working. I copied my mame xml file over from my hyperspin folder and I used the scraper because I didn't feel like re-encoding. I also had to turn off the OMX player (HW accelerated) again.
-
Ugh. After adding a few more systems the videos started to lag and freeze. I tried encoding with handbrake, but they look horrible. All of this scripting stuff is a bit over my head. I think I'm just going to delete the arcade/mame videos, turn the OMX player back on and be content with static images for Mame for now.
-
@dj-wheels Hi.
Don't give up.
This post may have some useful settings for the videos:
https://retropie.org.uk/forum/topic/11131/what-is-the-best-video-preview-resolution/4
VLC will indeed end up lagging and/or overheating depending on the resolution.
Handbrake usually does a great job, have you tried doing it on your desktop with the application GUI, instead of the command line version? Using one of their presets - even the 640x480 one - works well.
-
@pjft
Thank you. Those setting seem to be working very well so far with the decoding! -
@mitu You really need to edit the list and add video tag for every game? You can't just say "all my videos are in /roms/snes/snaps/$name.mp4 ?
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.