How to assign camera source by its USB identity?How do I get my Sony Cybershot W510 to connect?14.04 doesn't mount digital cameraOnly use Mass Storage devices on a selected USB port - how?Create UDEV rule for device with multiple tty ports
Character Development - Robert Baratheon
How much piloting did the Apollo astronauts actually do?
Is it a complete sentence: "Caution murmured: it could be a trick, a lure, a trap."?
My code seems to be a train wreck
Is Yoda made using CGI in the original Star Wars or is it practical effects?
Is it possible to infer the characteristic curve of a recording device only from (many) recordings?
What are the ways my non-monk character can improve their unarmed damage?
Would I still be able to cast conjure barrage if I was also using flame arrow?
tikz: specify a point a distance from beginning/end of a path
Is Bitlocker secure enough for portable storage devices?
Difference between cross-validation, backtesting, historical simulation, Monte Carlo simulation, bootstrap replication?
How to determine if drill is suitable for concrete?
Is there a specific reason Delta Air Lines is allowed to have a call sign that's also code word in the NATO phonetic alphabet?
Is it safe to push a lens to "fold" it?
Why only sine waves?
Life insurance as a lottery ticket
When is TeX better than LaTeX?
Why did a gate officer and exit immigration officer try to peel my visa sticker?
Is sometimes "how I shall" = "how shall I"?
A new way of approaching the pole of the Riemann zeta function - and a new conjectured formula
What happens when an outsider changes alignment?
How to move directory into a directory with the same name?
Purpose of the languages selector in the Python Console
How to simplify context free grammars?
How to assign camera source by its USB identity?
How do I get my Sony Cybershot W510 to connect?14.04 doesn't mount digital cameraOnly use Mass Storage devices on a selected USB port - how?Create UDEV rule for device with multiple tty ports
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
USB cameras are automatically mounted to ubuntu. I have a case where i have multiple USB cameras in use. I'm mounting each camera on a different port on the laptop.
Sometimes during boot, camera 1 will be disconnected, but camera 2 will be connected, and camera 2 will be assigned to /dev/video1
, however the rest of my software assumes/dev/video1
is linked to the camera 1.
What i would like is for if camera 1 is disconnected, then camera 2 will mount itself to its right location - /dev/video2
- and I can keep working.
Since these are USB devices i know they have a unique id. But i dont know anything about mounting video points enough to make this work.
usb
add a comment
|
USB cameras are automatically mounted to ubuntu. I have a case where i have multiple USB cameras in use. I'm mounting each camera on a different port on the laptop.
Sometimes during boot, camera 1 will be disconnected, but camera 2 will be connected, and camera 2 will be assigned to /dev/video1
, however the rest of my software assumes/dev/video1
is linked to the camera 1.
What i would like is for if camera 1 is disconnected, then camera 2 will mount itself to its right location - /dev/video2
- and I can keep working.
Since these are USB devices i know they have a unique id. But i dont know anything about mounting video points enough to make this work.
usb
add a comment
|
USB cameras are automatically mounted to ubuntu. I have a case where i have multiple USB cameras in use. I'm mounting each camera on a different port on the laptop.
Sometimes during boot, camera 1 will be disconnected, but camera 2 will be connected, and camera 2 will be assigned to /dev/video1
, however the rest of my software assumes/dev/video1
is linked to the camera 1.
What i would like is for if camera 1 is disconnected, then camera 2 will mount itself to its right location - /dev/video2
- and I can keep working.
Since these are USB devices i know they have a unique id. But i dont know anything about mounting video points enough to make this work.
usb
USB cameras are automatically mounted to ubuntu. I have a case where i have multiple USB cameras in use. I'm mounting each camera on a different port on the laptop.
Sometimes during boot, camera 1 will be disconnected, but camera 2 will be connected, and camera 2 will be assigned to /dev/video1
, however the rest of my software assumes/dev/video1
is linked to the camera 1.
What i would like is for if camera 1 is disconnected, then camera 2 will mount itself to its right location - /dev/video2
- and I can keep working.
Since these are USB devices i know they have a unique id. But i dont know anything about mounting video points enough to make this work.
usb
usb
asked Sep 26 at 0:59
steve antwansteve antwan
918 bronze badges
918 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
For me, I just needed to run ls /dev/v4l/by-path/
The camera's USB port is consistently updated there, you can check by switching the camera on and off and watching its path value change there.
Alternatively, you can run ls /dev/v4l/by-id/
, but this didn't work for me because all my cameras had the same ID. Specifying by USB port seems to work better for my situation.
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1176719%2fhow-to-assign-camera-source-by-its-usb-identity%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
For me, I just needed to run ls /dev/v4l/by-path/
The camera's USB port is consistently updated there, you can check by switching the camera on and off and watching its path value change there.
Alternatively, you can run ls /dev/v4l/by-id/
, but this didn't work for me because all my cameras had the same ID. Specifying by USB port seems to work better for my situation.
add a comment
|
For me, I just needed to run ls /dev/v4l/by-path/
The camera's USB port is consistently updated there, you can check by switching the camera on and off and watching its path value change there.
Alternatively, you can run ls /dev/v4l/by-id/
, but this didn't work for me because all my cameras had the same ID. Specifying by USB port seems to work better for my situation.
add a comment
|
For me, I just needed to run ls /dev/v4l/by-path/
The camera's USB port is consistently updated there, you can check by switching the camera on and off and watching its path value change there.
Alternatively, you can run ls /dev/v4l/by-id/
, but this didn't work for me because all my cameras had the same ID. Specifying by USB port seems to work better for my situation.
For me, I just needed to run ls /dev/v4l/by-path/
The camera's USB port is consistently updated there, you can check by switching the camera on and off and watching its path value change there.
Alternatively, you can run ls /dev/v4l/by-id/
, but this didn't work for me because all my cameras had the same ID. Specifying by USB port seems to work better for my situation.
edited Sep 26 at 22:10
answered Sep 26 at 16:22
steve antwansteve antwan
918 bronze badges
918 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1176719%2fhow-to-assign-camera-source-by-its-usb-identity%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown