Last active
January 16, 2026 07:24
-
-
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 | |
| ***************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