4 ms·
CLI tools to build, browse, and blend your media library
- tetrisgm 2y agoThis seems powerful. What would be interesting use cases? I can dl youtube with yt-dl, but this seems to do more.
- xk3 2y agoThanks. Yes, I use this every day in different situations. Lately I've been scraping a lot of different sites (ex. https://github.com/dongKenny/artveeScraper/issues/4 https://github.com/dongKenny/artveeScraper/issues/4 ) and using `lb du $site.db -D$depth` to view folder sizes at different depths and choosing what to download. I also use it to sort through videos quickly. For example, to watch four videos at once: lb wt --loop --cmd130 exit_multiple_playback --cmd5 'lb process-audio' --cmd6 'mv {} /mnt/d/library/vr/' -u size desc -m 4
- geoffreypoirier 2y agoAny other cookbook-like recipes?
- geoffreypoirier 2y agoDisregard. Reading README.
- xk3 2y agoMost of the commands have pretty detailed examples when you run `-h` But from your feedback I will also add how I use it to the bottom of what already exists!
- blitzar 2y agoManaging a large collection of linux ISOs
- xk3 2y agoYou actually can use it to do that (as a lightweight Git Annex) but if everything is local then you are probably better off using `find` or `locate` You can also track open directories: lb webadd debian.db https://ftp.debian.org/debian/ edit: hmmm this specific site causes the script to essentially loop forever (it keeps adding more and more '/' at the end). weird! I'll fix that
- SuperNinKenDo 2y agoVery cool project, I've been procrastinating for months on making something like this (overengineering everything in my brain) to replace a filesystem based, Bash solution I cooked up years ago. This is way nicer than what I'm currently doing. While I'm at it, forgive me for treating this like a support thread, but I set up an idle mpv window with a socket, and expected that the `--mpv-socket` option would allow me to send videos to the player instance tied to that socket, but that's not how it's working. (It opens a new window instead.) Is this as expected? Is there a way to set up what I'm trying to do some other way? Videos come in all shapes and sizes, and with Wayland not able to remember previous window positions, it's currently completely unworkable to play videos and do work at the same time.
- xk3 2y ago> expected that the `--mpv-socket` option would allow me to send videos to the player instance tied to that socket Ahh that's interesting. I experimented with a setup almost like that before[0]. It increased the complexity quite a bit more than I expected when refactoring some of the features so I decided against it but I recommend checking out the python_mpv_jsonipc library. I still use it in with --auto-seek and -4dtv (interdimensional cable mode) BUT if you wanted a setup like this I think it wouldn't be too difficult to use something like `lb wt -l120 -pf` and then pipe to a program that will send the files to mpv one at a time. or maybe something like: mpv --playlist=<(lb wt vids.db -l120 -pf) > Wayland I recommend checking to see if your window manager can solve this for you [1] I use KDE/KWin so in Window Rules I set mpv to skip taskbar and set Focus stealing prevention to Force extreme so that new mpv windows don't steal focus. But for mpv specifically, you might have luck with an mpv config like this: ontop=yes keepaspect geometry=100%:100% autofit=30%x24% I think the reason I don't set this in KWin directly is because I want to override the geometry depending on if mpv closed fullscreen [2] or if I'm using lb wt with multiple-playback [0]. https://github.com/chapmanjacobd/library/commit/ba5bf174f21aed809d5a000f26cb2538d9ea1731#diff-24ac4f82f41768b236655e6aad16a8617775fe25d17325e9e5e72525ea9b9966 https://github.com/chapmanjacobd/library/commit/ba5bf174f21a... [1]. https://mastodon.social/@tusooa@kazv.moe/110669435048449340 https://mastodon.social/@tusooa@kazv.moe/110669435048449340 [2]. https://github.com/chapmanjacobd/computer/blob/main/.config/mpv/scripts/autofullscreen.lua https://github.com/chapmanjacobd/computer/blob/main/.config/... Maybe there is something else in my mpv config that will help. Feel free to browse it: https://github.com/chapmanjacobd/computer/blob/main/.config/mpv/config https://github.com/chapmanjacobd/computer/blob/main/.config/...