Page 1 of 3
Imorting hundreds of AVI-s
Posted: 2002-11-03 13:23:03
by tanel
Hello!
First I'd like to thank the author for making this great program.
Now for the question: Is it possible to get info from multiple AVIs together - like in Twink's IMDB imort, where you don't have to specify names, just run the script. I have over 100 avi-s on my HDD and it would take quite some time to import them one by one. I can move all the avi-s into one directory and then it would be great if I could just run a script and it would get all the filenames for movie titles and get their respective fileinfo. Hope You get the idea. And if possible could distinguish 2cd versions from 1cd versions. I now it's a lot to ask, but I'm really not experienced with script writing, so if anyone can do it, or direct me to one, if it has been already made, it would ease a lot of work for me or for anyone else with a big collection.
Thanking in advance,
Tanel
Posted: 2002-11-03 15:21:46
by antp
That's a very good question.
I was thinking it is not possible, but actually there is a solution.
So put all your .avi in a folder.
Then create a file called makelist.bat in this folder, containing this:
Code: Select all
for %%a in (*.avi) do echo %%a > %%a.film
Save and close this .bat file, then execute it (double click on it)
This will create a .avi.film file for each .avi file
In Explorer window, sort the files by name, so for each .avi the .avi.film file will be placed before (maybe that you will need to sort them to inverted name order to get that)
Delete the .film of the "CD2" files (or .film of "CD1" when a "CD2" exist, depends if you use inverted sort order or not, the .film must appear before the two .avi)
So you have for example :
matrix.avi.film
matrix.avi
Starwars CD1.avi.film
Starwars CD1.avi
Starwars CD2.avi
Now delete the makelist.bat files, make sure than no item is selected in Ant Movie Catalog, select all the .avi and .film files, and drag & drop all these files to Ant Movie Catalog's main window, but drag this selection from the first file, so Windows will keep the order (if you "take" the selection block from another file than the first one Windows does someting strange things).
Now everything should have been imported.
Posted: 2002-11-03 23:17:01
by tanel
Thank You, Thank You, Thank You
Works great, no problems with 1cd versions, but a small mistake was found when importing 2CD versions - had to delete the CD1.avi.film (not CD2) for them to sort right. You might want to change that on the previous post so it wouldn't be misleading for others.
Thank You again, and keep up the good work
P.S. On another note: found a small bug - when you resize the movie list so it gets hidden behind the left side of the window and you quit AMC, you can't get it to come back. This happened first to a friend of mine, and trying this, mine got messed up too. Found a solution also

In order to get the list window back I had to change a value in the moviecatalog.xml - namely ListWidth to something other than 0. Hope this helps. (AMC 3.4.0 latest, WinXP)
Posted: 2002-11-04 09:12:39
by antp
for the list size, it should be possible to resize it even when width = 0
Well, that's strange...
I'll modify my previous post for the CD1/CD2 thing
... but
Posted: 2002-11-08 14:49:42
by dunno
hi,
fine .. but that only does it with files stored on the hdds
with files on cd-rom it isn't possible
cya dun
Posted: 2002-11-08 16:29:46
by antp
with files on CD you'll have to insert each CD so it will not take much more time to drag & drop the file of the newly inserted CD to Ant Movie Catalog's window
Posted: 2002-11-11 10:14:15
by dunno
yeah, but think of DVD-R .. this would take hours
uhm .. btw.
what about implementing some functions to the scripting engine?
so it would be possible to get information from the disk as well as from the internet
bye dun
Posted: 2002-11-11 22:10:35
by antp
Sure, it should be possible, and I plan to add it; but it will be for later, it is not a high priority (currently)
Posted: 2003-06-27 21:27:47
by philippe
i made a batch based on the one before in this topic. I use sed.exe
http://www.cornerstonemag.com/sed/ to delete all the bad words in the title like : [ripped by ...] cd1 ..., so the importation is a lot easier
download sed.exe
in ant movie catalog configure :
desactivate : tools preferences 'get informations' 'import filename as title'
in french version :
decocher : outils preferences 'extraction d'infos' 'importer le nom du fichier comme titre'
made a .bat file with that :
Code: Select all
for %%a in (*.avi) do echo %%~na | sed -f filter.sed > %%a.film
for %%a in (*.mpg) do echo %%~na | sed -f filter.sed > %%a.film
for %%a in (*.mpeg) do echo %%~na | sed -f filter.sed > %%a.film
made a filter.sed file with that
Code: Select all
s/‚/é/g
s/Š/è/g
s/ˆ/ê/g
s/…/à/g
s/ƒ/â/g
s/—/ù/g
s/–/û/g
s/‡/ç/g
s/\./ /g
s/_/ /g
s/\-/ /g
s/\[.*\]//gI
s/(.*)//gI
s/ CD[1-9]*//gI
s/ fr / /gI
s/ [^ ]*french.*/ /gI
s/ [^ ]*divx.*/ /gI
s/ [^ ]*xvid.*/ /gI
s/ [^ ]*dvd.*/ /gI
s/ [^ ]*emule.*/ /gI
s/ [^ ]*edonkey.*/ /gI
s/ [^ ]*kasa.*/ /gI
s/ [^ ]*rippe.*/ /gI
s/ */ /g
if you want to modify the filters learn regular expressions here :
http://www.opengroup.org/onlinepubs/7908799/xbd/re.html
copy sed.exe , filter.sed and titles.bat in your avi folder and launch title.bat
you can now drag and drop your list in ant movie cataloger
and a little tip : if explorer hang when you are in a folder with a lot of .avi follow this link (french language) :
http://optimizer-xp.blinckers-groups.co ... ?astuce=18
Posted: 2003-08-20 20:25:53
by zevince
tres admiratif devant toutes ces possibilites !
vraiment, je decouvre avec grand plaisir ce soft !
merci !
Posted: 2003-08-27 21:45:59
by Stefan
philippe, great trick!
But do you or someone else have a trick for making a list if all movies are in subdirectories? That would be even more splendid!
Tnx
And... the same but in Folders?
Posted: 2004-03-19 01:02:18
by Guest
I want to make the same for an automatic collection of titles, but I have the moviez in folders (1 in every folder) for more "pretty" presentation in Windows.
Is posible to adapt this script but running folder by folder? And perhaps creating the .film file in the root folder for an EZ import.
Regards,
AB
Posted: 2004-07-23 07:49:21
by mastabog
I think this mass-adding of movies from files residing on hdd is a very important feature for many users (myself included). There are more and more users having tens/hundreds of movies on hdd and wishing to find that application that can get those movies and import the info for them from the web in one click ... This is the main reason i kicked ant movie catalog to the bin in favor of eXtreme Movie Manager (which does all that and much more, also scripting) which i might even pay for.
Nevertheless, I find ant movie catalog very impressive and I also understand open source projects ...
Posted: 2005-10-28 20:50:30
by pinterpeti
I've written a small console application for this kind of thing. It creates a csv file which you can import to AMC.
It can be downloaded from
http://pinterpeti.hu/
From the menu select MvList
Posted: 2006-02-15 15:52:28
by ScorEpioN
I have write a GUI for MvList :
viewtopic.php?t=1453
Posted: 2006-06-08 08:53:58
by spacekris
@pinterpeti: thanks very much, seems to work!
@scorpion: i cant see the scroll-fields under "repertoire a lister" et "repertoire du fichier csv".
and as a non french speaker can you add (for other people,i figured it out, not difficult though

the english words? thx
Import mass of avi files
Posted: 2007-01-30 18:58:53
by zebons
Hi,
The method describe here work to add an entry for each file stored in a directory, but is it possible for each entry to launch an internet script for having detailed movies infos ?

Posted: 2007-01-30 20:46:28
by antp
select the entries and then press F6 or go in movie -> import info -> from internet
Posted: 2007-02-09 01:32:54
by ryall
For importing files into AMC you could also try AVIList
Here 
import and mantain multiple movies
Posted: 2007-05-04 20:03:48
by popo99