Fixing mythvideo missing coverart and metadata

I’ve never managed to get mythvideo to find cover art and metadata for all of my videos, but I have discovered that a lot of it has to do with the naming of your video files. So I thought I would share some tips and tricks for getting metadata and cover art to work on mythvideo.

1. Understand the file naming conventions found here –> http://www.mythtv.org/wiki/MythVideo_File_Parsing. Originally I had all of my files named in this format:

filename.(year).mp4

I found that the tmdb.py metadata script used by mythtv didn’t use the date to help isolate the video and hence there were too many videos returned from themoviedb.org and  mythvideo didn’t know which one to choose. By removing the brackets, I found that I fixed heaps of videos immediately, as the date helped to resolve multiple returned results.

eg. Back.to.the.future.(1985).mp4 would return 9 possible results.

But  Back.to.the.future.1985.mp4 would only return 1.

2. Use the correct spelling – I found quite a few videos with incorrect spelling. This cause the metadata not to be found.

Eg. How.to.loose.a.guy.in.ten.day.2003.mp4 should be How.to.lose.a.guy.in.ten.day.2003.mp4

Also watch for words spelt differently in different countries.

eg. Dont.tell.mum.the.Babysitters.Dead.1991.mp4 should be Dont.tell.mom.the.Babysitters.Dead.1991.mp4

3. Numbers are not well liked. I had heaps and heaps of trouble trying to work out these sort of filenames. I think there is a limitation with the tmdb.py script used in mythvideo as themoviedb.org site resolved these fine but not mythvideo.

10000.BC.2008.avi
2010.1984.avi
28.Days.Later.2002.mp4
50.First.Dates.2004.avi
127.Hours.2010.avi
2012.2009.mp4
300.2006.m4v
88.Minutes.2007.avi
2001.A.Space.Odyssey.1968.avi
3:10.to.Yuma.2007.mkv

I found the easiest way to deal with these file names was to put the number inside a set of single quotation marks ‘ ‘. So would get the following instead.

‘10000’.BC.2008.avi
‘2010’.1984.avi
’28’.Days.Later.2002.mp4
’50’.First.Dates.2004.avi
‘127’.Hours.2010.avi
‘2012’.2009.mp4
‘300’.2006.m4v
’88’.Minutes.2007.avi
‘2001’.A.Space.Odyssey.1968.avi
‘3:10’.to.Yuma.2007.mkv

4. Punctuation can cause issues. I found some of my files names with punctuation can fail to find metadata. The simple fix is to remove the offending punctuation.

eg. Dirty.Dancing.-.Havana.Nights.2004.avi –> Dirty.Dancing.Havana.Nights.2004.avi

 

This entry was posted in Linux, mythtv, Software, video. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *