Giter Club home page Giter Club logo

Comments (6)

bradisbell avatar bradisbell commented on September 14, 2024

What browser are you using?

Try outputting your stream to a file in-browser rather than writing it out to the Web Socket, and then test playing that video in VLC. If that is working, try passing that same file to FFmpeg with -re to replay it in realtime to Facebook. These steps will help you narrow down where the issue is occurring.

I had a similar issue once where the encoding computer wasn't able to keep up a reasonable framerate. Since Facebook optimizes for low latency, if the video stalled out for too long, sometimes the stream would become corrupted.

from canvas-streaming-example.

namgk avatar namgk commented on September 14, 2024

from canvas-streaming-example.

bradisbell avatar bradisbell commented on September 14, 2024

If you feed that same file into Facebook via FFmpeg, is the problem reproducible? If so, can you upload that file somewhere? Perhaps a Facebook engineer can use it to reproduce the problem on their end.

The problem I had previously was on the browser end. Excessive CPU load caused frames to drop out for more than the length of a typical keyframe, which caused similar visual issues. Additionally, if the output video ends up automatically scaling (due to load), and if it does so rapidly, this can also cause issues in the Facebook video.

from canvas-streaming-example.

namgk avatar namgk commented on September 14, 2024

from canvas-streaming-example.

bradisbell avatar bradisbell commented on September 14, 2024

Unfortunately, there's no way to set the keyframe interval with MediaRecorder. In the past, Facebook's Live API would accept video with different keyframe intervals. If that's no longer the case, you will have to transcode server-side by modifying that FFmpeg command line.

from canvas-streaming-example.

namgk avatar namgk commented on September 14, 2024

Again, thank you very much!

from canvas-streaming-example.

Related Issues (9)

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.