On Saturday 04 September 2004 16:29, Ronald S. Bultje wrote: > Might be. Scientifically, I'm not completely convinced yet on what the > problem is: 1. you record several times, 2. you play back several times > (all fine so far), 3. you record one more and 4. you play back > (crackles), restart (normally solves) and it still crackles. Now try > playing one of your videos from step 1-2 and see if it doesn't crackle, > and *then* I'm convinced that 2. is breaking 3. ;).
I followed that procedure and playing the video from step 1-2 does not crackle. glav appears to play back the file correctly (i.e. what is on disk); the problem, AFAICS, is that lavrec records crackles if it is run after glav and before the sound system is restarted. > That doesn't, however, tell me that 2. is an actual problem. I know that > glav/lavplay do some weird stuff. We use mmap() for playback because > it's an efficient way of using hardware memory. Most applications simply > use write(). Maybe your particular driver cannot handle that. In that > case, file a bug report at the ALSA team to fix it > (http://alsa-project.org/). We cannot fix their bugs and we shouldn't > work around them, imo. Indeed, but I can see how the conversation would go if I report this to the ALSA guys: Me: "I record using lavrec and it records correctly" Them: "OK" Me: "I play back using glav then recording doesn't work properly anymore" Them: "What if you play back using mplayer instead of glav?" Me: "Then recording works correctly" Them: "So it's glav causing the problem?" Me: "Er, yes" Them: "So why blame our driver, why not just fix glav to work properly (like mplayer, for example)?" Me: "Er... The fact glav doesn't screw other sound cards suggests it's your driver" Them: "The fact that with mplayer everything works correctly suggests you should fix glav" ...and so on. ;o) I'm not suggesting that glav is broken, or that the audio driver is broken. I don't know enough about either piece of software to have an opinion. For the time being I'll use mplayer to check my MJPEG files and reset the sound driver before running lavrec after I've used glav. That will be a good enough work around until I can get a new sound card! ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users