0

having some capture device, it listed with lsusb Bus 002 Device 002: ID 32ed:3200 ezcap ezcap CAM LINK 4K but its device value changes from time to time, so I need to change cap (j) /dev/video pretty often.

cv::VideoCapture cap(2);

Is there a way to pre-define the device ?

6
  • how to get everything you needed? I know only this output No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: focal
    – Jack3n
    Commented Jul 25, 2023 at 23:01
  • You're well behind on security fixes/upgrades; so I'll suggest applying security fixes asap. This shows the release of 20.04.5 but installed systems upgraded before that date, and your system hasn't had security fixes since before then! and a fully upgraded system no longer reports itself as 20.04.5 either!
    – guiverc
    Commented Jul 25, 2023 at 23:16
  • I just need to set dev0-1-2-3 (any) to my hdmi capture card :) how can I make it? IRC folks told me that udev rule linux is the way
    – Jack3n
    Commented Jul 25, 2023 at 23:20
  • FYI: Link you provided on IRC shows only 3rd party sources (PPA) that don't provide support for focal or 20.04 that I can see. ie. I'd fix justpaste.it/b7x91 and then apply security fixes first. Please add additional details to your question (this is a Q&A site and not a forum; ie. answers will be to your question above; not to comments made about it)
    – guiverc
    Commented Jul 25, 2023 at 23:47
  • 1
    I fixed ppas and updates, what should be done next?
    – Jack3n
    Commented Jul 26, 2023 at 1:01

1 Answer 1

0

Just passed a little further:

I was able to use udevadm control script to make symlink for my device.

But still there is no static name for my device, its number value changes after unplugging the device or pc reboots

I'd like to thank https://askubuntu.com/users/33812/sarnold for his kind support

3
  • This question would be more useful if you gave details on the script & what you did, and what it achieved (for future readers here). FYI: I removed references to me (I didn't help with regards your question; my only involvement was with the lack of upgrades you'd installed due to unsupported-3rd-party PPAs; details not specific to your question here)
    – guiverc
    Commented Jul 26, 2023 at 4:47
  • I would post the script, but cant find commands as can not find proper logs for IRC
    – Jack3n
    Commented Jul 26, 2023 at 21:17
  • ACK, yeah I forgot about that. I brought up your discovery (once I'd confirmed) with ubuntu-IRC & I believe they kicked it & thus irclogs.ubuntu.com/2023/07/26/%23ubuntu.txt etc, but what was missed will be missed. Whilst we have our own copies of what was seen, no globally logged copy exists for all sorry. Your command history should give some clues.
    – guiverc
    Commented Jul 26, 2023 at 22:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .