@Alexis said:
cmdstr2 = """ffmpeg -i " + moviespec + " 2>&1 | sed -n 's/., (.) fp.*/\1/p'"""
Okay, I forgot to escape one of the backslashes in the sed string. The proper python-fu is:
cmdstr3 = "\"\"ffmpeg -i " + moviespec + " 2>&1 | sed -n 's/.*, \(.*\) fp.*/\\1/p'\"\""
...which properly returns the FPS of the movie file.
Thanks so much for getting me started on this! I'm converting my bash scripts to python and learning the language in the process!