Hey Martin, On Thu, 2003-06-26 at 01:03, Martin Collins wrote: > A while ago I toyed with the idea of trying to replace lavrec's audio > code with portaudio, which is what audacity uses. It is probably a bit > more than I can handle but was I on the right track?
Maybe, I'm not 100% sure what portaudio does. The most important thing is to make sure that a hang for a while (bad sync signal or so) on the video-side doesn't kill the audio. I've got some new code for audio (rewrote parts of lavrec) locally, but what it currently does, is to simply wait before reading audio. So instead of giving the error and bailing out, it just waits until there's new room free in the buffer. This means you'll lose audio. A better option is to extend the audio buffer on the fly, but that's really a bad idea to do infinitely, because if the video hangs for 20 seconds, your RAM will be filled with audio until the OOM killer kills lavrec (in which case you lose your full recording). So it's better to limit that to a certain size and still bail out after that. And then, we're back at that which causes the initial error. ;). It's a circular problem, sort of. Anyway, my current new lavrec code handles some cool things already, but I didn't implement MJPEG hw recording yet. That's a matter of days, but I won't throw the code online before that's implemented. After that, you're free to give it a try and see if it improves performance for you people. A nice thing is that you can add random modules for audio/video in-/output, so adding portsaudio support should become increasingly simple. Ronald -- Ronald Bultje <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users