Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to turn this into a ffmpeg stream? #37

Closed
stoneobscurity opened this issue Feb 27, 2024 · 3 comments
Closed

is there a way to turn this into a ffmpeg stream? #37

stoneobscurity opened this issue Feb 27, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@stoneobscurity
Copy link

1] is there way to turn the widescreen div area into a ffmpeg stream? something i could open up in VLC as a network stream.

2] how do i pass in the location and checkbox settings to do automated startup? querystring? conf file? docker -e configs?

@stoneobscurity stoneobscurity added the enhancement New feature or request label Feb 27, 2024
@netbymatt
Copy link
Owner

  1. This isn't on my roadmap
  2. This is being worked in on Specify parameters in query args for kiosk/ambient display #33

@zshall
Copy link

zshall commented Mar 20, 2024

@stoneobscurity I wanted to make a video stream too and figured out a way to get it done, though it requires some setup. Here's how I did it:

  • Create a Ubuntu 22.04 virtual machine, bridged to your LAN
  • Install Docker
  • Get ws4kp running as a Docker image on the port of your choosing
  • Install Monaserver as a Docker image on the default ports
  • Install OBS Studio in the VM; set the streaming address to rtmp://localhost with stream key weather. Note that you need to install OBS from the PPA source (instructions in that link), not through the default apt package for the next steps to work properly.
  • Set a base (canvas) resolution of 640x480 under OBS's video settings
  • Add a Browser source that's 640x520 and point it to your ws4kp instance, e.g. http://localhost:8080
  • Right click on the Browser source and select the "Interact" option. Now, use the interface to input your desired location.
  • Move the Browser source down, moving the location bar out of view. Position the WeatherStar display in the center of the canvas.
  • Click "Start Streaming" with Monaserver running.
  • On a your target computer, open VLC or a different player that supports MP4 streaming and open http://[vm-hostname]/weather.mp4, assuming that you have Monaserver bridged to port 80.
  • It should be playing!

image

Caveats

  • If you restart OBS, it seems that the WeatherStar display scales to almost the full width and height but not quite, so you need to resize the browser source twice to fix the issue. Moving the location bar below the display (modifying the project) may help.

@Sonny-Crockett
Copy link

Sonny-Crockett commented May 21, 2024

Awesome work @zshall!

Is it possible to use https://github.com/AlexxIT/go2rtc for any part of this? I am already using it for another project and just trying to double up where I can haha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants