I'm sort of lost here, any help welcome.
Davey <davey@example.invalid> wrote:
I'm sort of lost here, any help welcome.
Have a look at USB adapters. SD video is not that high bit rate,
especially if the adapter is compressing. No idea of the marketplace, although I have a $7 composite video USB capture that's probably
awful. BNC is just composite video I think - do they power from there
or external power?
If you have a lot of USB devices consider extra USB PCIe cards, but 4
behind a USB 3 hub is probably ok.
Theo
On 13 Sep 2024 20:19:28 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Davey <davey@example.invalid> wrote:
I'm sort of lost here, any help welcome.
Have a look at USB adapters. SD video is not that high bit rate,
especially if the adapter is compressing. No idea of the
marketplace, although I have a $7 composite video USB capture
that's probably awful. BNC is just composite video I think - do
they power from there or external power?
If you have a lot of USB devices consider extra USB PCIe cards, but
4 behind a USB 3 hub is probably ok.
Theo
Hmm. Since this will be a new installation, there will be little other
demand on any resources.
I am looking for something that will accept the BNC plugs coming from
the cameras.
I have not heard of USB devices that can do this, I will look.
And the cameras are all powered from a separate 12v PSU, which splits
to feed all the cameras. The standard camera cable has: Power, Video
signal, Audio signal (if available).
Thanks for the thoughts, I will report progress, if any.
I cannot find any suitable BNC-input USB video cards. Plenty of HDMI
and others, such as network, but not BNC. If you know of any, please
send me a link.
Davey <davey@example.invalid> wrote:
I cannot find any suitable BNC-input USB video cards. Plenty of HDMI
and others, such as network, but not BNC. If you know of any, please
send me a link.
If it's composite video, you just need a BNC to phono (RCA) adapter: https://www.amazon.co.uk/10-BNC-Female-RCA-Adapter/dp/B013GKEYCU/
Then plug into a 'USB video capture' box with 'RCA' inputs.
Definitely not a recommendation, but this kind of thing: https://www.amazon.co.uk/HENGBIRD-Grabber-Capture-Converter-Digitize/dp/B0CMGZTZH1/
Software wise it would pay to search for one with Linux support - the
one I have (branded 'EasyCAP') works with Linux but it's old and I'm
not clear on the current market. Linux TV has info, under analog
devices:
https://www.linuxtv.org/wiki/index.php/Hardware_device_information
It often pays to look for reviews or text which says what chip is
inside, as the cheap brand names change like the wind. Be prepared to
return if you can't make it work under Linux.
Theo
Davey <davey@example.invalid> wrote:
I cannot find any suitable BNC-input USB video cards. Plenty of HDMI
and others, such as network, but not BNC. If you know of any, please
send me a link.
If it's composite video, you just need a BNC to phono (RCA) adapter: https://www.amazon.co.uk/10-BNC-Female-RCA-Adapter/dp/B013GKEYCU/
Then plug into a 'USB video capture' box with 'RCA' inputs.
Definitely not a recommendation, but this kind of thing: https://www.amazon.co.uk/HENGBIRD-Grabber-Capture-Converter-Digitize/dp/B0CMGZTZH1/
Software wise it would pay to search for one with Linux support - the
one I have (branded 'EasyCAP') works with Linux but it's old and I'm
not clear on the current market. Linux TV has info, under analog
devices:
https://www.linuxtv.org/wiki/index.php/Hardware_device_information
It often pays to look for reviews or text which says what chip is
inside, as the cheap brand names change like the wind. Be prepared to
return if you can't make it work under Linux.
Theo
On 14 Sep 2024 09:28:30 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Davey <davey@example.invalid> wrote:
I cannot find any suitable BNC-input USB video cards. Plenty of
HDMI and others, such as network, but not BNC. If you know of
any, please send me a link.
If it's composite video, you just need a BNC to phono (RCA) adapter: https://www.amazon.co.uk/10-BNC-Female-RCA-Adapter/dp/B013GKEYCU/
Then plug into a 'USB video capture' box with 'RCA' inputs.
Definitely not a recommendation, but this kind of thing: https://www.amazon.co.uk/HENGBIRD-Grabber-Capture-Converter-Digitize/dp/B0CMGZTZH1/
Software wise it would pay to search for one with Linux support -
the one I have (branded 'EasyCAP') works with Linux but it's old
and I'm not clear on the current market. Linux TV has info, under
analog devices: https://www.linuxtv.org/wiki/index.php/Hardware_device_information
It often pays to look for reviews or text which says what chip is
inside, as the cheap brand names change like the wind. Be prepared
to return if you can't make it work under Linux.
Theo
Another thought:
Since the current PCI card works fine, I am going to see if I can find
a refurbished PC, which I would not normally look at, to see if I can
find a refurbished PCI slot-equipped machine.
No cost of a £200-plus PCIe card, a cheaper PC than a new one.
Thoughts?
I am going to see if I can find a refurbished PC, which I would not
normally look at, to see if I can find a refurbished PCI slot-
equipped machine.
Davey wrote:
I am going to see if I can find a refurbished PC, which I would not normally look at, to see if I can find a refurbished PCI slot-
equipped machine.
Or a PCIe to PCI riser?
Davey <davey@example.invalid> wrote:
Called a " a PCI to PCIe adaptor card" by me at 10:25? The same
thing, just different names. Although I agree that putting 'PCIe"
before "PCI" is a more logical construction. Whatever we call it,
it looks like the way to go, in my situation.
I don't like refurbished PCs, anyway.
You may have a problem with mounting - the adapter card adds maybe
1-1.5" to the height of your card. Depends on how tall your PCI card
is. You'll probably need to take the backplate off, but it may be
short enough to fit in a full height PCIe slot.
If this is problematic you can get PCIe 'riser' cables. Random
example: https://www.amazon.co.uk/GLOTRENDS-Riser-Function-Features-Degree-Black/dp/B0CHRZQNRK/
(various lengths and x1 / x4 / x8 / x16 available, many different
designs)
and then mount the card elsewhere in the case.
If you're buying a new PC anyway there are a few mobos with native
PCI slots: https://uk.pcpartpicker.com/products/motherboard/#d=1,6&sort=price&page=1
Most of them are for old CPUs, but those with AM4, AM5, LGA1200 or
LGA1700 CPU sockets are fairly modern: https://uk.pcpartpicker.com/products/motherboard/#d=1,6&sort=price&s=33,41,39,40
Theo
Called a " a PCI to PCIe adaptor card" by me at 10:25? The same thing,
just different names. Although I agree that putting 'PCIe" before
"PCI" is a more logical construction. Whatever we call it, it looks like
the way to go, in my situation.
I don't like refurbished PCs, anyway.
You may have a problem with mounting - the adapter card adds maybe 1-1.5" to the height of your card. Depends on how tall your PCI card is.
On 15 Sep 2024 14:47:18 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Davey <davey@example.invalid> wrote:
Called a " a PCI to PCIe adaptor card" by me at 10:25? The same
thing, just different names. Although I agree that putting 'PCIe"
before "PCI" is a more logical construction. Whatever we call it,
it looks like the way to go, in my situation.
I don't like refurbished PCs, anyway.
You may have a problem with mounting - the adapter card adds maybe
1-1.5" to the height of your card. Depends on how tall your PCI
card is. You'll probably need to take the backplate off, but it
may be short enough to fit in a full height PCIe slot.
If this is problematic you can get PCIe 'riser' cables. Random
example: https://www.amazon.co.uk/GLOTRENDS-Riser-Function-Features-Degree-Black/dp/B0CHRZQNRK/
(various lengths and x1 / x4 / x8 / x16 available, many different
designs)
and then mount the card elsewhere in the case.
If you're buying a new PC anyway there are a few mobos with native
PCI slots: https://uk.pcpartpicker.com/products/motherboard/#d=1,6&sort=price&page=1
Most of them are for old CPUs, but those with AM4, AM5, LGA1200 or
LGA1700 CPU sockets are fairly modern: https://uk.pcpartpicker.com/products/motherboard/#d=1,6&sort=price&s=33,41,39,40
Theo
Thanks. I will probably get the PC first, and then I can look inside
and see what space there is, and therefore what I need to get to a
PCI slot. Luckily, my existing system is still working, so it is not
urgent. I will continue to report progress.
Davey <davey@example.invalid> wrote:
I'm sort of lost here, any help welcome.
Have a look at USB adapters. SD video is not that high bit rate,
especially if the adapter is compressing. No idea of the marketplace, although I have a $7 composite video USB capture that's probably
awful. BNC is just composite video I think - do they power from there
or external power?
If you have a lot of USB devices consider extra USB PCIe cards, but 4
behind a USB 3 hub is probably ok.
Theo
Ok, let's try the Euresys drivers. The one for the card is Multicam,
which I downloaded, followed the instructions for installation, and it
kept on failing for lack of something or other. Every attempt prompted
an Uninstall to clean the system. It wanted Memento, and it actually
said 'install Memento', but with no clue as to where to find it. I
eventually did, buried deep in the website, and downloaded the
documentation and installer for that. I tried to install it,
but it fails:
Davey <davey@example.invalid> wrote:
Ok, let's try the Euresys drivers. The one for the card is Multicam,
which I downloaded, followed the instructions for installation, and
it kept on failing for lack of something or other. Every attempt
prompted an Uninstall to clean the system. It wanted Memento, and
it actually said 'install Memento', but with no clue as to where to
find it. I eventually did, buried deep in the website, and
downloaded the documentation and installer for that. I tried to
install it, but it fails:
The first rule is never ever use vendor drivers, they are the route
to much pain and suffering.
Supposedly the chip supports the 'bttv' driver: https://www.linuxtv.org/wiki/index.php/Bttv
which in theory should work out of the box.
See:
https://www.kernel.org/doc/html/v4.14/media/v4l-drivers/index.html specifically the bttv section.
You might need to install a package containing the 'bttv.ko' kernel
module - you may need a linux-modules-extra-... package. eg to
install for your current kernel version:
$ sudo apt install linux-modules-extra-$(uname -r)
(you may need to repeat the command when your kernel version gets
updated, not sure if there's a way to keep them in sync)
Theo
Many thanks. I tried the instructions that came with the original bttv
driver card, but got nowhere. But that was for an early version of
Ubuntu, so I was not surprised.
I will try your suggestions, thanks.
Davey <davey@example.invalid> wrote:
Many thanks. I tried the instructions that came with the original
bttv driver card, but got nowhere. But that was for an early
version of Ubuntu, so I was not surprised.
I will try your suggestions, thanks.
Anyway, it appears Memento is completely the wrong thing for your application:
"Memento is an advanced event message logging system that greatly
facilitates the debugging of machine vision applications using
Euresys frame grabbers.
Memento is a set of software tools allowing:
* Kernel drivers and user space applications –
Memento Contributors – to inject trace messages – Memento Messages – into a common memory area – the Memento Ring Buffer.
* Memento Contributors to time-stamp Memento messages
using a common time scale – Memento Time Scale.
* To view selected sets of recent- or past- Memento
Messages using the Memento Viewer function
* To dump Memento data from the Memento Ring Buffer
to disk using the Memento Dump function
The Memento software package has two main components:
* A kernel-mode driver: Memento Driver.
* A user-mode application: Memento Application." https://documentation.euresys.com/Products/Memento/Memento_9_4/Content/01%20Getting%20Started/Abstract.htm
I don't think you're debugging a machine vision application, so what
you were trying to install seems like a complete red herring.
Davey <davey@example.invalid> wrote:
Ok, let's try the Euresys drivers. The one for the card is Multicam,
which I downloaded, followed the instructions for installation, and
it kept on failing for lack of something or other. Every attempt
prompted an Uninstall to clean the system. It wanted Memento, and
it actually said 'install Memento', but with no clue as to where to
find it. I eventually did, buried deep in the website, and
downloaded the documentation and installer for that. I tried to
install it, but it fails:
The first rule is never ever use vendor drivers, they are the route
to much pain and suffering.
Supposedly the chip supports the 'bttv' driver: https://www.linuxtv.org/wiki/index.php/Bttv
which in theory should work out of the box.
See:
https://www.kernel.org/doc/html/v4.14/media/v4l-drivers/index.html specifically the bttv section.
You might need to install a package containing the 'bttv.ko' kernel
module - you may need a linux-modules-extra-... package. eg to
install for your current kernel version:
$ sudo apt install linux-modules-extra-$(uname -r)
(you may need to repeat the command when your kernel version gets
updated, not sure if there's a way to keep them in sync)
Theo
On 10 Oct 2024 10:41:13 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Davey <davey@example.invalid> wrote:
Ok, let's try the Euresys drivers. The one for the card is
Multicam, which I downloaded, followed the instructions for
installation, and it kept on failing for lack of something or
other. Every attempt prompted an Uninstall to clean the system.
It wanted Memento, and it actually said 'install Memento', but
with no clue as to where to find it. I eventually did, buried
deep in the website, and downloaded the documentation and
installer for that. I tried to install it, but it fails:
The first rule is never ever use vendor drivers, they are the route
to much pain and suffering.
Supposedly the chip supports the 'bttv' driver: https://www.linuxtv.org/wiki/index.php/Bttv
which in theory should work out of the box.
See:
https://www.kernel.org/doc/html/v4.14/media/v4l-drivers/index.html specifically the bttv section.
You might need to install a package containing the 'bttv.ko' kernel
module - you may need a linux-modules-extra-... package. eg to
install for your current kernel version:
$ sudo apt install linux-modules-extra-$(uname -r)
(you may need to repeat the command when your kernel version gets
updated, not sure if there's a way to keep them in sync)
Theo
Ok. I sent some time on this today. As far as I can see, all the
required modules etc are loaded. I can find nothing to be missing,
but I am not familiar with this.
It looks as though all the components are there, the PC recognises the
card, but I can't get Zoneminder to open a channel. I'm leaving it
alone overnight.
In order to test the card, I have dug out an unused camera, by
Defender Security. It worked when I bought it and tested it, but I
can't now get it to function correctly when attached to the empty
input on the old PC. It may be that I tested it on the independent
Swann CCTV system. It has a resolution of 976 x 496, but if I set it
to that, I get a sliced and angled image. If I try some other setups,
all the other inputs go crazy, so my attempt to use a known good
camera on the new PC fails. I will have to temporarily remove one of
the working cameras from its place, use it for testing, and then
replace it. If I can get the PC and the card to talk turkey, that is.
And just to confuse me, Euresys replied to my earlier message about
Memento and Multicam, saying that Memento is not needed, and is old,
and suggesting I try Multicam alone. In direct contravention of their
own instruction manual!
it looks like a busy weekend at the workbench.
Any suggestions welcome.
Davey wrote:
Any suggestions welcome.
Does "lspci" show the brooktree card(s)?
does "ls /dev/video*" show the devices?
ls: cannot access '/dev/video*': No such file or directory
Now, I know I saw video0 somewhere before, I specically looked for it. I can't remember if it was in /dev. Then, I followed the instructions in HOW-TO-etc, and it was there before I rebooted. Now it's not. I need to
do some more route retracing.
Davey wrote:
ls: cannot access '/dev/video*': No such file or directory
Now, I know I saw video0 somewhere before, I specically looked for
it. I can't remember if it was in /dev. Then, I followed the
instructions in HOW-TO-etc, and it was there before I rebooted. Now
it's not. I need to do some more route retracing.
The entries under /dev would only appear if a driver had loaded,
normally PnP would handle it, but maybe some furtling with modprobe
or insmod required?
Probably look first for clues with "dmesg | grep -i -e bt878 -e brook"
Davey wrote:
ls: cannot access '/dev/video*': No such file or directory
Now, I know I saw video0 somewhere before, I specically looked for
it. I can't remember if it was in /dev. Then, I followed the
instructions in HOW-TO-etc, and it was there before I rebooted. Now
it's not. I need to do some more route retracing.
The entries under /dev would only appear if a driver had loaded,
normally PnP would handle it, but maybe some furtling with modprobe
or insmod required?
Probably look first for clues with "dmesg | grep -i -e bt878 -e brook"
On Sun, 13 Oct 2024 11:18:48 +0100
Andy Burns <usenet@andyburns.uk> wrote:
Davey wrote:
ls: cannot access '/dev/video*': No such file or directory
Now, I know I saw video0 somewhere before, I specically looked for
it. I can't remember if it was in /dev. Then, I followed the
instructions in HOW-TO-etc, and it was there before I rebooted.
Now it's not. I need to do some more route retracing.
The entries under /dev would only appear if a driver had loaded,
normally PnP would handle it, but maybe some furtling with modprobe
or insmod required?
Probably look first for clues with "dmesg | grep -i -e bt878 -e
brook"
"dmesg | grep -i -e bt878 -e brook"
produced no results. Hmm.
I ran "$ sudo dmesg | less" again, it had previously produced lines
showing that bttv was loaded. This time it did not.
I then ran "$ sudo modprobe -v bttv", and then the dmesg showed the
bttv entries again. So modprobe is needed, at least at the moment.
Then, again, the dmesg | grep instruction shows:
~$ sudo dmesg | grep -i -e bt878 -e brook
[16854.002864] bttv: 0: Bt878 (rev 17) at 0000:04:00.0, irq: 19,
latency: 32, mmio: 0x83401000
So things are heading in the right direction, even if for now manual configuration is needed.
Then $lsmod
"Module Size Used by
bttv 176128 0
tveeprom 24576 1 bttv
tea575x 20480 1 bttv
videobuf2_dma_sg 20480 1 bttv
videobuf2_memops 16384 1 videobuf2_dma_sg
videobuf2_v4l2 36864 1 bttv
videobuf2_common 81920 4 bttv,videobuf2_v4l2,videobuf2_dma_sg,videobuf2_memops rc_core
73728 1 bttv i2c_algo_bit 16384 1 bttv
videodev 356352 3 tea575x,bttv,videobuf2_v4l2
mc 81920 3
videodev,videobuf2_v4l2,videobuf2_common"
which shows an entry for v4l2.
Then:
$ ls /dev/video*
/dev/video0
So far, so good, it looks. But Zoneminder still does not see anything.
Still puzzled, with at least a list of what to do on boot to load
things.
it is only as
part of 'videobuf2'
Another thing that puzzles me:
I can locate bttv.ko, the module to load the driver, but I can't read
it, I get some strange script as though I need a different language.
Davey wrote:
Another thing that puzzles me:
I can locate bttv.ko, the module to load the driver, but I can't
read it, I get some strange script as though I need a different
language.
Curious why you think it ought to be readable? It's compiled code.
It's ages since I dabbled with ZM, so nothing I can say about
persuading it to use cameras.
can you get ffmpeg, gstreamer or vlc to capture from the camera?
I can try. Not my normal area of expertise, but anything is worth
trying.
More later, thanks for thoughts.
Davey <davey@example.invalid> wrote:
I can try. Not my normal area of expertise, but anything is worth
trying.
More later, thanks for thoughts.
It's worth looking at logs from Zoneminder, vlc or anywhere else
that's relevant. It's possible they're complaining about something
that is stopping the card from being accepted.
In the olden days the logfiles lived in /var/log (some still do), but nowadays you need to interact with 'journalctl', eg 'journalctl -x -e'
If you find a log line that's relevant, google the message and see
what comes up.
Theo
I must automate the required actions that I
know about to make bootup easier.
Davey wrote:
I must automate the required actions that I
know about to make bootup easier.
You ought to be able to force the equivalent of the insmod/modprobe
you're doing, by putting entries into /etc/modprobe.conf
Or at worst, adding the module name to the kernel command line in
your grub.cfg
On Mon, 14 Oct 2024 16:59:45 +0100
Andy Burns <usenet@andyburns.uk> wrote:
Davey wrote:
I must automate the required actions that I
know about to make bootup easier.
You ought to be able to force the equivalent of the insmod/modprobe
you're doing, by putting entries into /etc/modprobe.conf
Or at worst, adding the module name to the kernel command line in
your grub.cfg
As an aside, I was wondering whether to load Ubuntu 24.04 onto the new
PC, alongside the 22.04 that I am currently using, and see if
installing that, with the videocard already in place, might be worth a
try.
I installed 22.04 because 24.04 seemed to be lacking some programmes
that I use, whereas 22.04 is familiar with them. If 22.04 works, then
that would be fine, as the PC's main purpose is to run Zoneminder.
Davey wrote:
I must automate the required actions that I
know about to make bootup easier.
You ought to be able to force the equivalent of the insmod/modprobe
you're doing, by putting entries into /etc/modprobe.conf
Or at worst, adding the module name to the kernel command line in
your grub.cfg
Davey <davey@example.invalid> wrote:
I can try. Not my normal area of expertise, but anything is worth
trying.
More later, thanks for thoughts.
It's worth looking at logs from Zoneminder, vlc or anywhere else
that's relevant. It's possible they're complaining about something
that is stopping the card from being accepted.
In the olden days the logfiles lived in /var/log (some still do), but nowadays you need to interact with 'journalctl', eg 'journalctl -x -e'
If you find a log line that's relevant, google the message and see
what comes up.
Theo
I just tried again, and then looked for the log. And the first thing
that comes up is:
"FAT [zmc_dvideo0] [Failed to open video device /dev/video0: Permission denied]"
Davey <davey@example.invalid> wrote:
I just tried again, and then looked for the log. And the first thing
that comes up is:
"FAT [zmc_dvideo0] [Failed to open video device /dev/video0:
Permission denied]"
which gives a reason for failure.
On Ubuntu 24.04 I get:
$ ls -l /dev
...
crw-rw----+ 1 root video 81, 0 Oct 9 09:13 video0
crw-rw----+ 1 root video 81, 1 Oct 9 09:13 video1
crw-rw----+ 1 root video 81, 2 Oct 9 09:13 video2
crw-rw----+ 1 root video 81, 3 Oct 9 09:13 video3
so only those in the 'video' group get access to the video device.
Have you checked that your user is in the 'video' group?
Maybe it might be worth removing and reinstalling Zoneminder after
getting the ./MAKEDEV and modprobe -v bttv processes completed. I
seem to be just spinning my wheels here.
./MAKEDEV is a very old way of doing things. These days the tool is
'udev' and you have udev rules which say how the devices are made as
things are hotplugged. I have pre-existing rules in various files:
$ grep -r video /lib/udev/rules.d/
/lib/udev/rules.d/95-cd-devices.rules:# video cameras /lib/udev/rules.d/95-cd-devices.rules:SUBSYSTEM=="video4linux", ENV{ID_V4L_PRODUCT}!="", ENV{COLORD_DEVICE}="1",
ENV{COLORD_KIND}="camera" /lib/udev/rules.d/60-persistent-v4l.rules:SUBSYSTEM!="video4linux",
GOTO="persistent_v4l_end" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*",
ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*|vbi*",
ENV{ID_PATH}=="?*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*|vbi*",
ENV{ID_PATH_WITH_USB_REVISION}=="?*", SYMLINK+="v4l/by-path/$env{ID_PATH_WITH_USB_REVISION}-video-index$attr{index}" /lib/udev/rules.d/70-uaccess.rules:SUBSYSTEM=="video4linux",
TAG+="uaccess" /lib/udev/rules.d/70-uaccess.rules:# DRI video
devices /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="video4linux", GROUP="video" /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="graphics", GROUP="video" /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="drm", KERNEL!="renderD*",
GROUP="video" /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="dvb", GROUP="video" /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="media", GROUP="video" /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="cec", GROUP="video" /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="firewire", TEST=="units", ENV{IEEE1394_UNIT_FUNCTION_VIDEO}=="1",
GROUP="video" /lib/udev/rules.d/70-camera.rules:SUBSYSTEM=="video4linux", ENV{ID_BUS}="usb",
\ /lib/udev/rules.d/80-debian-compat.rules:KERNEL=="lirc[0-9]*", GROUP="video"
You shouldn't edit those rules, but put new rules in /etc/udev/rules.d
However I don't think you need new rules, just putting your user in
the 'video' group and then logging out and back in again should fix
it.
Theo
I just tried again, and then looked for the log. And the first thing
that comes up is:
"FAT [zmc_dvideo0] [Failed to open video device /dev/video0: Permission denied]"
which gives a reason for failure.
Maybe it might be worth removing and reinstalling Zoneminder after
getting the ./MAKEDEV and modprobe -v bttv processes completed. I seem
to be just spinning my wheels here.
Davey <davey@example.invalid> wrote:
I just tried again, and then looked for the log. And the first thing
that comes up is:
"FAT [zmc_dvideo0] [Failed to open video device /dev/video0:
Permission denied]"
which gives a reason for failure.
On Ubuntu 24.04 I get:
$ ls -l /dev
...
crw-rw----+ 1 root video 81, 0 Oct 9 09:13 video0
crw-rw----+ 1 root video 81, 1 Oct 9 09:13 video1
crw-rw----+ 1 root video 81, 2 Oct 9 09:13 video2
crw-rw----+ 1 root video 81, 3 Oct 9 09:13 video3
so only those in the 'video' group get access to the video device.
Have you checked that your user is in the 'video' group?
Maybe it might be worth removing and reinstalling Zoneminder after
getting the ./MAKEDEV and modprobe -v bttv processes completed. I
seem to be just spinning my wheels here.
./MAKEDEV is a very old way of doing things. These days the tool is
'udev' and you have udev rules which say how the devices are made as
things are hotplugged. I have pre-existing rules in various files:
$ grep -r video /lib/udev/rules.d/
/lib/udev/rules.d/95-cd-devices.rules:# video cameras /lib/udev/rules.d/95-cd-devices.rules:SUBSYSTEM=="video4linux", ENV{ID_V4L_PRODUCT}!="", ENV{COLORD_DEVICE}="1",
ENV{COLORD_KIND}="camera" /lib/udev/rules.d/60-persistent-v4l.rules:SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*|vbi*", ENV{ID_PATH}=="?*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*|vbi*", ENV{ID_PATH_WITH_USB_REVISION}=="?*", SYMLINK+="v4l/by-path/$env{ID_PATH_WITH_USB_REVISION}-video-index$attr{index}"
/lib/udev/rules.d/70-uaccess.rules:SUBSYSTEM=="video4linux",
TAG+="uaccess" /lib/udev/rules.d/70-uaccess.rules:# DRI video devices /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="video4linux", GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="graphics",
GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="drm",
KERNEL!="renderD*", GROUP="video" /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="dvb",
GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="media",
GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="cec",
GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="firewire",
TEST=="units", ENV{IEEE1394_UNIT_FUNCTION_VIDEO}=="1", GROUP="video" /lib/udev/rules.d/70-camera.rules:SUBSYSTEM=="video4linux", ENV{ID_BUS}="usb", \ /lib/udev/rules.d/80-debian-compat.rules:KERNEL=="lirc[0-9]*",
GROUP="video"
You shouldn't edit those rules, but put new rules in /etc/udev/rules.d
However I don't think you need new rules, just putting your user in
the 'video' group and then logging out and back in again should fix
it.
Theo
Davey wrote:
I just tried again, and then looked for the log. And the first thing
that comes up is:
"FAT [zmc_dvideo0] [Failed to open video device /dev/video0:
Permission denied]"
Can you use sudo or su to run whatever you're running?
Maybe chmod/chown the /dev/video0 device
run vlc, with su or sudo
from within the gui choose Media / Open Capture Device
and for video device use /dev/video0
leave audio device as 'none'
Davey <davey@example.invalid> wrote:
I just tried again, and then looked for the log. And the first thing
that comes up is:
"FAT [zmc_dvideo0] [Failed to open video device /dev/video0:
Permission denied]"
which gives a reason for failure.
On Ubuntu 24.04 I get:
$ ls -l /dev
...
crw-rw----+ 1 root video 81, 0 Oct 9 09:13 video0
crw-rw----+ 1 root video 81, 1 Oct 9 09:13 video1
crw-rw----+ 1 root video 81, 2 Oct 9 09:13 video2
crw-rw----+ 1 root video 81, 3 Oct 9 09:13 video3
so only those in the 'video' group get access to the video device.
Have you checked that your user is in the 'video' group?
Maybe it might be worth removing and reinstalling Zoneminder after
getting the ./MAKEDEV and modprobe -v bttv processes completed. I
seem to be just spinning my wheels here.
./MAKEDEV is a very old way of doing things. These days the tool is
'udev' and you have udev rules which say how the devices are made as
things are hotplugged. I have pre-existing rules in various files:
$ grep -r video /lib/udev/rules.d/
/lib/udev/rules.d/95-cd-devices.rules:# video cameras /lib/udev/rules.d/95-cd-devices.rules:SUBSYSTEM=="video4linux", ENV{ID_V4L_PRODUCT}!="", ENV{COLORD_DEVICE}="1",
ENV{COLORD_KIND}="camera" /lib/udev/rules.d/60-persistent-v4l.rules:SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*|vbi*", ENV{ID_PATH}=="?*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}" /lib/udev/rules.d/60-persistent-v4l.rules:KERNEL=="video*|vbi*", ENV{ID_PATH_WITH_USB_REVISION}=="?*", SYMLINK+="v4l/by-path/$env{ID_PATH_WITH_USB_REVISION}-video-index$attr{index}"
/lib/udev/rules.d/70-uaccess.rules:SUBSYSTEM=="video4linux",
TAG+="uaccess" /lib/udev/rules.d/70-uaccess.rules:# DRI video devices /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="video4linux", GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="graphics",
GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="drm",
KERNEL!="renderD*", GROUP="video" /lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="dvb",
GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="media",
GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="cec",
GROUP="video"
/lib/udev/rules.d/50-udev-default.rules:SUBSYSTEM=="firewire",
TEST=="units", ENV{IEEE1394_UNIT_FUNCTION_VIDEO}=="1", GROUP="video" /lib/udev/rules.d/70-camera.rules:SUBSYSTEM=="video4linux", ENV{ID_BUS}="usb", \ /lib/udev/rules.d/80-debian-compat.rules:KERNEL=="lirc[0-9]*",
GROUP="video"
You shouldn't edit those rules, but put new rules in /etc/udev/rules.d
However I don't think you need new rules, just putting your user in
the 'video' group and then logging out and back in again should fix
it.
Theo
"crw-rw----+ 1 root video 81, 0 Oct 16 10:09 /dev/video0"
Why is the day's date the 0 of the month?
But vlc still fails on Permission refused! What am I doing wrong?
Davey wrote:
"crw-rw----+ 1 root video 81, 0 Oct 16 10:09 /dev/video0"
Why is the day's date the 0 of the month?
the 81, 0 are the major and minor device numbers, the date is the 16 following the month name :-)
But vlc still fails on Permission refused! What am I doing wrong?
I know it's not really the done thing, but will Ubuntu actually let
you log on as root to test it does work that way? Not suggesting
it's an actual fix.
On Wed, 16 Oct 2024 15:56:30 +0100
Andy Burns <usenet@andyburns.uk> wrote:
Davey wrote:
"crw-rw----+ 1 root video 81, 0 Oct 16 10:09 /dev/video0"
Why is the day's date the 0 of the month?
the 81, 0 are the major and minor device numbers, the date is the
16 following the month name :-)
But vlc still fails on Permission refused! What am I doing
wrong?
I know it's not really the done thing, but will Ubuntu actually let
you log on as root to test it does work that way? Not suggesting
it's an actual fix.
I tried that yesterday, but it replied that vlc would not work with
root.
Good idea, though!
To elaborate on this: I can run vlc without any problem. I can watch a different camera on my Swann system via rtsp. It is this /dev/video(0) permission problem that is stopping it working with the Zoneminder
cameras.
On Wed, 16 Oct 2024 17:29:18 +0100
Davey <davey@example.invalid> wrote:
On Wed, 16 Oct 2024 15:56:30 +0100
Andy Burns <usenet@andyburns.uk> wrote:
Davey wrote:
"crw-rw----+ 1 root video 81, 0 Oct 16 10:09 /dev/video0"
Why is the day's date the 0 of the month?
the 81, 0 are the major and minor device numbers, the date is the
16 following the month name :-)
But vlc still fails on Permission refused! What am I doing
wrong?
I know it's not really the done thing, but will Ubuntu actually
let you log on as root to test it does work that way? Not
suggesting it's an actual fix.
I tried that yesterday, but it replied that vlc would not work with
root.
Good idea, though!
To elaborate on this: I can run vlc without any problem. I can watch a different camera on my Swann system via rtsp. It is this /dev/video(0) permission problem that is stopping it working with the Zoneminder
cameras.
"su -" wants a Password. Where do I find that? It won't accept mine, obviously.it's root's
Davey wrote:
To elaborate on this: I can run vlc without any problem. I can
watch a different camera on my Swann system via rtsp. It is this /dev/video(0) permission problem that is stopping it working with
the Zoneminder cameras.
can you show the output of "id" when logged in as davey
and again after running "su -"
Davey wrote:
"su -" wants a Password. Where do I find that? It won't accept mine,it's root's
obviously.
alternatively you could use "sudo su -" and your own password
Davey wrote:
"su -" wants a Password. Where do I find that? It won't accept mine, obviously.it's root's
alternatively you could use "sudo su -" and your own password
Davey <davey@example.invalid> wrote:
I'm sort of lost here, any help welcome.
Have a look at USB adapters. SD video is not that high bit rate,
especially if the adapter is compressing. No idea of the marketplace, although I have a $7 composite video USB capture that's probably
awful. BNC is just composite video I think - do they power from there
or external power?
If you have a lot of USB devices consider extra USB PCIe cards, but 4
behind a USB 3 hub is probably ok.
Theo
After the recent problems with the ancient Ubuntu and Zoneminder installation, I thought about upgrading the PC, the old Dell is now 24AR-vGbt2iOKyERzGmK5VBKquSqV1-N3EZ4nkY8Pz5PQtxttI1m2HqOQ-utUt18BBG8ICr_L7dqEBKreLTHnThSCZT0k1l4d8kjknq8IkmCHeS0WjnfSI.EI8jbBtNOBcmbrhK97vIlojvxMOYz-tXJQWmixSWSrg&dib_tag=se&keywords=PCI-E+video+camera+capture+cards&qid=1726225777&sprefix=pci-e+video+
years old.
I have a new separate Swann system, but I cannot find how to extract
video from it, it likes Windows, not Linux.
So I am looking at a new (or refurbished) desktop PC, hoping to use my existing CCTV cameras, all with BNC connectors, and to be able to add
one more, making 4 in total. It also monitors one WiFi camera on the
network. Tje PC is also my daily laptop backup device.
My old video card is a PCI, which is now ancient history, so will be
no good for a new PC. Satcure, where I got my first video card from,
went bust some time ago.
Looking around, I see modern versions, but at huge prices, £250 up to £600!! Yikes. Am I looking for the wrong item here? I don't believe
the old card cost anything like that much.
A sample of what I find: https://www.amazon.co.uk/gp/product/B0D9NQZ2VH/ref=ewc_pr_img_1?smid=AKG67ZUVCCXRK&psc=1
But I don't have SDI, and I don't want to replace my cameras or my
cabling. I am just looking for a PCI-e, BNC connectors, CCTV video
input card,
There is:
https://tinyurl.com/3smbmmhj
also known as:
https://www.amazon.co.uk/Potadak-Captura-Adapter-Computer-Camera-Black/dp/B0CCDCLL5G/ref=sr_1_140?crid=ZQ64KGYGR0UF&dib=eyJ2IjoiMSJ9.z-FIUNnsxAdgHlwX1RlfFRn8U0hm9D5LhTXHaELlQN8lsa7tU6cLwpZo1bjed5npm5LPhrdsoubaowZjmN3hPhos0n0Ly_t-JN4C1VIND-DuA8BJVTI3nh_
which doesn't say SDI, in fact it doesn't say much of anything, but
therefore MIGHT work with my existing cameras. But there is no
spec.! And I have no idea who Potadek is/are, they seem to sell
everything you could think of. Jack of all trades, and master of none,
comes to mind.
I'm sort of lost here, any help welcome.
Using channel 0 of the new card, with the other channels set to None
for Function, I have the input for the card set as:
Mode: PAL; Capture Palette: RGB32; Target colorspace: 32 bit colour;
Capture Resolution: 768 x 576.
The camera says that its resolution is 976 x 496. Using these figures
in the setup results in nothing.
With the 768 x 576 setup, the Source tag on the Console screen goes
green, and I get an image. But the image is continuously scrolling, and
is fractured. Vague hunts of the real view are tantalisingly hunted at.
Any other Resolution setup I try fails again. I am sure the answer is
out here, but how do I find it?
Again, any help very welcome.
But at least I have made progress!
it sounds like PAL
768x576 is the right thing (the camera is PAL if it's TV standard
Theo wrote:
it sounds like PAL
768x576 is the right thing (the camera is PAL if it's TV standard
Yes, the camera may mention "resolution of 976x496" but that's only
in terms of its ability to resolve that many TVL from a chart like
this, it doesn't mean it spits out 976x496 pixels, or should be
captured at that resolution, 768x576 is correct.
<https://en.wikipedia.org/wiki/EIA_1956_resolution_chart#/media/File:EIA_Resolution_Chart_1956.svg>
Davey <davey@example.invalid> wrote:
On Thu, 24 Oct 2024 12:33:27 +0100
Andy Burns <usenet@andyburns.uk> wrote:
Theo wrote:
it sounds like PAL
768x576 is the right thing (the camera is PAL if it's TV
standard
Yes, the camera may mention "resolution of 976x496" but that's
only in terms of its ability to resolve that many TVL from a
chart like this, it doesn't mean it spits out 976x496 pixels, or
should be captured at that resolution, 768x576 is correct.
<https://en.wikipedia.org/wiki/EIA_1956_resolution_chart#/media/File:EIA_Resolution_Chart_1956.svg>
The Deinterlacing box was already set at Linear, by default.
Options offered are: Disabled, Four field motion adaptive-Soft, Four
field motion adaptive-Medium, Four field motion adaptive-Hard,
Discard, Blend, Blend (25%), V4L2: Capture top field only, V4L2:
Capture bottom field only, V4L2: Capture Alternate fields (Bob),
V4L2 progressive, V4L2 Interlaced.
I had hoped that one of the V4L2 options would be correct, but none
of any of the options offered seem to work. The behaviour of the
image might change slightly, but it still does not work.
Hmm.
Considering where I was at a couple of weeks ago, this is
still progress, but I still can't get over that final hurdle.
It isn't NTSC is it? Probably not if it's a UK setup, but eg I was
looking at reversing cameras for cars and they mostly seem to be NTSC composite video. Suppose it makes sense as they don't need special
versions for Europe and they are never displayed on a TV, only on the dashboard LCD.
If the camera has only ever been used by a capture card and never a TV/monitor, it could be NTSC.
Theo
On Thu, 24 Oct 2024 12:33:27 +0100
Andy Burns <usenet@andyburns.uk> wrote:
Theo wrote:
it sounds like PAL
768x576 is the right thing (the camera is PAL if it's TV standard
Yes, the camera may mention "resolution of 976x496" but that's only
in terms of its ability to resolve that many TVL from a chart like
this, it doesn't mean it spits out 976x496 pixels, or should be
captured at that resolution, 768x576 is correct.
<https://en.wikipedia.org/wiki/EIA_1956_resolution_chart#/media/File:EIA_Resolution_Chart_1956.svg>
The Deinterlacing box was already set at Linear, by default.
Options offered are: Disabled, Four field motion adaptive-Soft, Four
field motion adaptive-Medium, Four field motion adaptive-Hard,
Discard, Blend, Blend (25%), V4L2: Capture top field only, V4L2: Capture bottom field only, V4L2: Capture Alternate fields (Bob), V4L2 progressive, V4L2 Interlaced.
I had hoped that one of the V4L2 options would be correct, but none of
any of the options offered seem to work. The behaviour of the image
might change slightly, but it still does not work.
Hmm.
Considering where I was at a couple of weeks ago, this is
still progress, but I still can't get over that final hurdle.
After the recent problems with the ancient Ubuntu and Zoneminder installation, I thought about upgrading the PC, the old Dell is now 24
years old.
I have a new separate Swann system, but I cannot find how to extract
video from it, it likes Windows, not Linux.
When I initiate the Install procedure, it stops on a compiler
difference condition. I pate the relavant text:
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using:
1: gcc-12: not found make[3]: ***
On 27/11/2024 15:11, Davey wrote:
When I initiate the Install procedure, it stops on a compiler
difference condition. I pate the relavant text:
I haven't built a linux driver for some years, now ... but I recall
the toolchain being quite fussy (with good reason) about the actual
versions of the individual tools. I have on occasion found that
building my own kernel was the easiest way to get everything
consistent (or it may just be that I didn't understand the process
well enough).
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using:
That looks truncated ... it should tell you what version you are
using but that information is missing.
You can find out the actual version of gcc that you have installed by
typing
gcc --version
With a distro as old as Ubuntu 22.04 you may find that successive
updates have landed with a newer kernel (compiled using a newer
compiler than you have) or a newer compiler (than was used to compile
the kernel). Short of switching to a fresh distro with no updates
(which *should* be consistent) or building your own kernel and
drivers with the compiler you have I don't know a way to ensure
consistency.
1: gcc-12: not found make[3]: ***
That seems to be saying that the make tool isn't installed. The
easiest way to get the full toolchain installed is to install the
metapackage called "build-essential".
Thanks for confirming that what I am trying to do is pointless!
After the recent problems with the ancient Ubuntu and Zoneminder installation, I thought about upgrading the PC, the old Dell is now 24
years old.
I have a new separate Swann system, but I cannot find how to extract
video from it, it likes Windows, not Linux.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 26:01:43 |
Calls: | 10,390 |
Calls today: | 1 |
Files: | 14,064 |
Messages: | 6,417,039 |