Page 1 of 1

SYMLINK videosources does not regonize correct format

Posted: Sun Oct 16, 2016 2:51 pm
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.

Re: SYMLINK videosources does not regonize correct format

Posted: Sun Oct 16, 2016 4:59 pm
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.

Re: SYMLINK videosources does not regonize correct format

Posted: Mon Oct 17, 2016 3:23 pm
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 ?