Comments (6)
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.
Any updates?
from piro.
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.
No worries (and no rush)! Just wanted to check in and see if there was anything else I could help with.
from piro.
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.
Awesome! Iām glad the changes worked for you. Thanks for taking interest in the project and building one!
from piro.
Related Issues (14)
- test_motors.sh missing HOT 1
- 3rd Servo? HOT 6
- Arrow Keys don't trigger wheels HOT 3
- FLASK_APP environment variable required by setup.sh HOT 2
- Mobile servo controls HOT 1
- Only works with HTTPS connections HOT 7
- No motor HOT 1
- App assumes it is running from under the pi user directory
- Recordings fail when raztot/app/static/captures/ doesn't exist
- raztot does not work properly when Janus Gateway isn't started HOT 3
- Janus problem. HOT 8
- Setup script issues HOT 4
- Remove unneeded packages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piro.