Kodi not recognising my .avi files.
#1
Morning,

I've just set up my raspberry pi 2 with openelec. I've got kodi running and as i've used it before, setting it up was a doddle. I've managed to set up all movies from external HDD. All the movies have the correct naming convention and they've scraped all the fileart and info from the movie database.

The problem i have is that there are a few movies missing. I had a look at those movies and noticed that all of the missing ones are .avi files. For example I've got a folder called "Rocky" and inside are all of the rocky films but they are all avi files. the same goes for star wars. At first i thought it was because they were all in one folder, but then the same happens to scarface which is in its own folder.

Is there a way of getting kodi to recognise these files?

meddy.
Reply
#2
Being .avi is not the issue (avi is a very common format).
I suspect the sharing permissions for those files are different (perhaps they were downloaded to a directory without sharing enabled and then copied and they've ended up with different permissions).
Can you see the files through file browser (rather than library) interface?
How is the hard disk formatted? (e.g. ext3 or ntfs?)

Can you ssh in to Pi and run
Code:
ls -l <directory>
for a directory that works and one that doesn't?
Reply
#3
the HDD is formated NTFS. I can usually see these file and access them on my LGTV.
Reply
#4
ok so i did ls - l on Watchmen

OpenELEC:/var/media/Elements/Movies # ls -l Watchmen
total 1433580
-rw-r--r-- 1 root root 5632 Oct 14 2009 Thumbs.db
-rw-r--r-- 2 root root 732735488 Nov 3 18:32 Watchmen (2009).CD1.avi
-rw-r--r-- 2 root root 735240192 Nov 3 18:32 Watchmen (2009).CD2.avi

If i do the same on the Rocky folder it is this:

# ls -l Rocky - The Complete Saga [2007]
ls: Rocky: No such file or directory
ls: -: No such file or directory
ls: The: No such file or directory
ls: Complete: No such file or directory
ls: Saga: No such file or directory
ls: [2007]: No such file or directory

I take it i need to rename my folder?
Reply
#5
Why not quote the directory name?
Like # ls -l "Rocky - The Complete Saga [2007]"
It is very common that command line arguments are space separated and if an argument (like your dir name) contains spaces these have to be escaped somehow. Easiest is to just quote the whole name...
Bo Berglund
Sweden
Reply
#6
For best results, the folder name has to be exactly the same as the name on the site you are using for scraping.

There is no movie called "Rocky - The Complete Saga" from 2007 on either themoviedatabase or imdb, which is why it doesn't get scraped.
The name of the file gets ignored, unless you use very specific scraping methods.

Take a look at Naming_video_files/Movies (wiki)
Reply
#7
i take it that kodi will not look in the complete saga folder and find the following:

OpenELEC:/var/media/Elements/Movies # cd "Rocky - The Complete Saga [2007]"
OpenELEC:/var/media/Elements/Movies/Rocky - The Complete Saga [2007] # ls
Rocky (1976).avi Rocky II (1979).avi Rocky IV (1985).avi
Rocky Balboa (2006).avi Rocky III (1982).avi Rocky V (1990).avi
Reply
#8
this is the permissions on that Rocky folder

ls -l "Rocky - The Complete Saga [2007]"
total 4307728
-rw-r--r-- 2 root root 735143936 Nov 3 18:26 Rocky (1976).avi
-rw-r--r-- 2 root root 735412224 Nov 3 18:26 Rocky Balboa (2006).avi
-rw-r--r-- 2 root root 735031296 Nov 3 18:26 Rocky II (1979).avi
-rw-r--r-- 2 root root 735217664 Nov 3 18:26 Rocky III (1982).avi
-rw-r--r-- 2 root root 734945280 Nov 3 18:26 Rocky IV (1985).avi
-rw-r--r-- 2 root root 735356928 Nov 3 18:26 Rocky V (1990).avi
Reply
#9
Guys thankyou!!

I put the folder name in "quotes" and its worked - something new i've learnt.

I've also made new folders using mkdir and i've placed the rocky films in each seperate one and they are now showing. Time to change all my other folders.

Solved thanks.
Reply
#10
Or use NFO files.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi not recognising my .avi files.0