[mythtv-users] mythrename.pl weirdness

Michael T. Dean mtdean at thirdcontact.com
Sun Mar 19 05:19:48 UTC 2006


On 03/17/2006 12:47 AM, casey dunn wrote:
> Running mythrename.pl will sometimes rename .mpg to .nuv and then at a 
> later date switch it back.  Doesn't break anything, just real odd.

mythrename.pl runs the command:

file -b /path/to/recording.ext 2>/dev/null

and searches the output for "MPEG" or "mpg" (case-insensitive).  If 
found, it uses the suffix ".mpg" otherwise, it uses ".nuv".

So, what does "file -b" return on some of the recordings that are 
switching back and forth?  Have you been running mythrename.pl on 
multiple hosts (i.e. master backend/slave backends)--possibly with 
different versions of the file command on them?  What version(s) of file 
do you have?

Mike


More information about the mythtv-users mailing list