Comments (5)
Hey, I made this work by piping the console output to a log file. I know there is higher level logging available, someone else can talk to that.
In the meantime, kill your server and then restart rtsp-simple-server by running the following command:
./rtsp-simple-server |& tee server.log
This will create a server.log file in the same directory as rtsp-simple-server.
You can view the log file by running:
cat server.log
or//
tail -f server.log (this will continually update)
PS, i'm no expert so there might be a better way - but this worked for me.
from mediamtx.
I am unfortunately on Windows.. should've mentioned that:/ Thanks for the suggestion though. That will most definitely work in Linux
from mediamtx.
Hello, regarding monitoring, i think that two separate new features could be implemented:
- an option to log to file instead than logging to stdout, expecially for Windows users that do not want to use console features
- a metrics exporter, compatible with Prometheus, that provides via HTTP the number of connected clients, publishers, readers
Regarding pprof, i added it to monitor RAM and CPU usage; for instance, after enabling the option, you can get CPU
docker run --rm -it --network=host golang:1.14-alpine3.12 go tool pprof -text http://localhost:9999/debug/pprof/profile?seconds=30
or RAM
docker run --rm -it --network=host golang:1.14-alpine3.12 go tool pprof -text http://localhost:9999/debug/pprof/heap
from mediamtx.
both features are available in v0.9.6.
Please look at the configuration file and the README for instructions on how to use both.
from mediamtx.
This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.
from mediamtx.
Related Issues (20)
- WebRTC not work with IPv6
- Adjustable bitrate and fps on the fly
- Support HTTPS in playback server HOT 1
- K8s Deployment goes wrong without giving any useful hint HOT 1
- read SRT not work with interlaced video HOT 1
- read SRT not work with interlaced video HOT 1
- read SRT not work with interlaced video HOT 1
- Rpi Zero Camera fails after several minutes HOT 1
- MediaMTX crashes after enabling recording on path with source on demand HOT 2
- Support bearer token authentication
- API DELETE 404 page not found HOT 1
- Gstreamer OpenCv backend. Error pushing buffer to Gstreamer pipeline HOT 3
- Regarding setting up a fallback for multiple RTSP streams proxied through MediaMTX HOT 1
- Regarding the issue of video recording HOT 1
- Seperate Record Settings HOT 2
- Empty "query" if action="playback" HOT 2
- WebRTC source bad Content-Type -- got 'application/sdp; charset=utf-8' HOT 5
- in HLS, query parameters are not propagated to playlists and segments
- Regarding the issue of not streaming videos HOT 1
- GStreamer RTSP Pipeline doesn't work on MediaMTX 1.8 HOT 3
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 mediamtx.