21

I tried to open a blu ray with VLC, but I got this error message:

VLC is unable to open the MRL 'bluray:///dev/sr0'. Check the log for details.

For further information I have to read a log from VLC, but I can not find any log, I only found with which vlc where vlc is located, namely

/usr/bin/vlc

I went there, but found no log file.

9

You can set the VLC log file location directly in the client by going into the options Tools -> Preferences -> Select "ALL" -> Advanced -> Logging. You can also set the verbosity 0: silent, 1: error/info, 2: warning, 3: debug depending on the level of information you would like in the log file. Then restart the VLC client for the changes to take effect.

  • thx, this narrows my search, however there are many log files in /var/log , do not know how to find the one which belongs to vlc – sharkant Apr 28 '17 at 20:31
  • 1
    Ok, it might actually be an option you set in the program, Try going to VLC -> Tools -> Preferences -> Select "ALL" -> Advanced -> Logging, as described in the link below: forum.videolan.org/viewtopic.php?t=101543 – Nick Rodriguez Apr 28 '17 at 20:34
  • Did this solve the problem for you? – Nick Rodriguez Apr 28 '17 at 22:32
  • when I follow the path you ve given, than there is indeed a field called "logfilename" but it is blank. Does this mean I have to choose myself a logfilename and only once I ve created it the error messages will be displayed there? – sharkant Apr 29 '17 at 8:24
  • Yes, you have to choose the log file you want to use. Then I believe you will have to restart the player for the changes to take effect. Also, make sure the verbosity is set to either 1 or 2 depending on the detail of error logging you would like. – Nick Rodriguez Apr 29 '17 at 8:36
16

Thanks to Pananoid Panda and Kluegerama for supplying the detail, but I think this answer needs to be more concise. For those of you looking to enable logging in VLC the following steps are confirmed to work on Mac, Linux and Windows.

On a PC go to Tools -> Preferences -> Press "Show All" button (bottom left of pop-up window) -> Advanced -> Advanced settings -> Logger. On a Mac preferences is under the VLC menu, the rest is the same as for PC.

  1. Tick the box to 'Log to file'. Specify log file name under where it says 'Log filename' and click the browse button to set a location for the log file. You must browse to where you want the log file to be, then click Save (Select on a Mac).

  2. Choose Text for the Log format.

  3. Set verbosity to Debug (option 2 on older versions) - other options are Info, Warning (both option 1 on older versions) and Error. The Default option is equivalent to 0 on older versions.

  4. Click the Save button and exit VLC.

  5. Restart VLC.

When you next start VLC, it will be logging all activity to the file specified.

  • Useful writeup, though #2 log to file box no longer present, looks to have been moved to logging from before. – dez93_2000 Oct 13 '18 at 6:58
5

To add to what Paranoid Panda said, you must also enable logging:

Select the "Interface" section in Preferences (after following the same directions for showing all settings), and check the appropriate for "Log to file" and/or "Log to syslog".

  • This should be the accepted answer. (I've never seen an accepted answer with negative votes before!) – Michael Scheper Feb 21 '18 at 20:11
3

You can set the location and verbosity level for the VLC log file like this:

  1. Select ToolsPreferences from the menu (or type CTRL + P)
  2. In the Show settings radio buttons at the bottom left of the preferences window, click 'All'
  3. Go to AdvancedLogging in the preferences tree

According to the manpage, this is what the different levels of verbosity mean:

  • 0 = silent

  • 1 = info/warning messages

  • 2 = debug

1

Before you set VLC to log to file as @AnotherLongUsername described, VLC will be logging to /var/log/syslog. This file is shared among many different applications, so you will have to search for "vlc" in that file to find VLC's messages.

  • Under what facility ? – ychaouche Jul 17 at 15:51
  • @ychaouche sorry, I don't understand your question. What do you mean by "facility"? – Zoltán Jul 18 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.