Selph Scraper Video Previews not working - yuv420p vs yuv444p?
-
Was this issue ever resolved? When I had a Pi 3b, video previews were never an issue. Now I have a 4b and I'm trying to replicate the video previews, however, a vast majority do not work. All I have learned is that the most likely culprit is the video files. I've had this issue since January 2021. Struggling because it was one of my favorite aspects of my previous emulator. Not excited by the idea of needing to pull all the files and convert them - I'm not sure how I'd accomplish that?
-
Put this in your
/usr/local/bin
folder and make it executable withchmod +x <filename>
. Run it from your video folder. Your video files will not be overwritten. New files are saved to./converted
; to use them, you must move or copy one level up to replace the original files. Repeat for each system.You may need to install ffmpeg first with
sudo apt update && sudo apt install ffmpeg
.#! /bin/bash # Script provided by Clyde mkdir -p converted # create the folder "converted" if it doesn't exist for f in *.mp4 # process all videos in the current directory do echo "$(pwd)/$f" # show the processed file's name c=$(ffprobe "$f" 2>&1 | grep -c yuv444p) # (-c)ount no. of "444p" if [ "$c" -gt 0 ] # if 444p is present, then # convert to 420p ffmpeg -i "$f" -y -pix_fmt yuv420p -strict experimental converted/"$f" fi done
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.