hi, I am recording a continuous 24/7 broadcast using ecasound, oggenc and cronolog. because the broadcast is continuous and to not lose any data, I split up the recorded stream into a file for every 30 minutes using cronolog (http://www.cronolog.org). o the chain looks like the following: ecasound | oggenc | cronolog the problem is the following, because the oggfiles are split, they lack a proper header and have become unuseable. for example, t1059667200.ogg is an oggfile for one 30 minute segment: [mh@signal tmp]$ oggdec t1059667200.ogg OggDec 1.0 ERROR: Failed to open input as vorbis or: [mh@signal tmp]$ vcut t1059667200.ogg 1.ogg 2.ogg 2 WARNING: vcut is still experimental code. Check that the output files are correct before deleting sources. Processing: Cutting at 2 Input not ogg. Error reading headers Processing failed I can do this using mp3. Does anyone know how I can achieve the same using Ogg? I would really love to be using it instead of mp3. Thanks in advance. -m --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Marc Heckmann wrote on 2003-07-31:> hi, > > I am recording a continuous 24/7 broadcast using ecasound, oggenc and > cronolog. > > because the broadcast is continuous and to not lose any data, I split up > the recorded stream into a file for every 30 minutes using cronolog > (http://www.cronolog.org). > > so the chain looks like the following: > > ecasound | oggenc | cronolog > > the problem is the following, because the oggfiles are split, they lack > a proper header and have become unuseable. >Try instead: ecasound | cronolog ==> oggenc You will need to setup ecasound for raw headerless output and oggenc for corresponding raw input. The connection from cronolog to oggenc is more complicated than a pipe - you need to run oggenc repeatedly for each file cronolog splits. Then you can delete the wavs. This means more overhead and temporal space, and the switch between tracks will sample-precise but not ideal. Ideally you'd want a cronolog-like tool with vcut powers built in... -- Beni Cherniavsky <cben@tx.technion.ac.il> Put a backslash at the evening to continue hacking onto the next day. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Marc Heckmann wrote:>hi, > >I am recording a continuous 24/7 broadcast using ecasound, oggenc and >cronolog. > >because the broadcast is continuous and to not lose any data, I split up >the recorded stream into a file for every 30 minutes using cronolog >(http://www.cronolog.org). > >so the chain looks like the following: > >ecasound | oggenc | cronolog > >the problem is the following, because the oggfiles are split, they lack >a proper header and have become unuseable. > >for example, t1059667200.ogg is an oggfile for one 30 minute segment: > >[mh@signal tmp]$ oggdec t1059667200.ogg >OggDec 1.0 >ERROR: Failed to open input as vorbis > >or: > >[mh@signal tmp]$ vcut t1059667200.ogg 1.ogg 2.ogg 2 >WARNING: vcut is still experimental code. >Check that the output files are correct before deleting sources. > >Processing: Cutting at 2 >Input not ogg. >Error reading headers >Processing failed > > >Try using a hex editor to add the headers from another ogg vobis file to the corrupt ones? --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Thursday 31 July 2003 11:56 am, Marc Heckmann wrote:> hi, > > I am recording a continuous 24/7 broadcast using ecasound, oggenc and > cronolog. > > because the broadcast is continuous and to not lose any data, I split up > the recorded stream into a file for every 30 minutes using cronolog > (http://www.cronolog.org). > > so the chain looks like the following: > > ecasound | oggenc | cronolog#!/bin/sh #Untested! mkdir raw ogg while :; do sleep 60 for i in raw/*; do oggenc -r -o $i.ogg $i mv $i.ogg ../$i.ogg rm $i done done & ecasound | split -a 6 -b $[30*60*44100*2] - ./raw/ The point is that only the raw audio can be safetly split. Split could be replaced with cronolog in the last line to keep cronolog's cool naming. This also has the advantage that it's OK if the encoding process is occasionally less than real time. -- Tom Felker McBride: "I have here in my hand a list of two hundred and five..." --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.