RetroPie forum home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Selph Scraper Video Previews not working - yuv420p vs yuv444p?

    Help and Support
    scraper video previews
    2
    2
    140
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nerevarine
      nerevarine last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • sleve_mcdichael
        sleve_mcdichael last edited by sleve_mcdichael

        Put this in your /usr/local/bin folder and make it executable with chmod +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
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        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.