For anyone interested here's a super quick bash script that I'm using on my RPI3 to convert videos so they work with attract mode on that platform with the MMAL mode turned on. Under software mode my videos would play 1-2 seconds and stop and the same videos under MMAL would just be a green screen with sound. I converted one using FFMPEG, compiled on the RPI3 to run in hardware mode, and the result was a working video under both software and hardware playback.
This really simple script just iterates through the videos directory converting the video and placing it in the videos2 directory. If FFMPEG is successful it deletes the original file for space reasons. Obviously you can hack this up anyway you feel fit I'm just presenting what worked for me. Once it's converted what it can you can copy the files from videos2 back to videos and , as long as your paths are ok, everything should work.
#!/bin/bash
for file in ./video/*.mp4
do
filename=$(basename "$file")
ffmpeg -i $file -s 640x480 ./video2/$filename
if [ $? -eq 0 ]
then
echo "Video converted!"
rm $file
else
echo "Failed to convert Video!"
fi
done
echo "Script completed"
A quick calculation for me was the 500 plus videos I have for my cut down romset of "common" games was about a 4hr conversion time on the RPI3 , you could test this on better hardware obviously.