On Sun, Feb 24, 2008 at 1:50 AM, Bernhard Praschinger <[EMAIL PROTECTED]> wrote: > Hallo >
Thanks for responding. > > > I've booted grub with mem=2030m (out of 2048), modprobed with this line - > Do you always use that mem option ? > No, I only edited the grub line a couple of times during boot. I read somewhere the mjpeg devices need more ram than is allowed, or something or another. Doing this would release more high ram to be used? Sound right to you? > > > 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. > When xawtv works, than the card works properly most of the time. > which version of the mjpegtools do you use ? > > Please try to load the driver once just one module after each other: > modprobe vpx3220 > modprobe adv7175 > modprobe zr36016 > modprobe zr36050 > modprobe zr36067 debug=3 > That should load all the modues. > First I rmmod all of the above, these are all loaded at boot time automagically. As instructed did the above modprobe just returned to the next line, so no errors- here's the dmesg from that [60817.740718] Zoran MJPEG board driver version 0.9.5 [60817.740738] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 20 (level, low) -> IRQ 21 [60817.740745] MJPEG[0]: Zoran ZR36067 (rev 2) irq: 21, memory: 0xe4001000 [60817.740748] MJPEG[0]: subsystem vendor=0x1031 id=0xd801 [60817.740752] MJPEG[0]: find_zr36057() - trying to autodetect card type [60817.740755] MJPEG[0]: find_zr36057() - card DC30plus detected [60817.742753] DC30plus[0]: Initializing i2c bus... [60817.783580] DC30plus[0]: i2c_client_register() - driver id = 42 [60817.849722] DC30plus[0]: i2c_client_register() - driver id = 48 [60817.856343] DC30plus[0]: Initializing videocodec bus... [60817.873731] DC30plus[0]: jpeg_codec_sleep() - sleep GPIO=0x81008888 [60817.873740] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x85008888 [60817.877324] ZORAN: 1 card(s) found [60817.877327] DC30plus[0]: zr36057_init() - initializing card[0], zr=f92946c0 [60817.878055] DC30plus[0]: dc10_init() [60818.031369] DC30plus[0]: jpeg_codec_sleep() - sleep GPIO=0x23008888 [60818.031379] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x27008888 [60818.085208] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x2f008888 [60818.085720] DC30plus[0]: jpeg_codec_sleep() - sleep GPIO=0x2b008888 [60818.090412] DC30plus[0]: enable_jpg(IDLE) [60818.090434] DC30plus[0]: Guests: 0x10 0x21 0x10 0x00 0x10 0x10 0x11 [60818.090440] DC30plus[0]: Detecting guests activity, please wait... [60818.090690] DC30plus[0]: Guests: 0x10 0x21 0x10 0xfd 0x10 0x10 0x11 [60818.090696] DC30plus[0]: 19: 4 => 0x6f [60818.090698] DC30plus[0]: 27: 4 => 0xff [60818.090700] DC30plus[0]: 26: 4 => 0xd5 [60818.090701] DC30plus[0]: 27: 4 => 0x5a [60818.090703] DC30plus[0]: 27: 4 => 0xdb [60818.090705] DC30plus[0]: 26: 4 => 0x00 [60818.090707] DC30plus[0]: 53: 4 => 0x08 [60818.090709] DC30plus[0]: 26: 4 => 0x06 [60819.087690] DC30plus[0]: interrupts received: GIRQ1:50 GIRQ0:50 queue_state=0/0/0/0 [60819.090851] DC30plus[0]: procfs entry /proc/zoran0 allocated. data=f92946c0 lsmod (truncated - it's an Ubuntu kernel) lsmod |grep zr zr36067 137628 0 zr36050 10120 1 zr36016 6664 1 compat_ioctl32 2304 1 zr36067 i2c_algo_bit 7428 1 zr36067 videocodec 9236 3 zr36067,zr36050,zr36016 videodev 29312 1 zr36067 i2c_core 26112 5 zr36067,adv7175,vpx3220,nvidia,i2c_algo_bit > > lsmod |grep zr > [...] > > > zr36067,saa7110,adv7175,nvidia,vpx3220,i2c_algo_bit > > videodev 29312 1 zr36067 > When the drivers (also the vpx3220 and the adv7175 load do you get any > obvious error message ? > no errors on command line, nor in dmesg. > > > Here's the lavrec command lines I've passed as root and user > [...] > > > Quality defaults to 50 > > > > Output of dmesg after modprobe > [...] > > > Errors from lavrec > > lavrec -f a -i n -a 0 -v 2 -c 0 -d 1 -n 32 -b 512 -g 640x480 test.avi > Please change the lavrec command to something like that: > lavrec -f a -i n -a 0 -v 2 -d 1 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 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 > > What I miss is the message: > --DEBUG: [lavrec] Syncing on frame 0 > > What videos source do you have ? > If possible do not use something like a VCR. > > auf hoffentlich bald, > > Berni the Chaos of Woodquarter > /dev/video0 owner = root, group = video. Root and myself are in the group video. As root. lavrec -f a -i n -a 0 -v 2 -d 1 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: 256 KB INFO: [lavrec] # of MJPEG buffers: 64 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 256 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:000 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 and the dmesg [61273.100665] DC30plus[0]: zoran_open(lavrec, pid=[10454]), users(-)=0 [61273.102669] DC30plus[0]: dc10_init() [61273.241624] DC30plus[0]: jpeg_codec_sleep() - sleep GPIO=0x21008888 [61273.241635] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x25008888 [61273.294729] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x2d008888 [61273.295241] DC30plus[0]: jpeg_codec_sleep() - sleep GPIO=0x2b008888 [61273.299256] DC30plus[0]: enable_jpg(IDLE) [61273.299367] DC30plus[0]: VIDIOCSCHAN - channel=0, norm=1 [61273.343281] DC30plus[0]: VIDIOCGCHAN - channel=0 [61273.343400] DC30plus[0]: VIDIOCGCAP [61273.343475] DC30plus[0]: BUZIOC_G_PARAMS [61273.343579] DC30plus[0]: BUZIOC_S_PARAMS [61273.343777] DC30plus[0]: BUZIOC_REQBUFS - count=64, size=262144 [61273.351087] DC30plus[0]: mmap(MJPEG) of 0xb6c33000-0xb7433000 (size=8388608) [61273.352326] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=0 [61273.358680] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x2f008888 [61273.362301] DC30plus[0]: enable_jpg(MOTION_COMPRESS) [61273.362346] DC30plus[0]: jpeg_start [61273.362379] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=1 [61273.362386] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=2 [61273.362393] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=3 [61273.362400] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=4 [61273.362407] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=5 [61273.362414] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=6 [61273.362421] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=7 [61273.362427] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=8 [61273.362434] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=9 [61273.362441] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=10 [61273.362448] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=11 [61273.362455] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=12 [61273.362462] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=13 [61273.362469] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=14 [61273.362476] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=15 [61273.362482] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=16 [61273.362489] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=17 [61273.362496] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=18 [61273.362503] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=19 [61273.362509] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=20 [61273.362516] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=21 [61273.362523] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=22 [61273.362530] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=23 [61273.362536] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=24 [61273.362543] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=25 [61273.362550] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=26 [61273.362557] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=27 [61273.362563] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=28 [61273.362570] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=29 [61273.362577] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=30 [61273.362584] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=31 [61273.362632] DC30plus[0]: BUZIOC_SYNC [61283.347675] DC30plus[0]: jpg_sync() - timeout: codec isr=0x18 [61283.366223] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=-1 [61283.419543] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x2f008888 [61283.420054] DC30plus[0]: jpeg_codec_sleep() - sleep GPIO=0x2b008888 [61283.426354] DC30plus[0]: enable_jpg(IDLE) [61283.426468] DC30plus[0]: BUZIOC_QBUF_CAPT - frame=-1 [61283.426470] DC30plus[0]: jpg_qbuf() - stop streaming but not in streaming mode [61283.427062] DC30plus[0]: munmap(MJPEG) [61283.427066] DC30plus[0]: zoran_close(lavrec, pid=[10454]), users(+)=1 [61283.483448] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x2f008888 [61283.483958] DC30plus[0]: jpeg_codec_sleep() - sleep GPIO=0x2b008888 [61283.490257] DC30plus[0]: enable_jpg(IDLE) [61283.490260] DC30plus[0]: interrupts received: queue_state=0/0/4/32: no interrupts detected. I have a few sources. What I tested with the Windows machines was a JVC SVHS, also on Linux. I've also tried a GameCube, Dreamcast, DVD Player, and Cable Box. The Game systems only have composite, I tried both SVideo and Composite with the other sources. Never had both the SVideo and Composite plugged in at the same time. XAWTV does display the overlay, I'm unable to get it to capture as well. I also recieve the message - unable to get format, no matter which option I try. Did different frame rates, and resolutions, of course chose mjpeg as output, no audio. mjpegtools was compiled from CVS. I figured that could be a problem, so I uninstalled that version, and installed Ubuntu's mjpegtools + the dev package. Everything posted here and above is with mjpegtools 1:1.8.0-0.2ubuntu5 I'm wondering if it's a kernel problem, or mjpegtools problem. Perhaps an install on a spare drive with a known working distro and mjpegtools version could help me weed this out. This is the dmesg from xawtv -ndga -noxv after attempting to capture microsoft avi, 640x480, 29.97 fps, mjpeg, no audio [62473.837541] DC30plus[0]: VIDIOC_PREVIEW - on=0 [62473.837579] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x34524742 (BGR4) [62473.837585] DC30plus[0]: v4l_set_format() - video buffer size (128 kB) is too small [62473.837591] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x33524742 (BGR3) [62473.837595] DC30plus[0]: v4l_set_format() - video buffer size (128 kB) is too small [62473.837599] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x33424752 (RGB3) [62473.837602] DC30plus[0]: VIDIOC_S_FMT - unknown/unsupported format 0x33424752 (RGB3) [62473.837606] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x33524742 (BGR3) [62473.837609] DC30plus[0]: v4l_set_format() - video buffer size (128 kB) is too small [62473.837613] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x0 ( ) [62473.837616] DC30plus[0]: VIDIOC_S_FMT - unknown/unsupported format 0x0 ( ) [62473.837619] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x34524742 (BGR4) [62473.837623] DC30plus[0]: v4l_set_format() - video buffer size (128 kB) is too small [62473.837627] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x59455247 (GREY) [62473.837630] DC30plus[0]: VIDIOC_S_FMT - unknown/unsupported format 0x59455247 (GREY) [62473.837634] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x56595559 (YUYV) [62473.837637] DC30plus[0]: v4l_set_format() - video buffer size (128 kB) is too small [62473.837641] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x50323234 (422P) [62473.837644] DC30plus[0]: VIDIOC_S_FMT - unknown/unsupported format 0x50323234 (422P) [62473.837648] DC30plus[0]: VIDIOC_S_FMT - type=1, size=640x480, fmt=0x32315559 (YU12) [62473.837651] DC30plus[0]: VIDIOC_S_FMT - unknown/unsupported format 0x32315559 (YU12) [62473.838143] DC30plus[0]: zoran_close(xawtv.bin, pid=[28450]), users(+)=1 [62473.890776] DC30plus[0]: jpeg_codec_sleep() - wake GPIO=0x2f008888 [62473.891287] DC30plus[0]: jpeg_codec_sleep() - sleep GPIO=0x2b008888 [62473.897842] DC30plus[0]: enable_jpg(IDLE) [62473.897845] DC30plus[0]: interrupts received: queue_state=0/0/4/32: no interrupts detected. This is using the composite output from a DVD Player. The disc does not have copy protection. > Email: [EMAIL PROTECTED] > www: http://www.lysator.liu.se/~gz/bernhard > > ------------------------------------------------------------------------- > 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 > Mjpeg-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mjpeg-users > ------------------------------------------------------------------------- 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 Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users