SYMLINK videosources does not regonize correct format

Forum for questions and support relating to the 1.30.x releases only.
Locked
soiski71
Posts: 7
Joined: Thu May 01, 2014 3:27 pm

SYMLINK videosources does not regonize correct format

Post by soiski71 »

Hi,

I have 5 different video sources (4 via BT878 Kodicom 4400R + one USB camera). As server needs to be rebooted from time to time , I get my videosources (Video0-Video4) into different video numbers ( Normal Ubuntu behaviour). I managed to create a SYMLINK links that would always point to correct sources even though video numbers would change. But now when trying to configure them with identical settings as with the normal video# sources I get error Failed to get video format: invalid argument. I managed to fix the other error it was also generating about "No direct match for the selceted palette" by copying the palette format (Auto picks up the 24.bit BGR), but for the other error I have not been able to find solution yet.

Sample screenprints of the VIDEO3 source (Named as AUTOTALLI) and AUTOTALLI (Symlink) logs.

Help would be much appriciated.
Attachments
VIDEO3.png
VIDEO3.png (88.12 KiB) Viewed 1625 times
AUTOTALLI.png
AUTOTALLI.png (80.28 KiB) Viewed 1625 times
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: SYMLINK videosources does not regonize correct format

Post by knight-of-ni »

The normal Linux way of overrcoming this issue is to create udev rules such that video1, video2, etc are always the same devices.
I've always found a wealth of documentation via Google when I find myself in this situation and need to remember how to write a udev rule.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
soiski71
Posts: 7
Joined: Thu May 01, 2014 3:27 pm

Re: SYMLINK videosources does not regonize correct format

Post by soiski71 »

Hi Knnniggett,

That is excatly what I have done. With the UDEV rule (also called SYMLINK) I have created the AUTOTALLI link to the /etc/Udev/rules.d rules ( 11-Autotalli.rules). The link it self is easily created as the KERNELS =="0000:02:0c.0" is the unique identifier for that BT878 camera port. And then only SYMLINK+="autotalli".
HAve I over looked something. Do I need to put more identificators for the UDEV list to it understand it is a video source ?
Locked