Last active
August 28, 2024 15:56
-
-
Save nishantbadhautiya/723d2504675c2d7665a41df8876c4b95 to your computer and use it in GitHub Desktop.
This is the setting and Lua script files to modify behaviour of MPV Media Player.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Donwload a complete youtube playlist with naming of the file start a digit for Linux: | |
| yt-dlp -f 'bestvideo[height<=720]+bestaudio' -o '/home/nishant/Downloads/Youtube_Playlist/%(playlist_index)s-%(title)s.%(ext)s' --playlist-start 1 --playlist-end SIZE_OF_PLAYLIST 'PLAYLIST_URL' | |
| Donwload a complete youtube playlist with naming of the file start a digit For Windows: | |
| yt-dlp -f 'best[height<=720]' -o 'D:\Discrete_Structure\%(playlist_index)s-%(title)s.%(ext)s' --playlist-start 1 --playlist-end 103 https://www.youtube.com/playlist?list=PLz8TdOA7NTzTk-kaYf8NVfMM4ZDNQKDgA; cd D:\Discrete_Structure; foreach ($i in Get-ChildItem *.webm) { ffmpeg -i "$i" -i "$($i.BaseName).m4a" -c:v copy -c:a aac "$($i.BaseName).mp4"; Remove-Item "$i", "$($i.BaseName).m4a" } | |
| download video with english subtitle enbed with video: | |
| yt-dlp --write-auto-sub --sub-lang en --embed-subs -f "bestvideo[height<=2160]+bestaudio" https://youtu.be/1f6N2UrCK6o | |
| Play video at 1080p on mpv: | |
| mpv --ytdl-format="bestvideo[height<=1080]+bestaudio" https://youtu.be/yIIGQB6EMAM?list=PLjzTjmMJURTqp0TXmBkubucWQtrDq9Dfn | |
| ********************************************************************* | |
| # input.conf | |
| # Set seek amount to 3 seconds | |
| RIGHT no-osd seek 3 exact | |
| LEFT no-osd seek -3 exact | |
| MOUSE_BTN0 cycle pause | |
| UP add volume 5 | |
| DOWN add volume -5 | |
| MOUSE_BTN2 cycle pause | |
| MBTN_LEFT_dbl cycle pause | |
| ******************************************* | |
| # mpv.conf | |
| sub-auto=fuzzy | |
| sub-font-size=30 | |
| keep-open=yes | |
| fs = yes | |
| slang=en | |
| ******************************************* | |
| -- disable_swipe.lua | |
| function on_swipe() | |
| -- Do nothing to disable the swipe behavior | |
| end | |
| mp.add_forced_key_binding("MOUSE_BTN3", "disable_swipe", on_swipe) | |
| ******************************************* | |
| -- disable_swipe2.lua | |
| function on_swipe() | |
| -- Do nothing to disable the swipe behavior | |
| end | |
| mp.add_forced_key_binding("MOUSE_BTN4", "disable_swipe", on_swipe) | |
| ******************************************* | |
| -- disable_volume_swipe.lua | |
| function on_swipe() | |
| -- Do nothing to disable the swipe behavior | |
| end | |
| mp.add_forced_key_binding("MOUSE_BTN6", "disable_swipe", on_swipe) | |
| ******************************************* | |
| -- disable_volume_swipe2.lua | |
| function on_swipe() | |
| -- Do nothing to disable the swipe behavior | |
| end | |
| mp.add_forced_key_binding("MOUSE_BTN5", "disable_swipe", on_swipe) | |
| *************************************************************************** | |
| ***************SOME IMPORTANT COMMAND/SETTING IN UBUNTU******************** | |
| source /home/nishant/anaconda3/bin/activate | |
| conda activate your_environment_name | |
| conda info --envs | |
| conda deactivate | |
| gsettings set org.gnome.desktop.sound event-sounds true/false | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment