Jump to content


Photo

How to enable mpv logging for Theater


  • Please log in to reply
9 replies to this topic

#1 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 09:51 AM

Posted 20 September 2017 - 02:05 AM

The default player in Emby Theater Desktop is mpv. It is a self-contained player that has been incorporated into the Theater app. The Theater app logs don't contain information directly from mpv. MPV can generate it's own logs. If you use Emby Theater Desktop and are experiencing some playback issues, you may want to enable mpv logging. To do this, you need to make an mpv.conf file and add the correct command.

1. Make an mpv folder in this location

%AppData%\Roaming

59c200819a220_Snapshot_220.jpg



2. In the mpv folder, make the file mpv.conf. You can do this using notepad and change the extension from .txt to .conf

59c201fce76cc_Snapshot_221.jpg


3. Add the command log-file= to the mpv.conf. You will need to choose where the log file is saved. In the command you will also need to name the file. I suggest Theater mpv log.txt

It will look something like this: log-file="D:\mpv logs\Theater mpv log.txt"

 

You can also increase the log level by adding this line:

 

https://mpv.io/manua...tions-msg-level

msg-level=

Note:
Each time you play something, this log will be written over. It will not generate new logs.


Edited by Doofus, 07 December 2019 - 06:47 PM.

  • Sammy, SikSlayer, denz and 3 others like this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 149338 posts
  • Local time: 12:51 PM

Posted 20 September 2017 - 11:18 AM

Thanks @Doofus !


  • Sammy and Doofus like this

#3 lorac OFFLINE  

lorac

    Advanced Member

  • Members
  • 475 posts
  • Local time: 09:51 AM
  • LocationVancouver, Canada

Posted 17 February 2019 - 11:49 PM

Also you need to manually create the directory where the log files will be stored if it doesn't already exist.



#4 mrfaulk OFFLINE  

mrfaulk

    Advanced Member

  • Members
  • 230 posts
  • Local time: 05:51 PM

Posted 05 January 2020 - 01:23 AM

any idea how to see mpv.conf entries in the log file?

 

for example, if using mpv with plex, mpv.conf entries are displayed in the mpv log file, you can easily see which mpv.conf entries loaded successfully, which ones didn't, and you can also see if the paths and content of scripts and shaders worked correctly...

 

however using just mpv, i can't seem to see/find any of this in the log file even tho it's easy to tell whether or not the mpv.conf entries and/or scripts/shaders have loaded because of cpu/gpu load and difference in video image.



#5 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 09:51 AM

Posted 05 January 2020 - 01:45 AM

They should be the same unless the two mpv versions are very different. You can also add  ## comments above conf entries. Also, depending on what you're looking for, you may need to elevate the log level. Try msg-level=v



#6 mrfaulk OFFLINE  

mrfaulk

    Advanced Member

  • Members
  • 230 posts
  • Local time: 05:51 PM

Posted 07 January 2020 - 08:51 AM

They should be the same unless the two mpv versions are very different. You can also add  ## comments above conf entries. Also, depending on what you're looking for, you may need to elevate the log level. Try msg-level=v

 

 

my mpv.conf script, log file is created in the specified location but still can't find anything in the log file that specifically references the mpv.conf entries... if you search for mpv.conf in your log file do you come up with a hit? thanks!

log-file="C:\Users\MEDIA\AppData\Roaming\mpv\logs\mpv-log.txt"
msg-level=v

 



#7 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 09:51 AM

Posted 07 January 2020 - 03:41 PM

Unless you make profiles, you just have to dig through it. What specifically are you looking for?

#8 sundaypex153 OFFLINE  

sundaypex153

    Newbie

  • Members
  • 4 posts
  • Local time: 06:51 PM

Posted 09 February 2020 - 07:55 PM

doofus i dont understad... what do you when you say Add the command log-file= to the mpv.conf.



#9 sundaypex153 OFFLINE  

sundaypex153

    Newbie

  • Members
  • 4 posts
  • Local time: 06:51 PM

Posted 09 February 2020 - 07:55 PM

can you please explain?



#10 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13578 posts
  • Local time: 09:51 AM

Posted 09 February 2020 - 08:09 PM

Did you not see the examples? What is confusing you?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users