Re: [Mjpeg-users] Error initializing Audio: Audio task died.

2004-08-29 Thread Ronald Bultje
On Sat, 2004-08-28 at 16:30, Torsten Mohr wrote:
> I still have the problem that "glav" dies immediately
> because it can't open ALSA audio on my 2.6.7 with onboard
> sound-intel8x0.
[..]
> The message i get is:
> **ERROR: [lavplay] Error initializing Audio: Audio task died. \
> Reason: Error mapping audio buffer - Input/output error

lavplay doesn't support write()-based access yet. It's basically a
non-implemented feature request... :-(. It's not hard to implement
(simply copy the read-part, and do s/read/write/ and s/get/set/ and so
on for all the kernel calls), but someone has to actually go and do it.
Then, we can add a --use-write option to lavplay and it'd work.

Ronald

-- 
Ronald Bultje <[EMAIL PROTECTED]>



---
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


[Mjpeg-users] Error initializing Audio: Audio task died.

2004-08-28 Thread Torsten Mohr
Hi,

thanks for the hints to get the mjpeg tools to compile,
now it works.

I still have the problem that "glav" dies immediately
because it can't open ALSA audio on my 2.6.7 with onboard
sound-intel8x0.

I took a look int "audiolib.c" to see what the problem could be.

The message i get is:
**ERROR: [lavplay] Error initializing Audio: Audio task died. \
Reason: Error mapping audio buffer - Input/output error

I think this is related to line 805 in audiolib.c
   if (audio_capt)

   buf=mmap(NULL, tmp, PROT_READ , MAP_SHARED, fd, 0);
   else
   buf=mmap(NULL, tmp, PROT_WRITE, MAP_SHARED, fd, 0);

   if (buf==MAP_FAILED)
806:   system_error("mapping audio buffer",fd, 1);


So maybe this is rather a problem of my shared memory subsystem
in the kernel?  Maybe i only forgot to set a certain option?


Best regards,
Torsten.


---
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