I am using Vorbis/ogg to record audio (using arecord and then pipping to oggenc). I have downloaded oggvideotools, which gave me oggCat, which will let me join two previously recorded audio files into one file. But, my problem is this:
The device I am working on is known to have the "plug pulled", but it is recording while the power is on (swapping out batteries etc.). Once the device is powered back on, I need to continue to record to the previous file (automated recording).
Right now, I can use arecord to record two separate files, and then once the recording is done, I can oggCat the two, but that doesn't get me what I want 100%, I need to be able to continue recording where the first file got cut off.
I originally put this on Stackoverflow, trying to solicit a python response, but it was closed by moderators - I hope this is a better place for it. I need python and busybox solutions. Unfortunately, other solutions outside Python and Busybox are not available to me - furthermore, downloading additional packages/programs is also not available, I have oggenc, arecord, and oggvideotools.
Any advise on where to look? Can I somehow pipe arecord data from a temp file to oggCat? Like:
oggCat NewFile.ogg File1.ogg (arecord file2.ogg ...)
Where "(arecord file2.ogg ...) is the file currently being recorded and simultaneously being appended to Newfile.ogg?
Thanks in advance,
(P.S. the audio files will have the exact same parameters - i.e. same channels, rates, etc)