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;









2


















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.










share|improve this question































    2


















    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.










    share|improve this question



























      2













      2









      2








      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 26 at 0:59









      steve antwansteve antwan

      918 bronze badges




      918 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0



















          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.






          share|improve this answer




























            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
            );



            );














            draft saved

            draft discarded
















            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









            0



















            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.






            share|improve this answer































              0



















              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.






              share|improve this answer





























                0















                0











                0









                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.






                share|improve this answer
















                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.







                share|improve this answer















                share|improve this answer




                share|improve this answer








                edited Sep 26 at 22:10

























                answered Sep 26 at 16:22









                steve antwansteve antwan

                918 bronze badges




                918 bronze badges































                    draft saved

                    draft discarded















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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









                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?