[SCRIPT] RetroPie Convert Videos
-
Already a new version! RetroPie Convert Videos v2.1.0.
[2.1.0] - 2019-04-17
Added
- New option
--path
to set the path to the ROMs folder. By default it's/home/pi/RetroPie/roms
. - Warning dialog when using the
--convert-all
option saying that it can take a lot of time to convert all the videos. - Better detection of dependencies.
- Better error outputs.
I've updated the first post with the new documentation :)
- New option
-
Hi,
I'm having trouble getting this to work, any idea what I'm doing wrong? I'm trying to convert videos I've downloaded via sksyscraper that don't play due to using yuv444p.If I run
./retropie-convert-videos.sh --convert-systems "fba"
... it says ...
"Starting video conversion ..."
*.mp4 --> Can't convert! Doesn't use the Color Encoding System (C.E.S set in 'from_ces': 'yuv444p'.
1 video was unsuccessful...it only takes a few seconds for this to run so I don't think it could've checked every video in that time (there are thousands of them, which is why I only want it to convert yuv444p videos).
In the config files the following options are set:
from_ces = "yuv444p"
to_ces = "yuv420p"
scraper = "skyscraper"
roms_path = "" (I've left the roms path blank as I'm using the default folder).Any ideas?
Thanks! -
@ObscureUsername Hi there! From the looks of your log file it seems like it's not getting any video file at all.
Are you using ROM folder for gamelists & media option? Here you can see where your downloaded videos should be (expected by the script) when using that option https://retropie.org.uk/docs/Scraper/#where-are-my-scraped-media-and-metadata-saved
Also, are the downloaded videos
.mp4
? -
./retropie-convert-videos.sh --convert-systems "fba"
CLI mode -------- Inputted systems: 'fba'. Systems found: 'fba'. Starting video conversion ... fba --- Converting "*.mp4" ... (1/1) (standard_in) 1: syntax error ERROR: '*.mp4' has 0 frames! fba --- > "*.mp4" --> FAILED! 1 video failed.
I am using skyscraper and i have configured everything correctly i think.
-
@Rion Hmmm I'll take a look. It seems it has something to do with the videos path..
Did you you Use the ROM folder for gamelists & media option in Lars Muldjord's Skyscraper?
Did you set the scraper using the--scraper
option? Or via the config file? -
@hiulit said in [SCRIPT] RetroPie Convert Videos:
@Rion Hmmm I'll take a look. It seems it has something to do with the videos path..
Did you you Use the ROM folder for gamelists & media option in Lars Muldjord's Skyscraper?
Did you set the scraper using the--scraper
option? Or via the config file?@hiulit Hi again and sorry for the late reply.
I used Use the ROM folder for gamelists & media with Skyscraper and also set the scraper option to skyscraper
inside retropie-convert-videos-settings.cfg. But i did get it to work if a moved all my video files from/home/pi/RetroPie/roms/fba/media/videos
to
/home/pi/RetroPie/roms/fba/media
-
I'm not having much success. It seems like everything is setup correctly, but once it detects a video that is encoded in 444p it still decides not to convert it. Any idea what i might be doing incorrectly?
root@retropie:/home/pi/RetroPie-Convert-Videos# ./retropie-convert-videos.sh --convert-systems "arcade"
CLI modeInputted systems: 'arcade'.
Systems found: 'arcade'.Starting video conversion ...
arcade
3in1semi.mp4 --> Can't convert! Doesn't use the Color Encoding System (C.E.S set in 'from_ces': 'yuv444p'.
"numanath.mp4" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': 'yuv444p'.2 videos were unsuccessful.
-
@davidonabus said in [SCRIPT] RetroPie Convert Videos:
3in1semi.mp4 --> Can't convert! Doesn't use the Color Encoding System (C.E.S set in 'from_ces': 'yuv444p'.
"numanath.mp4" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': 'yuv444p'.2 videos were unsuccessful.
That output states those two videos aren't 444. That is why it decides not to process them.
-
@hiulit I was having this same exact error too and this solution worked for me. Maybe the path you have coded for skyscraper needs to be updated in your script?
-
Hey y'all! I've followed this little guide https://github.com/RetroPie/RetroPie-Setup/wiki/Scraper#where-are-my-scraped-media-and-metadata-saved to set up the paths to the images and videos for each scraper. In principle the script should work fine. Have those paths changed?
-
@hiulit For Skyscraper - I got this to work by copying the video files from /home/pi/roms/arcade/media/video to /home/pi/roms/arcade/media.
It wouldn't run otherwise with a few roms_path values I tried.
-
@memodellocos Where does Skyscrapper store the videos?
/home/pi/RetroPie/roms/<system>/media/video
or/home/pi/RetroPie/roms/<system>/media
Because I followed this guide https://github.com/RetroPie/RetroPie-Setup/wiki/Scraper#where-are-my-scraped-media-and-metadata-saved to get the paths for the scrapers, and here it says that Skyscraper, when setting the option ROM folder for gamelists & media, should store the videos in/home/pi/RetroPie/roms/<system>/media
.
And that's the path I have in my script (I think). Maybe Skyscraper changed the path? -
@hiulit Currently, SS uses subdirectories inside
/home/pi/RetroPie/roms/<system>/media/
for the different kinds of content. Videos go into/home/pi/RetroPie/roms/<system>/media/videos/
by default. -
@Clyde Thanks! Then I'll add it to the script. I'll let you know when I update it :)
-
-
@WeirdH No, it actually states that one video matches the 'from'-criteria but does not convert it anyway: "> "centiped-video.mp4" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': 'yuv444p'.
-
No conversion if from-criteria is met
Just tried the script but all videos that matched the 'from-criteria' were not converted:> "centiped-video.mp4" --> Don't convert! Has the same Color Encoding System (C.E.S) as 'from_ces': 'yuv444p'.
Why is there no conversion even if the criteria is met?
-
@toimas said in [SCRIPT] RetroPie Convert Videos:
Why is there no conversion even if the criteria is met?
Because the video doesn't need converting.
-
??? The video is in yuv444p... the conversion should be to yuv420p...
-
@toimas How are you running the script ? What parameters are you using ? Did you add
--to-ces yuv420p
?
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.