Coder Social home page Coder Social logo

Delays in YouTube about multistreamer HOT 7 CLOSED

jprjr avatar jprjr commented on July 20, 2024
Delays in YouTube

from multistreamer.

Comments (7)

jprjr avatar jprjr commented on July 20, 2024

That's something I've been trying to figure out for some time myself - you basically hit the nail on the head. There's still video data that needs to be uploaded. I think this is really a limitation of the RTMP module - I would have the exact same thing happen when I just used the rtmp module directly.

My workaround is to have some scenes in OBS for starting and stopping. So I'll start with a basically blank screen that says "Hey I'm starting soon" and end with a blank screen that says "thanks for watching". When I end my stream, I switch to that "thanks" scene and let it keep going for another minute before I actually stop the stream.

EDIT: to clarify, I don't think refreshing or anything is what ended it abruptly. If you keep the dashboard up while streaming, it doesn't actually check if you've stopped in real-time. The logic is like:

  1. When the page loads, check if data is coming in or not.
  2. If data is not coming in, check every 10 seconds to see if data is coming in (to activate the Go Live) button.
  3. If data is coming in, but not going out, activate the Go Live Button.
  4. If data is coming in and going out, activate the End Stream button.

So yeah, the only real-time check is if you pull up the dashboard and don't have any video pushing yet. Then it'll check every 10 seconds so it can dynamically turn on the Go Live button.

Clicking the buttons effectively creates a refresh, so once you've got Go Live, you're in that final state, and it doesn't change unless you hit refresh. Once I hit "Go Live" I typically close out the dashboard and leave it closed the rest of my broadcast (I just keep the chat page up).

from multistreamer.

pogzie avatar pogzie commented on July 20, 2024

Hey thanks for the clarification! I like YouTubes quality and speed so I just tend to use YT for archival footage. Ill probably just add buffer to the start and end to cover everything until we get to figure out if this is indeed a limitation of the RTMP module.

Maybe some other users who has subs in restream would be able to check. I assume they're just using the same implem as you and just charges for custom RTMP. lol

from multistreamer.

pogzie avatar pogzie commented on July 20, 2024

I was getting data on this but I ran into another ?bug? which I will file into another separate thread.

I streamed today to FB, Twitch, and YouTube. I used MSI Afterburner with the system time enabled so I know when it would start. My settings for Multistreamer is to push live as soon as OBS starts.

Pressed the start stream button in OBS 23:51:00 and relatively, it took a bit of time for the streams to be broadcasted, numbers are below:

YT: 23:51:31 started
FB: 23:51:14 started
Twitch: 23:51:30 started

Not bad, I attributed this to Multistreamer coordinating with the necessary API endpoints good advice is to indeed do a filler from the start and end.

Regarding the end of the stream, I dont have any data yet, (more info on why on my next issue filing).

from multistreamer.

jprjr avatar jprjr commented on July 20, 2024

Oh yeah, YouTube always takes a bit to start. In the YouTube API, you have to start pushing video, then poll their endpoint to see if its in a "ready" type status. Once it is, you can trigger the actual "go live" on YouTube. In my testing, it always takes about 30 seconds or so until YouTube is ready.

from multistreamer.

jprjr avatar jprjr commented on July 20, 2024

Hey, just a small update. Multistreamer now polls YouTube more often to see if it's ready to go live (from every 30 seconds to every 5 seconds). Hopefully this will reduce some of that delay.

from multistreamer.

pogzie avatar pogzie commented on July 20, 2024

honestly I think this isnt much of a big deal (starting) since indeed it takes time for the application to actually connect.. an added green light on the dashboard on the status of the connection of the services would be good.. a want but not a need. thanks for working on this!

if you want you could close this or keep this open until I get the timestamps for start/end in conjunction to when i pressed the obs button to start/end. at least you would have data to chew on to solve the stop problem (i think the stop is a bigger problem)

from multistreamer.

pogzie avatar pogzie commented on July 20, 2024

Ok I was able to get the data. I think the recent fixes resolved the issue (or probably starting/ending the stream using OBS works better).

OBS stream start: 18:50:00
OBS stream end: 19:15:30

Facebook: 18:50:15 - 19:15:30 (https://www.facebook.com/1549289731752927/videos/2086123858069509/)
YouTube: 18:50:23 - 19:15:30 (https://www.youtube.com/watch?v=V7qoJwgUXrg)
Twitch: 18:50:32 - 16:15:30 (https://www.twitch.tv/videos/240782945)

Thanks for the hard work on the updates. This ticket can be closed (again)

from multistreamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.