Skip Navigation
GitHub - Atreyagaurav/local-mpv: Run MPV with a webserver to control from local network

cross-posted from: https://lemmy.world/post/17984566

> Hi all, > > mpv communities seem to be tiny in lemmy, so I'm sharing it here. > > This is a program I made for music control from local network. > > You can run it in a computer with some local media files, or youtube links or any other links yt-dlp supports. And then with the server, you can control the media player and the playlist from any devices in your local network. So that you can just show a QR code or something to house guests for parties, or have it bookmarked within family to control the music. > > I wanted to make something similar to how youtube app let's you play in TV and such, but my skills were not enough to do that. So I tried a simple alternative that works with computers. In an ideal world, I could make "Play with local mpv server" option come while on other android apps, but I have zero experience in android app development and it looks complicated. > > I know some other programs also give option to control media, but I wanted to give it a go with a simple implementation. Making the web-server was a tricky part. Only tutorial from the rust book was useful here as every other web server developement in rust seems to be async ones using libraries so I would have to make a complicated system to communicate with the mpv. Using the simple Tcp connection let me make a thread with mpv instance in the scope. I do need to support https and file uploads and other things, but I haven't had any luck finding a solution that works with simple Tcp connection like in the tutorial. Let me know if you know anything. > > Github: https://github.com/Atreyagaurav/local-mpv

0
GitHub - Atreyagaurav/local-mpv: Run MPV with a webserver to control from local network

Hi all,

mpv communities seem to be tiny in lemmy, so I'm sharing it here.

This is a program I made for music control from local network.

You can run it in a computer with some local media files, or youtube links or any other links yt-dlp supports. And then with the server, you can control the media player and the playlist from any devices in your local network. So that you can just show a QR code or something to house guests for parties, or have it bookmarked within family to control the music.

I wanted to make something similar to how youtube app let's you play in TV and such, but my skills were not enough to do that. So I tried a simple alternative that works with computers. In an ideal world, I could make "Play with local mpv server" option come while on other android apps, but I have zero experience in android app development and it looks complicated.

I know some other programs also give option to control media, but I wanted to give it a go with a simple implementation. Making the web-server was a tricky part. Only tutorial from the rust book was useful here as every other web server developement in rust seems to be async ones using libraries so I would have to make a complicated system to communicate with the mpv. Using the simple Tcp connection let me make a thread with mpv instance in the scope. I do need to support https and file uploads and other things, but I haven't had any luck finding a solution that works with simple Tcp connection like in the tutorial. Let me know if you know anything.

Github: https://github.com/Atreyagaurav/local-mpv

1
I wish I could screenshot my dreams
  • It's hard to screenshot dreams because you are in your dreams and have very low conscious control over your real body.

    But you can start the screen recording before you goto sleep so that it'll be recorded automatically. You can extract frames. Good luck.

  • HTML with Excel
  • You know how people say "Devil you know is better than God you don't"?

    Excel is that Devil people know. It's not the best tool for a lot of stuffs but it let's people do things.

    I saw a co-worker generate sequence for formula in excel for another cell in excel. They wanted to do average of all January data, instead of averageif/sumif/countif etc, they generated a sequence a1+a13+a25...... And used excels' drag down thing to make the formula. I'm like who could even verify it.

  • Maybe we should all be calling him Terry.
  • Although most people seem to no longer use you as plural. And use you guys, you all, etc because of ambiguity. Similar case with probably happen with they/them and people will learn to communicate singular and plural, no need stop the language progression.

  • What a time to be "ALIVE"
  • Of course. How else do you keep poor people poor and rich richer.

    Poor people: charge them extra for not affording things.

    Rich people: let them buy things they don't need but can afford and then charge poor people to rent those things.

  • Comment on a YT video about Windows on ARM
  • Some software is always going to have problems. Specially if the developer never had to work with linux.

    In my case I think of it like my choice of Linux like how people may choose other lifestyle. It's not about having superior experience in everything, but about general good experience and self satisfaction.

    Just think of it this way, people in the 90s were happy with the softwares they had, so if some subset of software is not available to me it's not end of the world. On the flip side many softwares are only available to me because of linux, my favorite is poppler-tools that allow me to merge PDFs and other pdf related tasks that in windows you'd need to pay Adobe for. If you compare and want things that you can't have it'll always make you unhappy. Everytime you search for a tool, search in linux websites or search source codes and you'll be happy to ignore any tools that have a lot of licensing complications and windows only support. Not saying that's the way to do it, but that's how I do it.

  • Eat shit Spotify.
  • I don’t feel locked in, since there are no Spotify originals etc

    I don't use Spotify so correct me if I'm wrong. But I think Spotify has podcasts that are only available there.

    I told my wife about other open source apps that have music without ads, and even though it had the music, there were some podcasts that were not available without Spotify premium outside of Spotify.

  • Corpos being corpos
  • I think that's why Github suggests MIT as default. Unaware people will just put that. Most open source people just code things they want without thinking much on other aspects. We really need some sort of enforcement to stop companies banking on voluntary work done for the community.

  • Corpos being corpos
  • You can use your library for commercial projects that you have. Just have dual license that requires payment for commercial use or something similar. You don't have to pay yourself

  • Many such cases
  • Most open source tool have the same thing that it feels like it's made by engineers. I think that's because it's true, most FOSS tools are made by engineers for engineers. Because most project start with someone needing something and then creating it and sharing it.

    Chances of a programmer needing something and then making it is a lot higher, than an artist needing it and then making it as then there'd be a need to have the necessary skills to make the software. As someone not from CS field I've seen how much of redundant programs are present for CS related tasks while barely some exists for other fields because the overlap of programmer and that field is low specifically FOSS programmers. And a few programmers that field would have don't have the high level software development skills, so most open source tools made by them are "works on my machine, or works for this specific task" even though with less than 1% more effort they could have made a generalized tool.

  • The Distribution of Users’ Computer Skills: Worse Than You Think (2016)
  • Miniserve is a program for computers. Though you can run it in termux. It just opens a tiny server instance for file sharing, you can download/upload files to a directory directory. Will also show QR for the link.

  • Is Your Driving Being Secretly Scored? The insurance industry, hungry for insights into how people drive, has turned to automakers and smartphone apps like Life360.
  • It is kinda like that. We have a tracker that we added because they increased the insurance rate and said if you install this device we'll keep the rate low based on driving patterns.

    Basically records how often you drive, hard break/sharp turns, after midnight drives, etc. We don't drive the car often so the prob of accident is low but we recently learned that they can consider not driving enough also bad saying it can make you drive recklessly or sth.

  • Removed
    only as in free beer
  • If by editing you mean adding texts (forms) and signing, then Firefox, xournal++, rnote etc.

    If you mean changing the pdf content, then libre office draw for textual pdf, inkscape for graphical pdf.

    I also just open PDF in text editor (or with qpdf's qdf format) and edit certain things. I don't recommend it but due to certain recent events I had to change some font data from PDF and that was the best solution.

  • I made a Gtk GUI to open LaTeX Beamer file, so that you can extract some pages

    cross-posted from: https://lemmy.world/post/11271385

    > Basically, you can choose some slides from an opened .tex file to copy. It also has the function to see which graphics files are included in the selected files, so you know which ones to copy. > > Here is the Github link: https://github.com/Atreyagaurav/beamer-quickie > > The PDF pages are shown using the SyncTeX (if available) so that you can visually choose the slides as long as there is a single .tex source file, (might still work without synctex for simple cases). > > I've made it on Linux, so it hasn't been tested in windows. You probably will need to compile gtk on Windows if you want to make it work. So if someone is really interested let me know, I can give instructions. Even in linux you'll need to install dependencies.

    10
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TH
    thevoidzero @lemmy.world
    Posts 3
    Comments 42