Hi, Sorry for posting to both marvel-linux and mjpeg-users lists - I'm not sure whether this is a Marvel driver issue or an mjpegtools issue.
For some months, I've had an issue with lavrec on my Marvel G400 capture card. I can record successfully, but when recording ends (either by the -t option on the lavrec command-line or by pressing ^C) lavrec dies with a segmentation fault. The recording is fine but any attempt to capture again just hangs, unless I unload and reload the marvel drivers. I've put the output of a typical lavrec command below. I've tried using read() instead of mmap(). I've also included the dmesg output from loading the marvel drivers. I've just tested with latest CVS of both driver_fb and mjpegtools ("cvs up" within the last 15 minutes) and the issue is present. (I'd hoped it might have gone away in CVS.) (Actually, latest mjpegtools CVS compile needed a bit of help finding cpu_accel, then stopped in mpeg2enc but I was able to get sufficient built to test it.) I'm running stock kernel 2.6.10 (with the driver_fb i2c patch) and glibc 2.3.4. Does anyone have any ideas/workarounds/etc? Thanks, Stephen ---- lavrec output ---- lavrec -v 1 -f a -i t -d 1 -q 50 -g 688x480+20+44 -t 10 -B -a 16 -r 44100 -s -C europe-west:31 test.avi Ok, found channel 31 with frequency 551250 INFO: [lavrec] Recording parameters: INFO: [lavrec] Output format: AVI INFO: [lavrec] Input Source: PAL TV-tuner INFO: [lavrec] Decimation: 1 INFO: [lavrec] Quality: 50 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 INFO: [lavrec] Using mmap(2) system call for capture INFO: [lavrec] Auto detecting input and norm ... INFO: [lavrec] Unmuting tuner audio... INFO: [lavrec] Image size will be 688x480, 2 field(s) per buffer INFO: [lavrec] Got 64 buffers of size 256 KB INFO: [lavrec] Getting audio ... INFO: [lavrec] Opening output file test.avi INFO: [lavrec] Recording time reached, stopping INFO: [lavrec] Re-muting tuner audio... Segmentation fault ---- kernel messages from "./iv" until lavrec crashes ---- msp3400: Unknown parameter `simple' msp34xx: init: chip=MSP3410D-B4 +nicam +simple mode=simple msp3410: daemon started ks0127: attach: on-board video decoder tuner: chip found at addr 0xc0 i2c-bus MAVEN:fb0 Linux video capture interface: v1.00 mgacore: Found MGA G400 tuner: type set to 3 (Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)) by MAVEN:fb0 mgacodec: *mga @ d9aa5400 Matrox Marvel and Rainbow Runner G Capture Driver (V4L) Matrox KS switchboard Matrox MJPEG driver Matrox Marvel and Rainbow Runner G Capture Driver (V4L) videodev: "mgacap-0" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/ mgagrab: get_format failed mgacore: no sub-handler for VIRQ 0x0 to remove! tuner: TV freq (0.00) out of range (44-958) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users