Code Monkey home page Code Monkey logo

Comments (6)

benbusby avatar benbusby commented on May 28, 2024

I've seen this error before when attempting to stream higher quality video with limited bandwidth, and it seems to be an issue that gets brought up a lot in the Janus Gateway google group. It's most likely throughput related, not MTU, so your best bet is to tweak the settings of the gstreamer pipeline in utils/stream.sh.

If you reduce the bitrate (i.e. from 3000000 to 1000000) and the keyframe-interval / framerate (i.e. from 20 to maybe 15 or 10) and see an improvement, then it's likely just a bandwidth issue. You could also try removing the split udp sink and just do a single stream to see if that helps, but that would remove the ability to record streams via the web app.

Unfortunately there's not a "one size fits all" pipeline to use since bandwidth can vary so much, but with a little tweaking you should be able to get it to a reasonable point with no freezing.

Here's a couple of modified pipelines you can copy paste, try out and see if it works for you (and feel free to adjust the parameters as needed).

Single udpsink

gst-launch-1.0 -v rpicamsrc vflip=true hflip=true preview=false bitrate=1000000 keyframe-interval=10 ! video/x-h264, framerate=10/1 ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=127.0.0.1 port=8004

Forked udpsink (allows for recording)

gst-launch-1.0 -v rpicamsrc vflip=true hflip=true preview=false bitrate=1000000 keyframe-interval=10 ! video/x-h264, framerate=10/1 ! h264parse ! rtph264pay config-interval=1 pt=96 ! multiudpsink clients=127.0.0.1:8004,127.0.0.1:8005

Let me know if one of those (or a different one) ends up working for you.

from piro.

benbusby avatar benbusby commented on May 28, 2024

Any updates?

from piro.

WillChilcutt avatar WillChilcutt commented on May 28, 2024

Hey Ben,

Thanks for responding so quickly and I'm sorry I haven't followed up. Unfortunately I'm building the project with my daughter and we haven't had time to get back to the project. Hoping to work on the project again this coming weekend. I'll let you know the outcome.

Thanks for your time!

from piro.

benbusby avatar benbusby commented on May 28, 2024

No worries (and no rush)! Just wanted to check in and see if there was anything else I could help with.

from piro.

WillChilcutt avatar WillChilcutt commented on May 28, 2024

Hey Ben,

Got a chance to try out your changes and they worked perfectly! Thank you for your help and sorry for the delayed resolution!

I'll let you close this issue out when you're ready.

Thanks again!

from piro.

benbusby avatar benbusby commented on May 28, 2024

Awesome! Iā€™m glad the changes worked for you. Thanks for taking interest in the project and building one!

from piro.

Related Issues (14)

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.