Imorting hundreds of AVI-s

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
tanel

Imorting hundreds of AVI-s

Post 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
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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.
Last edited by antp on 2002-11-04 09:13:30, edited 1 time in total.
tanel

Post by tanel »

Thank You, Thank You, Thank You :D

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 :clapping:

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)
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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
dunno

... but

Post 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
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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
dunno

Post 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
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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)
philippe

Post 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
zevince

Post by zevince »

tres admiratif devant toutes ces possibilites !
vraiment, je decouvre avec grand plaisir ce soft !
merci !
Stefan

Post 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
Guest

And... the same but in Folders?

Post 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
mastabog
Posts: 1
Joined: 2004-07-23 07:38:47

Post 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 ...
pinterpeti
Posts: 7
Joined: 2005-10-28 20:36:53

Post 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
Last edited by pinterpeti on 2010-03-16 13:25:32, edited 1 time in total.
ScorEpioN
Posts: 264
Joined: 2004-08-17 11:02:02

Post by ScorEpioN »

I have write a GUI for MvList : viewtopic.php?t=1453
spacekris
Posts: 20
Joined: 2006-06-07 21:13:01

Post 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
zebons
Posts: 21
Joined: 2006-04-03 05:18:29

Import mass of avi files

Post 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 ? :??:
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

select the entries and then press F6 or go in movie -> import info -> from internet
ryall
Posts: 5
Joined: 2007-02-09 01:13:30

Post by ryall »

For importing files into AMC you could also try AVIList Here ;)
popo99
Posts: 2
Joined: 2007-05-04 17:56:07

import and mantain multiple movies

Post by popo99 »

Post Reply