home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
Multi Part Movies
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="HappyTalk" data-source="post: 128268" data-attributes="member: 22671"><p>Hi there gave your util a quick test, can't quite use it yet but almost. Ran it, browsed to folder, hit save info = msg box "no files found!"</p><p>Msg should warn "Please click search first, select entries to be imported BEFORE clicking save info" took a few mins to guess this.</p><p></p><p></p><p>re-browse for folder, if file explorer starts at last selected folder, it's a lot easier next time.</p><p></p><p></p><p>csv file generated should Add field names as first line in csv file, can be unticked so as NOT imported otherwise it's quite hard to match up the headers. When importing csv file users need to ensure delimeter = ; or no dice. Also there's a blank line at top of file so you get an empty entry (unless you untick it).</p><p></p><p>HOWEVER this is all by the by as matching up the columns to import into Ant is a total pain so for < 10 files it's quicker to just do it manually. BUT after a bit of testing I realised a much neater solution is to export your file in ants XML format which will require minimal changes to your code. Then users can just do Import|Amc type and select the xml file, much easier. The cool thing is if you set <Movie Number="0" for EVERY entry ant will auto-assign unique numbers on import. You don't need the Checked, or FormattedTitle fields, So an example xml file would be:-</p><p></p><p>[code]</p><p><?xml version="1.0" encoding="iso-8859-1"?></p><p><AntMovieCatalog></p><p> <Catalog></p><p> <Properties/></p><p> <Contents></p><p> <Movie Number="0" Source="M:\Father Ted.s03.06.Kicking Bishop Brennan Up The Arse.avi" OriginalTitle="Father Ted.s03.06.Kicking Bishop Brennan Up The Arse" VideoBitrate="32000" AudioFormat="Fast Multimedia AG DVM (AC3)" AudioBitrate="256" Resolution="640x480" Framerate="25" Size="233" Disks="1"/></p><p> <Movie Number="0" Source="M:\Father Ted.s03.05.Escape From Victory.avi" OriginalTitle="Father Ted.s03.05.Escape From Victory" VideoBitrate="32000" AudioFormat="Fast Multimedia AG DVM (AC3)" AudioBitrate="256" Resolution="640x480" Framerate="25" Size="232" Disks="1"/></p><p> <Movie Number="0" Source="M:\Father Ted.s03.08.Going To America.avi" OriginalTitle="Father Ted.s03.08.Going To America" VideoBitrate="32000" AudioFormat="Fast Multimedia AG DVM (AC3)" AudioBitrate="256" Resolution="640x480" Framerate="25" Size="233" Disks="1"/></p><p> </Contents></p><p> </Catalog></p><p></AntMovieCatalog></p><p>[/code]</p><p></p><p>You could also set the MediaLabel field to the Disk Label (handy for numbered/named DVDR's) which Ant import does and is a necessity for using disks with MesFilms, else it won't be able to prompt you which disk to insert.</p><p></p><p></p><p>Lastly Ant currently also imports the info for mpeg files and maybe others. If you could add the other main formats supported by MediaPortal (.avi,.mpg,.ogm,.mpeg,.mkv,.wmv,.ifo,.qt,.rm,.mov,.sbe,.dvr-ms,.ts,.dat,.rmvb) and just set the Source, OriginalTitle, Size & Disks fields that are format independant that'd be great. If at a later date you wish to add the embedded file info great. I checked Ant against most of the above formats and here's the embedded stuff it currently gets:-</p><p>.avi = All (VideoBitrate, AudioFormat, AudioBitrate, Resolution, Framerate)</p><p>.asf = All Except VideoBitRate + Framerate</p><p>.ifo (DVD) = All Except VideoBitRate,AudioBitRate,FileSize (from VTS_01_0.IFO, though path needs to be eg M:\VIDEO_TS\VIDEO_TS.IFO)</p><p>.ogm = All except VideoBitRate</p><p>.mkv = All (Import takes 3+ minutes! seems to read through whole file)</p><p>.mov = None</p><p>.mpg = All</p><p>.rmvb = VideoBitrate + AudioBitrate</p><p>.wmv = All Except VideoBitRate + Framerate</p><p></p><p></p><p></p><p>Cheers</p><p></p><p>PS - it would be handy if it ADDED new entries to the END of any exisiting ones in the specified xml file, so if you are putting multiple disks in, you can scan them one after t'other into the same xml file you can then import the lot. Currently a new import will wipe any previous entries. Of course you could then just specify your current main ant.xml database, the entries get added, no need to even import! just load up your database. A bit more awkward to code but the more useable and easier it is to use, the more likely people will use it.</p></blockquote><p></p>
[QUOTE="HappyTalk, post: 128268, member: 22671"] Hi there gave your util a quick test, can't quite use it yet but almost. Ran it, browsed to folder, hit save info = msg box "no files found!" Msg should warn "Please click search first, select entries to be imported BEFORE clicking save info" took a few mins to guess this. re-browse for folder, if file explorer starts at last selected folder, it's a lot easier next time. csv file generated should Add field names as first line in csv file, can be unticked so as NOT imported otherwise it's quite hard to match up the headers. When importing csv file users need to ensure delimeter = ; or no dice. Also there's a blank line at top of file so you get an empty entry (unless you untick it). HOWEVER this is all by the by as matching up the columns to import into Ant is a total pain so for < 10 files it's quicker to just do it manually. BUT after a bit of testing I realised a much neater solution is to export your file in ants XML format which will require minimal changes to your code. Then users can just do Import|Amc type and select the xml file, much easier. The cool thing is if you set <Movie Number="0" for EVERY entry ant will auto-assign unique numbers on import. You don't need the Checked, or FormattedTitle fields, So an example xml file would be:- [code] <?xml version="1.0" encoding="iso-8859-1"?> <AntMovieCatalog> <Catalog> <Properties/> <Contents> <Movie Number="0" Source="M:\Father Ted.s03.06.Kicking Bishop Brennan Up The Arse.avi" OriginalTitle="Father Ted.s03.06.Kicking Bishop Brennan Up The Arse" VideoBitrate="32000" AudioFormat="Fast Multimedia AG DVM (AC3)" AudioBitrate="256" Resolution="640x480" Framerate="25" Size="233" Disks="1"/> <Movie Number="0" Source="M:\Father Ted.s03.05.Escape From Victory.avi" OriginalTitle="Father Ted.s03.05.Escape From Victory" VideoBitrate="32000" AudioFormat="Fast Multimedia AG DVM (AC3)" AudioBitrate="256" Resolution="640x480" Framerate="25" Size="232" Disks="1"/> <Movie Number="0" Source="M:\Father Ted.s03.08.Going To America.avi" OriginalTitle="Father Ted.s03.08.Going To America" VideoBitrate="32000" AudioFormat="Fast Multimedia AG DVM (AC3)" AudioBitrate="256" Resolution="640x480" Framerate="25" Size="233" Disks="1"/> </Contents> </Catalog> </AntMovieCatalog> [/code] You could also set the MediaLabel field to the Disk Label (handy for numbered/named DVDR's) which Ant import does and is a necessity for using disks with MesFilms, else it won't be able to prompt you which disk to insert. Lastly Ant currently also imports the info for mpeg files and maybe others. If you could add the other main formats supported by MediaPortal (.avi,.mpg,.ogm,.mpeg,.mkv,.wmv,.ifo,.qt,.rm,.mov,.sbe,.dvr-ms,.ts,.dat,.rmvb) and just set the Source, OriginalTitle, Size & Disks fields that are format independant that'd be great. If at a later date you wish to add the embedded file info great. I checked Ant against most of the above formats and here's the embedded stuff it currently gets:- .avi = All (VideoBitrate, AudioFormat, AudioBitrate, Resolution, Framerate) .asf = All Except VideoBitRate + Framerate .ifo (DVD) = All Except VideoBitRate,AudioBitRate,FileSize (from VTS_01_0.IFO, though path needs to be eg M:\VIDEO_TS\VIDEO_TS.IFO) .ogm = All except VideoBitRate .mkv = All (Import takes 3+ minutes! seems to read through whole file) .mov = None .mpg = All .rmvb = VideoBitrate + AudioBitrate .wmv = All Except VideoBitRate + Framerate Cheers PS - it would be handy if it ADDED new entries to the END of any exisiting ones in the specified xml file, so if you are putting multiple disks in, you can scan them one after t'other into the same xml file you can then import the lot. Currently a new import will wipe any previous entries. Of course you could then just specify your current main ant.xml database, the entries get added, no need to even import! just load up your database. A bit more awkward to code but the more useable and easier it is to use, the more likely people will use it. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
Multi Part Movies
Contact us
RSS
Top
Bottom