Open DVD Menu with VLC from command line












0















For some DVDs, VLC opens track 1 when I open a DVD. I prefer to open the menu. Is there a way from the command line that I can have VLC open the DVD menu? Currently I have to open it and then right click and go to Playback > Title > DVD Menu.










share|improve this question



























    0















    For some DVDs, VLC opens track 1 when I open a DVD. I prefer to open the menu. Is there a way from the command line that I can have VLC open the DVD menu? Currently I have to open it and then right click and go to Playback > Title > DVD Menu.










    share|improve this question

























      0












      0








      0








      For some DVDs, VLC opens track 1 when I open a DVD. I prefer to open the menu. Is there a way from the command line that I can have VLC open the DVD menu? Currently I have to open it and then right click and go to Playback > Title > DVD Menu.










      share|improve this question














      For some DVDs, VLC opens track 1 when I open a DVD. I prefer to open the menu. Is there a way from the command line that I can have VLC open the DVD menu? Currently I have to open it and then right click and go to Playback > Title > DVD Menu.







      dvd vlc-media-player






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 17 '15 at 5:28









      Xu WangXu Wang

      13015




      13015






















          2 Answers
          2






          active

          oldest

          votes


















          0














          You can just pass the name of the folder or drive, e.g.



          vlc dvd://d:


          See the command line reference manual for more details: https://www.videolan.org/doc/play-howto/en/ch04.html






          share|improve this answer
























          • This for me is not equivalent to opening, right-clicking and going to playback > title > DVD Menu. Any way to do the equivalent of that right-click and playback > title > DVD menu from the command line?

            – Xu Wang
            Feb 3 '16 at 7:14



















          0














          I needed to create a script that would determine the drive the DVD was in, if there was a drive, and if there were to many drives tell the user that it can't figure out what drive to do. This is what I came up with:



          #Begin Script

          Add-Type -AssemblyName System.Windows.Forms


          function Get-CDDrives {
          @(Get-WmiObject win32_logicaldisk -filter 'DriveType=5' |
          ForEach-Object { $_.DeviceID })
          }


          $Drive = Get-CDDrives
          if ($Drive.count -gt 1) {[System.Windows.Forms.MessageBox]::Show("Unfortunately, you have more than one DVD drive, and I'm not smart enough to know which one to use for you video." , "Error" , 0)}
          if ($Drive.count -eq 1) {& "C:Program Files (x86)VideoLANVLCvlc.exe" dvd:///"$Drive"}
          if ($Drive.count -lt 1) {[System.Windows.Forms.MessageBox]::Show("Hmmm... I can't seem to find a DVD drive on your computer." , "Error" , 0)}
          #End Script


          Obviously, change the path to the VLC EXE if you need to. Here are the pictures of some of errors:
          More than one drive.



          If No drives are detected.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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/3.0/"u003ecc by-sa 3.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%2fsuperuser.com%2fquestions%2f958320%2fopen-dvd-menu-with-vlc-from-command-line%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You can just pass the name of the folder or drive, e.g.



            vlc dvd://d:


            See the command line reference manual for more details: https://www.videolan.org/doc/play-howto/en/ch04.html






            share|improve this answer
























            • This for me is not equivalent to opening, right-clicking and going to playback > title > DVD Menu. Any way to do the equivalent of that right-click and playback > title > DVD menu from the command line?

              – Xu Wang
              Feb 3 '16 at 7:14
















            0














            You can just pass the name of the folder or drive, e.g.



            vlc dvd://d:


            See the command line reference manual for more details: https://www.videolan.org/doc/play-howto/en/ch04.html






            share|improve this answer
























            • This for me is not equivalent to opening, right-clicking and going to playback > title > DVD Menu. Any way to do the equivalent of that right-click and playback > title > DVD menu from the command line?

              – Xu Wang
              Feb 3 '16 at 7:14














            0












            0








            0







            You can just pass the name of the folder or drive, e.g.



            vlc dvd://d:


            See the command line reference manual for more details: https://www.videolan.org/doc/play-howto/en/ch04.html






            share|improve this answer













            You can just pass the name of the folder or drive, e.g.



            vlc dvd://d:


            See the command line reference manual for more details: https://www.videolan.org/doc/play-howto/en/ch04.html







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 1 '16 at 9:07









            David d C e FreitasDavid d C e Freitas

            2,96331927




            2,96331927













            • This for me is not equivalent to opening, right-clicking and going to playback > title > DVD Menu. Any way to do the equivalent of that right-click and playback > title > DVD menu from the command line?

              – Xu Wang
              Feb 3 '16 at 7:14



















            • This for me is not equivalent to opening, right-clicking and going to playback > title > DVD Menu. Any way to do the equivalent of that right-click and playback > title > DVD menu from the command line?

              – Xu Wang
              Feb 3 '16 at 7:14

















            This for me is not equivalent to opening, right-clicking and going to playback > title > DVD Menu. Any way to do the equivalent of that right-click and playback > title > DVD menu from the command line?

            – Xu Wang
            Feb 3 '16 at 7:14





            This for me is not equivalent to opening, right-clicking and going to playback > title > DVD Menu. Any way to do the equivalent of that right-click and playback > title > DVD menu from the command line?

            – Xu Wang
            Feb 3 '16 at 7:14













            0














            I needed to create a script that would determine the drive the DVD was in, if there was a drive, and if there were to many drives tell the user that it can't figure out what drive to do. This is what I came up with:



            #Begin Script

            Add-Type -AssemblyName System.Windows.Forms


            function Get-CDDrives {
            @(Get-WmiObject win32_logicaldisk -filter 'DriveType=5' |
            ForEach-Object { $_.DeviceID })
            }


            $Drive = Get-CDDrives
            if ($Drive.count -gt 1) {[System.Windows.Forms.MessageBox]::Show("Unfortunately, you have more than one DVD drive, and I'm not smart enough to know which one to use for you video." , "Error" , 0)}
            if ($Drive.count -eq 1) {& "C:Program Files (x86)VideoLANVLCvlc.exe" dvd:///"$Drive"}
            if ($Drive.count -lt 1) {[System.Windows.Forms.MessageBox]::Show("Hmmm... I can't seem to find a DVD drive on your computer." , "Error" , 0)}
            #End Script


            Obviously, change the path to the VLC EXE if you need to. Here are the pictures of some of errors:
            More than one drive.



            If No drives are detected.






            share|improve this answer






























              0














              I needed to create a script that would determine the drive the DVD was in, if there was a drive, and if there were to many drives tell the user that it can't figure out what drive to do. This is what I came up with:



              #Begin Script

              Add-Type -AssemblyName System.Windows.Forms


              function Get-CDDrives {
              @(Get-WmiObject win32_logicaldisk -filter 'DriveType=5' |
              ForEach-Object { $_.DeviceID })
              }


              $Drive = Get-CDDrives
              if ($Drive.count -gt 1) {[System.Windows.Forms.MessageBox]::Show("Unfortunately, you have more than one DVD drive, and I'm not smart enough to know which one to use for you video." , "Error" , 0)}
              if ($Drive.count -eq 1) {& "C:Program Files (x86)VideoLANVLCvlc.exe" dvd:///"$Drive"}
              if ($Drive.count -lt 1) {[System.Windows.Forms.MessageBox]::Show("Hmmm... I can't seem to find a DVD drive on your computer." , "Error" , 0)}
              #End Script


              Obviously, change the path to the VLC EXE if you need to. Here are the pictures of some of errors:
              More than one drive.



              If No drives are detected.






              share|improve this answer




























                0












                0








                0







                I needed to create a script that would determine the drive the DVD was in, if there was a drive, and if there were to many drives tell the user that it can't figure out what drive to do. This is what I came up with:



                #Begin Script

                Add-Type -AssemblyName System.Windows.Forms


                function Get-CDDrives {
                @(Get-WmiObject win32_logicaldisk -filter 'DriveType=5' |
                ForEach-Object { $_.DeviceID })
                }


                $Drive = Get-CDDrives
                if ($Drive.count -gt 1) {[System.Windows.Forms.MessageBox]::Show("Unfortunately, you have more than one DVD drive, and I'm not smart enough to know which one to use for you video." , "Error" , 0)}
                if ($Drive.count -eq 1) {& "C:Program Files (x86)VideoLANVLCvlc.exe" dvd:///"$Drive"}
                if ($Drive.count -lt 1) {[System.Windows.Forms.MessageBox]::Show("Hmmm... I can't seem to find a DVD drive on your computer." , "Error" , 0)}
                #End Script


                Obviously, change the path to the VLC EXE if you need to. Here are the pictures of some of errors:
                More than one drive.



                If No drives are detected.






                share|improve this answer















                I needed to create a script that would determine the drive the DVD was in, if there was a drive, and if there were to many drives tell the user that it can't figure out what drive to do. This is what I came up with:



                #Begin Script

                Add-Type -AssemblyName System.Windows.Forms


                function Get-CDDrives {
                @(Get-WmiObject win32_logicaldisk -filter 'DriveType=5' |
                ForEach-Object { $_.DeviceID })
                }


                $Drive = Get-CDDrives
                if ($Drive.count -gt 1) {[System.Windows.Forms.MessageBox]::Show("Unfortunately, you have more than one DVD drive, and I'm not smart enough to know which one to use for you video." , "Error" , 0)}
                if ($Drive.count -eq 1) {& "C:Program Files (x86)VideoLANVLCvlc.exe" dvd:///"$Drive"}
                if ($Drive.count -lt 1) {[System.Windows.Forms.MessageBox]::Show("Hmmm... I can't seem to find a DVD drive on your computer." , "Error" , 0)}
                #End Script


                Obviously, change the path to the VLC EXE if you need to. Here are the pictures of some of errors:
                More than one drive.



                If No drives are detected.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 2 '16 at 18:58









                Mokubai

                58.1k16139157




                58.1k16139157










                answered Sep 2 '16 at 15:58









                randomhelpfulnessrandomhelpfulness

                6911




                6911






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f958320%2fopen-dvd-menu-with-vlc-from-command-line%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

                    How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                    is 'sed' thread safe

                    How to make a Squid Proxy server?