dotfiles

Mahdi's dotfiles
git clone git://mahdi.pw/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

mpv.conf (2138B)


      1 # Main reference:
      2 # https://mpv.io/manual/master/
      3 
      4 # youtube-dl video quality configuration
      5 ytdl-format=bestvideo[height<=480]+bestaudio/best[height<=480]
      6 #ytdl-format=bestvideo[height<=720]+bestaudio/best[height<=720]
      7 #ytdl-format=bestvideo[height<=1080]+bestaudio/best[height<=1080]
      8 #ytdl-format=bestvideo[height<=2160]+bestaudio/best[height<=2160]
      9 
     10 # Start in fullscreen mode by default.
     11 fs=yes
     12 
     13 # force starting with centered window
     14 geometry=40%:60%
     15 
     16 # don't allow a new window to have a size larger than 90% of the screen size
     17 autofit-larger=60%x60%
     18 
     19 # Do not close the window on exit.
     20 #keep-open=yes
     21 
     22 # Do not wait with showing the video window until it has loaded. (This will
     23 # resize the window once video is loaded. Also always shows a window with
     24 # audio.)
     25 #force-window=immediate
     26 
     27 # Disable the On Screen Controller (OSC).
     28 #osc=no
     29 
     30 # Keep the player window on top of all other windows.
     31 #ontop=yes
     32 
     33 # Enable hardware decoding if available.
     34 hwdec=no
     35 #hwdec=auto
     36 
     37 # Pretend to be a web browser. Might fix playback with some streaming sites,
     38 # but also will break with shoutcast streams.
     39 user-agent="Mozilla/5.0"
     40 
     41 # Enable fuzzy searching for subtitles.
     42 sub-auto=fuzzy
     43 
     44 # Display English subtitles if available.
     45 slang=en,en-GB,en-US,eng,english
     46 
     47 # Play Farsi audio if available, fall back to English otherwise.
     48 #alang=fa,en
     49 
     50 # Set max volume to 100%
     51 volume-max=150
     52 volume=75
     53 
     54 # Change title to filename instead of media-title
     55 #title='${filename} - mpv'
     56 #script-opts='osc-title=${filename}'
     57 
     58 # Save video's volume amount and position
     59 # It's when you quit mpv without killing the instance (not working with Shift+Q)
     60 save-position-on-quit
     61 
     62 # Adjusting the window size for music.
     63 [extension.mp3]
     64 video=no
     65 geometry=250x250
     66 [extension.m4a]
     67 video=no
     68 geometry=250x250
     69 
     70 # If webm file is selected, playback forever.
     71 [extension.webm]
     72 loop-file=inf
     73 
     74 # If gif file is selected, playback forever.
     75 [extension.gif]
     76 loop-file=inf
     77 
     78 # If image is selected, keep it forever.
     79 image-display-duration=inf
     80 
     81 # Misc
     82 ## youtube-dl subtitle configuration (non-auto-generated subtitles)
     83 ## Swith to yt-dlp
     84 script-opts=ytdl-all-subs,ytdl_hook-ytdl_path=yt-dlp