I installed mjpegtools and then tried to record while xawtv was running by doing,
lavrec -g 384x288+0+0 --software-encoding test.avi
And the following was displayed,
**ERROR: [lavrec] Error initializing Audio: Audio task died. Reason: Error mapping audio buffer - Input/output error
++ WARN: [lavrec] Not ready for capture (state = 0)!
Please help me with this. Thanks.