Problem with example program from https://gitlab.collabora.com/koike/v4l2-codec.git

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

 



Hi,
As part of applying to the outreachy program,
I compiled the code in https://gitlab.collabora.com/koike/v4l2-codec.git
I get errors running it.
When I install vicodec.ko I see in the kernel log:

[10752.727509] vicodec vicodec.0: Device registered as /dev/video2
[10752.727534] vicodec vicodec.0: Device registered as /dev/video3

I think /dev/video0, /dev/video1 are already used by uvcvideo

The dev file used in v4l2-decode.c is "/dev/video1"

When running the code as is, it prints:
"mmap: Invalid argument"

Changing the code of v4l2-decode.c to use "/dev/video0" prints:
"Driver didn't accept RGB24 format. Can't proceed."

Changing it to use "/dev/video2" prints:
"Driver didn't accept FWHT format. Can't proceed."

Changing it to use "/dev/video3" prints:
"Driver didn't accept RGB24 format. Can't proceed."

I tried it on both kernel and modules 4.19.0-rc4+ compiled from
https://git.linuxtv.org/linux.git
and kenel and modules 4.19.0-rc1+ compiled from git://linuxtv.org/media_tree.git

Any idea what is the problem or how to investigate ?
Thanks,

Dafna Hirschfeld



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux