lavrec+lml33+sblive - ERROR: Unable to get audio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi all, 
I'm trying to get my lml33 mjpeg card running to capture video from a
camera and ntsc videotape. I'm able to capture video alone using an LML33
zoran card, 2.4.22 kernel, v4l2 patches, and lavrec from mjpegtools-1.6.1.

But when I try to capture audio+video with lavrec, it has trouble starting 
up its audio process/thread, and dies before doing anything useful:

$ LAV_AUDIO_DEV=/dev/dsp export LAV_AUDIO_DEV
$ LAV_VIDEO_DEV=/dev/video0 export LAV_VIDEO_DEV
$ lavrec -t10 -fa -in -d2 -q100 -a16 -r44100 -s -Rl -c2 -U -v1 tsta.avi
   INFO: [lavrec] Recording parameters:
   INFO: [lavrec] Output format:      AVI
   INFO: [lavrec] Input Source:       Composite NTSC

   INFO: [lavrec] Decimation:         2
   INFO: [lavrec] Quality:            100
   INFO: [lavrec] Recording time:     10 sec
   INFO: [lavrec]  
   INFO: [lavrec] MJPEG buffer size:  256 KB
   INFO: [lavrec] # of MJPEG buffers: 64
   INFO: [lavrec] Audio parameters:
   INFO: [lavrec] Audio sample size:           16 bit
   INFO: [lavrec] Audio sampling rate:         44100 Hz
   INFO: [lavrec] Audio is STEREO
   INFO: [lavrec] Audio input recording level: Use mixer setting
   INFO: [lavrec] Level of correction for Audio/Video synchronization:
   INFO: [lavrec] Lost frame compensation and frame drop/insert
++ WARN: [lavrec] Unable to set negative priority for main thread
++ WARN: [lavrec] Pthread Real-time scheduling for main thread could not be enabled
   INFO: [lavrec] Using read(2) system call for capture
++ WARN: [lavrec] Unable to set negative priority for audio thread.
++ WARN: [lavrec] Pthread Real-time scheduling for audio thread could not be enabled.
   INFO: [lavrec] Auto detecting input and norm ...
   INFO: [lavrec] Image size will be 352x240, 1 field(s) per buffer
   INFO: [lavrec] Got 32 buffers of size 256 KB
   INFO: [lavrec] Getting audio ...

(pause of several seconds here)

**ERROR: [lavrec] Unable to get audio - exiting ....

Recording time  :  0.00.00:00
Lost frames     : 000
A/V sync ins/del: 000/000
Audio errors    : 000
++ WARN: [lavrec] We're not stopped yet, use lavrec_stop() first!



I tried lavrec both with and without -U (read() insteadm of mmap for 
audio) with the same result.  Same result (without the WARN lines) if I 
run as root.

To test capturing video only, I use this, which works great:
lavrec -t20 -fa -in -d2 -q100 -a0 -c0 -v1 tst.avi


I know the sound card is working, because I can record 44,100Khz 
stereo using another program (yarec-0.65pl5), even while a 
video-only lavrec capture is in  progress.

Any suggestions of things to try?
Does lavrec from mjpegtools-1.6.1 work with audio for anyone else?


I've poked briefly into mjpegtools/lavtools and looked at the "testrec" 
audiolib test program.  It doesn't work due to changes in the 
prototype of audiolib.c/audio_init(), but with a few obvious fixes runs 
and produces the exact same error as lavrec.
 

more configuration details:

The system is a 2.6Ghz P4, an i845e chipset (Chaintech 9ejl1 motherboard), 
with 1Gb of ECC RAM.
OS is Redhat 9, with latest errata, except kernel is a vanilla
kernel.org 2.4.22, with patches from http://bytesex.org/patches/2.4.22/
Zoran driver is VIDEODEV_2 cvs from yesterday,
 "cvs -d:pserver:anonymous@xxxxxxxxxxxxxxxx:/cvsroot/mjpeg co -d driver-zoran-new -r ZORAN_VIDEODEV_2 driver-zoran"
loaded with "update lml33 NTSC".

For mjpegtools, I tried both mjpegtools-1.6.1-fr5.src.rpm from 
freshrpms.net and mjpegtools-1.6.1.90-1.src.rpm
from http://mjpeg.sourceforge.net/.
libquicktime and other mjpegtools dependencies are from freshrpms.


sound card lspci:

02:02.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
        Subsystem: Creative Labs: Unknown device 8064
        Flags: bus master, medium devsel, latency 96, IRQ 11
        I/O ports at 9000 [size=32]
        Capabilities: <available only to root>

lml33 lspci:

02:04.0 Multimedia video controller: Zoran Corporation ZR36057PQC Video cutting chipset (rev 02)
        Subsystem: Unknown device ff23:ded6
        Flags: fast devsel, IRQ 10
        Memory at ea001000 (32-bit, non-prefetchable) [size=4K]


Thanks for any suggestions!

Steve




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux