I have a DC30 (ZR36057) which fails to record with lavrec.
I've booted grub with mem=2030m (out of 2048), modprobed with this line -
modprobe zr36067 v4l_bufsize=512 card=3 v4l_nbufs=32
Tried card=4, also tried no option on modprobe, and no grub options. The
module is loaded at boot time.
The card is on it's own IRQ, verified to work in other PCs (and this
one) with WindowsMe, 2000, and XP.
Xawtv does display the input image on overlay, but nothing else.
lspci
02:00.0 Multimedia video controller: Zoran Corporation ZR36057PQC Video
cutting chipset (rev 02)
lspci -v
02:00.0 Multimedia video controller: Zoran Corporation ZR36057PQC Video
cutting chipset (rev 02)
Subsystem: Miro Computer Products AG Unknown device d801
Flags: fast devsel, IRQ 21
Memory at e4001000 (32-bit, non-prefetchable) [size=4K]
lsmod |grep zr
zr36016 6664 1
zr36050 10120 1
zr36067 137628 0
zr36060 11020 4
compat_ioctl32 2304 1 zr36067
i2c_algo_bit 7428 1 zr36067
videocodec 9236 4 zr36016,zr36050,zr36067,zr36060
i2c_core 26112 6
zr36067,saa7110,adv7175,nvidia,vpx3220,i2c_algo_bit
videodev 29312 1 zr36067
2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
(Ubuntu 7.10)
Also tried Slackware 2.6, Debian Etch/Lenny 2.6, and Suse 2.6 Kernels.
Mjpegtools version 1.8.0, tried CVS version as well.
Here's the lavrec command lines I've passed as root and user
lavrec -f a -i n -a 0 -v 2 test.avi
lavrec -f a -i n -a 0 -v 2 -d 2 test.avi
lavrec -f a -i n -a 0 -v 2 -g 640x480 test.avi
lavrec -f a -i n -a 0 -v 2 -c 0 -d 1 -n 32 -b 512 -g 640x480 test.avi
Quality defaults to 50
Output of dmesg after modprobe
[ 2155.797239] Zoran MJPEG board driver version 0.9.5
[ 2155.797429] MJPEG[0]: Zoran ZR36067 (rev 2) irq: 21, memory: 0xe4001000
[ 2155.797434] MJPEG[0]: subsystem vendor=0x1031 id=0xd801
[ 2157.312327] ZORAN: 1 card(s) found
[ 2157.312333] DC30[0]: zr36057_init() - initializing card[0], zr=f92a06c0
Errors from lavrec
lavrec -f a -i n -a 0 -v 2 -c 0 -d 1 -n 32 -b 512 -g 640x480 test.avi
INFO: [lavrec] Recording parameters:
INFO: [lavrec] Output format: AVI
INFO: [lavrec] Input Source: Composite NTSC
INFO: [lavrec] Decimation: 1
INFO: [lavrec] Quality: 50
INFO: [lavrec] Recording time: -1 sec
INFO: [lavrec]
INFO: [lavrec] MJPEG buffer size: 512 KB
INFO: [lavrec] # of MJPEG buffers: 32
INFO: [lavrec] Audio disabled
--DEBUG: [lavrec] Maximum size per file will be 1739 MB
INFO: [lavrec] Auto detecting input and norm ...
INFO: [lavrec] Image size will be 640x480, 2 field(s) per buffer
INFO: [lavrec] Got 32 buffers of size 512 KB
--DEBUG: [lavrec] Queueing frame 0
--DEBUG: [lavrec] Queueing frame 1
--DEBUG: [lavrec] Queueing frame 2
--DEBUG: [lavrec] Queueing frame 3
--DEBUG: [lavrec] Queueing frame 4
--DEBUG: [lavrec] Queueing frame 5
--DEBUG: [lavrec] Queueing frame 6
--DEBUG: [lavrec] Queueing frame 7
--DEBUG: [lavrec] Queueing frame 8
--DEBUG: [lavrec] Queueing frame 9
--DEBUG: [lavrec] Queueing frame 10
--DEBUG: [lavrec] Queueing frame 11
--DEBUG: [lavrec] Queueing frame 12
--DEBUG: [lavrec] Queueing frame 13
--DEBUG: [lavrec] Queueing frame 14
--DEBUG: [lavrec] Queueing frame 15
--DEBUG: [lavrec] Queueing frame 16
--DEBUG: [lavrec] Queueing frame 17
--DEBUG: [lavrec] Queueing frame 18
--DEBUG: [lavrec] Queueing frame 19
--DEBUG: [lavrec] Queueing frame 20
--DEBUG: [lavrec] Queueing frame 21
--DEBUG: [lavrec] Queueing frame 22
--DEBUG: [lavrec] Queueing frame 23
--DEBUG: [lavrec] Queueing frame 24
--DEBUG: [lavrec] Queueing frame 25
--DEBUG: [lavrec] Queueing frame 26
--DEBUG: [lavrec] Queueing frame 27
--DEBUG: [lavrec] Queueing frame 28
--DEBUG: [lavrec] Queueing frame 29
--DEBUG: [lavrec] Queueing frame 30
--DEBUG: [lavrec] Queueing frame 31
++ WARN: [lavrec] Closing file(s) and exiting - output file(s) my not be
readable due to error
**ERROR: [lavrec] Error syncing on a buffer: Timer expired
INFO: [lavrec] Opening output file test.avi
**ERROR: [lavrec] Error writing to output file test.avi: Internal:
broken JPEG format
++ WARN: [lavrec] Closing file(s) and exiting - output file(s) my not be
readable due to error
--DEBUG: [lavrec] Queueing frame 4294967295
0.00.00:00 int:998 lst: 0 ins: 0 del: 0 ae: 0 td1=0.000 td2=0.000
**ERROR: [lavrec] Error resetting buffer-queue: Invalid argument
Recording time : 0.00.00:00
Lost frames : 000
A/V sync ins/del: 000/000
Audio errors : 000
dmesg after lavrec errors
[ 2210.272048] DC30[0]: zoran_open(lavrec, pid=[7070]), users(-)=0
[ 2220.491712] DC30[0]: jpg_sync() - timeout: codec isr=0x18
[ 2220.554678] DC30[0]: jpg_qbuf() - stop streaming but not in streaming
mode
[ 2220.555775] DC30[0]: zoran_close(lavrec, pid=[7070]), users(+)=1
Hope that enough info.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mjpeg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users