|
From: Luka P. <no...@sk...> - 2002-06-26 15:50:42
|
adam wrote: > hi all.. > > > james had an interesting question...i think he said he might know a coder > taht could help with this if we can come up with a good solution > > suppose a user has a lot of streaming files already in a directory or > series of directories and wants to add them to their FC...how do they do > this easily? > > one way, the only existing way, at the moment is to add each file > individually through the fc 'add program' interface > > but this is slow... > > so i think i can see two possible ways to make this easier: > 1. if the user has a directory with streaming media files, AND these > directories have some scripting support, then the following could happen: > a) make a script to drop into any directory with streaming files in it > b) this script would read each file in a dir and recurse through other > directories looking for files with a prefixes like '.ra', '.rm', '.asf' > etc and write these into a formatted file....something like: > filename,url > > eg: radio.rm, http://www.radioqualia.net/streaming/radio.rm > c) then another script, this time as part of the frequency clock site can > be pointed to the file (above), and read in this information and output a > listing of all the files with the fields that need to be completed.... > > > -------------- > the other way > -------------- > make a Visual Basic application that will read recursively through a > folder, open each file and read the data frome ach file be it Quicktime, > windowsmedia, mp3, ogg (not sure if this can eb done with ogg with VB), > and real....the data that can be collected for each file would include: > a) length > b) name > c) bitrate > d) location (url) > e) codec-specififc metadata (eg real have fields for author, copyright > etc) > f) format - video / audio > g) codec > > all this can be gathered automatically by a clever VB app and then create > a formatted file that can be used in the same way as described above for > inputting the data into the fc db... > > anyways...anyone else any idea how to do this?...gio? luka? how is this data collected with VBscript? are there specifications where the info for each kind of media resides within the media file? if there are, there can be developed a simple php script that could localy (run on the server where the files reside) check for all this data and return it in wanted form. see second 'user contributed note' on http://www.php.net/manual/en/ref.filesystem.php how this can be done with mp3s. in the case of this contributed code, because it is using fopen() function to access the file, i suspect this would _actually_ be possible also with remote files (on other servers). it's plausible. what do you think? -- - nova at skylined dot org - ----------------------------------------------+ The universe is made up of stories, not atoms. |