beep boop

  • 0 Posts
  • 72 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle

  • Im on linux and thats all i know, so if you arent i cant help ya…

    You can install mpv from your package manager. This should automatically install yt-dlp as a dependency, but probably not the latest version which is very necessary.

    That means you have to get the latest version from the github https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#release-files Just take the first thing in the table.

    yt-dlp | Platform-independent zipimport binary. Needs Python (recommended for Linux/BSD)

    This yt-dlp file will have to go into your /home/user/.local/bin/ folder, so that it gets used instead of the outdated version installed by your OS when mpv looks for it.

    That should be the basic setup. To use it you just do mpv https://www.youtube.com/watch?v=xvFZjo5PgG0 in your terminal, which will open that video. In my RSS reader i can define a custom browser application, so i just give it mpv as a browser, that way i dont have to open a terminal every time.

    If you want to have a button that redirects youtube vids from your browser to mpv, that requires some more tinkering. If you wanna do that i can write another comment.




  • You should really just do this without any web application. Just use a background shell script that does the resizing automatically on any image file that you dump into a certain folder. I have similar stuff set up for naming and sorting based on geo location data.

    You can even make this work for mobile by having the folder that the script runs on synced to your phone. You take a pic on your phone, it gets synced to your desktop, converted by the script, synced back to your phone.

    This way it also works if you want to share large amount of photos (of a trip or event or something)