We use the Zoran Corporation ZR36057PQC Video cutting chipset to capture simultaneously compressed and uncompressed videos (after patching the kernel, to allow multiple opens on video devices). This works fine in the 2.4'er kernel series.
My job is now to make this scenario work on the 2.6'er kernel series. As with 2.4 I applied the bigphysmem-patch (also added bigphysarea=14000 to the appropriate line in grub/menu.lst) and the aforementioned video-device patch and tried our application (for capturing). Our application works fine when doing either compressed or uncompressed grabbing, but fails to do both simultaneously; it hangs because of the locking which have been added in the driver; the hanging call being "ioctl (fd, VIDIOCSCHAN, &vchannel)".) Though a test with commenting the down/up's protecting the zoran_set_input/norm-calls works - the application then hangs at the next "ioctl (fd, VIDIOCSPICT, &vpicture)" - I don't think that's the way to go (and indeed a quick #define down(x)/#define up(x) freezes the system). So my question is, if there is a solution for both capturing compressed and uncompressed videos simultaneously? Is it supported at all or just good luck that it works with kernel 2.4? I didn't find anything related to that neither in the FAQ nor with Google (I couldn't check the mailing-list as Sourceforge seems to have a problem). Or who/what sets the lock in the first place? Any help would be really appreciated! Some important information (acc. the FAQ): - MB: From SiS - RAM: 1GB; don't know the brand, but did a memtest - /proc/interrupts shows "177: 51 IO-APIC-level DC10plus[0]" - /proc/dma shows " 4: cascade" - Kernel: 2.6.16.27-0.9-default (openSuSE 10.1); also tried vanilla 2.6.20.4 - Driver: 0.9.5 (as included with kernel) - libc: glibc-2.4-31.1 - GCC: gcc (GCC) 4.1.0 (SUSE Linux) - dmesg with debug-info: Could be provided; but probably not relevant - /proc/devices: Character devices: 1 mem 2 pty 3 ttyp 4 /dev/vc/0 4 tty 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 7 vcs 10 misc 13 input 14 sound 29 fb 81 video4linux 116 alsa 128 ptm 136 pts 180 usb 189 usb_device Block devices: 3 ide0 7 loop 22 ide1 Best regards Markus Schwab ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users