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

no output file #2

Open
MrAredhone opened this issue Jul 4, 2023 · 8 comments
Open

no output file #2

MrAredhone opened this issue Jul 4, 2023 · 8 comments

Comments

@MrAredhone
Copy link

MrAredhone commented Jul 4, 2023

hey there i either cant find the output file
or its not creating it?
is there an easy tutorial somewhere

forgot to mention i also got this error
BambuVideoStream.sln: Visual Studio needs to make non-functional changes to this project in order to enable the project to open in released versions of Visual Studio newer than Visual Studio 2010 SP1 without impacting project behavior.

@SuperTroye
Copy link
Owner

Ok there are several things needed:

  1. The path to the ffmpeg.sdp file that Bambu Studio creates.
  2. The multiple Input settings in OBS studio that this app updates.

This wasn't developed to be very user friendly unfortunately. It was more of a proof-of-concept that someone could modify and extend it, or, use it at face value.

I built it with Visual Studio 2022 on Windows. You could use Visual Studio Code I believe and get it to build and run. Let me know if you have any other questions and I'll try to answer.

@MrAredhone
Copy link
Author

hay thanks
i think i did all the settings in BambuVideoStream\appsettings.Development.json
and when i run the bat file it tells me

E:\BambuVideoStream-master>dotnet run --project BambuVideoStream
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: E:\BambuVideoStream-master\BambuVideoStream
connected to MQTT
but i cant find a text file anywhere with all the print info

@SuperTroye
Copy link
Owner

Ok there isn't a text file with print info. The app connects to OBS Studio and updates the "Sources" settings. See the screenshot of the source settings that will need to be created in OBS Studio.
OBSStudio

@MrAredhone
Copy link
Author

MrAredhone commented Jul 4, 2023

okay then i was looking in the compleet wrong direction
one more quistion those sources between the images and the colorsourse
are those from the websockit plugin or somthing else nvm its text

@MrAredhone
Copy link
Author

MrAredhone commented Jul 4, 2023

okay one more quistion
1 do i need another program like streamer bot because i cant get the text to work
2 what do i put in the text venster do i leave it emtey
if tryde allot
Screenshot 2023-07-04 224339

@lludlow
Copy link

lludlow commented Jul 14, 2023

@SuperTroye tried this out tonight, and it looks like it is not creating the inputs. I tried manually creating a few to see if they get updated but no luck.

WS connection is good, I know mqtt is working since I am using that in HAS

image

@michaeljsmalley
Copy link

michaeljsmalley commented Feb 3, 2024

@lludlow I got frustrated with things and forked/fixed the project to work, including documentation. Check out https://github.com/michaeljsmalley/BambuVideoStream and see my commits and my updated README.md, and I'd bet it solves the error you're getting. What is causing this is that the variables for each reading from the printer are never instantiated because this repository has two critical functions commented out. I uncommented them, thereby allowing these values to instantiate and eliminating the error you report. I also fixed the fact that it doesn't send icons by changing the way images get referenced (it now generates an absolute path instead of being hardcoded to a D: drive that only exists on @SuperTroye's machine). Also, I noticed that it fails if you try to run it again without deleting the BambuStream scene from OBS. This is alpha stuff, and I am not a C# developer at all, but I was happy I have a somewhat functional version going. @SuperTroye if you want to merge my changes into your repo, it might make sense, but I still think there needs to be a way to handle if the requisite Source values are already present in OBS without crashing with a Object reference not set to an instance of an object error. Otherwise people have to delete and recreate the BambuStream "container" Scene in OBS every time they rerun the program. Proof I got this working:

Without icons:
image

After icon fix:
image

NOTE: I don't have video because I run an old version of the X1C firmware (by choice).

@DrEsteban
Copy link
Contributor

@michaeljsmalley @lludlow I've done a pretty big overhaul of this project in my fork: https://github.com/DrEsteban/BambuVideoStream

I also configured pipelines to build and host binaries as Releases, so you can just download and execute straightaway.

I submitted it for PR to this repo in #5. Looks like OP has approved it, just hasn't merged into his master yet.

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

No branches or pull requests

5 participants