we would like to use the station module for an independent radio progect. but we use pretty much exclusively ogg for streaming. the archive modlule doesn`t support any audio format but mp3. streamripper, supports vorbist, so ripping isn´t a problem. its a farily easty hack to get "station_archive.module" to import .oggs, but one imported they are unplayable.
is there any way to get ogg-vorbis support in the station module?
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | station_ogg.patch | 3.35 KB | mfb |
| #5 | station.ogg_.patch | 3.27 KB | mfb |
| #3 | station-ogg.tar.gz | 7.01 KB | kevinb-1 |
Comments
Comment #1
drewish commentedi'd be interested in supporting ogg. perhaps you'd post a patch with the changes you had to make? i think the majority of the work would be with the audio module (as you noticed).
Comment #2
drewish commented(this would be happen officially in 5.0)
Comment #3
kevinb-1 commentedok here are two patches applied to station_archive.module,v 1.12.2.1 2006/11/21 17:51:29 drewish
station_archive.module-ogg0.diff
station_archive.module-ogg1.diff
"station_archive.module-ogg0.diff" imports oggs, but maintains ".mp3" extenstion. "station_archive.module-ogg1.diff" imports oggs and renames them with extension ".ogg", but these files are not reproducable (playable - in something like xmms for example).
Comment #4
kevinb-1 commentedhey i said i would publish the site where we are using the station module but never did.
still a work in progress, but here it is:
http://comunaradial.sarava.org/
Comment #5
mfbHere's a patch for support ogg vorbis stream archives.
Comment #6
mfbComment #7
drewish commentedthat looks really good. the only small thing would be in the ripper, i'd like the setting put into a variable first before building the command line.
Comment #8
mfbshall i tweak the patch? if so set to code needs work
Comment #9
drewish commentedyeah, couple of things call the setting/variable file_format not file_type. and in _station_archive_add_file() could you see if you could combine the file name as a timestamp and file extention matching into one preg_match? and then assign them to named variables rather than leaving them in the array.
Comment #10
mfbOK I used explode since there was already a preg_match to get the list of files.
Comment #11
drewish commentedperfect. before committing it i made one change to the comment in the ripper.inc file to quote the allowed values and forced the file_format to lower case when loading it from the settings (since drupal's file scan is case senstive).
Comment #12
(not verified) commented