fieldOfView / WLED-video

A tool to stream video to WLED matrix displays
MIT License
31 stars 4 forks source link

Feature request: Open UDP port to stream video from something like VLC #1

Open rubin110 opened 11 months ago

rubin110 commented 11 months ago

Hi! Your project is awesome! I've got a handful of projects I want to use this on.

I had previously helped out with a project called the Flaschen Taschen. The controller for the LEDs had a screensaver mode, but accepted UDP streams from VLC whenever someone on the LAN wanted to show a video or whatever else.

It would be neat if your project could also just sit idle with an open port that accepts a UDP stream. This would also make it easy to play audio on another machine.

Thanks!

fieldOfView commented 11 months ago

It is always a sort of magical moment when someone finds something I put online without really telling anybody about it. And from a hackerspece too! This project started out at the Pixelbar hackerspace in Rotterdam, NL.

It would be neat if your project could also just sit idle with an open port that accepts a UDP stream.

I'll definitely look further into that. It was already on my list.

Have you by any chance looked into the desktop sharing prerelease? https://github.com/fieldOfView/WLED-video/releases/tag/v0.0.2-DEV

rubin110 commented 11 months ago

Haha. A good friend at Noisebridge wanted to make a smaller pixel display for our Maker Faire booth, and I re-accounted some wild Club Mate bottle display at c-base one of the years we were over to Congress, which basically over night turned into a real project. Someone at c-base did mention the idea originally came from a space in the Netherlands, so thank you! Our USA twist is that we used Corona beer bottles as there is no uniform standard for bottles or milk crates, like the EU.

I'll give the desktop sharing release a try over next weekend. Thank you!

fieldOfView commented 11 months ago

Have you tried specifying an rtp input like this:

python3 wledvideo.py --host 4.3.2.1 rtp://0.0.0.0:1337

This seems to work somewhat.

rubin110 commented 10 months ago

It does work! It'll kill the host after ~10 seconds if there's no incoming stream. There also seems to be some issues with scaling, I couldn't find the right combination of settings.

Annoyingly I assumed wrong that I could stream from VLC while also playing audio from the same system. Is there anyway to have your python spit out audio to the local machine it's running off of?

I haven't been able to try the display sharing/streaming as I don't have a proper environment setup on my Windows machine outside of WSL, and I've been testing from a separate Debian laptop.