|
From: adam <ad...@xs...> - 2002-06-25 11:28:48
|
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? adam Adam Hyde XS4ALL Internet B.V. mobile : + (31) 06 2903 6248 Eekholt 42 1112 XH Diemen Amsterdam "free, as in 'radio'" |