vladpen / python-rtsp-server Goto Github PK
View Code? Open in Web Editor NEWLightweight, zero-dependency proxy and storage RTSP server
License: MIT License
Lightweight, zero-dependency proxy and storage RTSP server
License: MIT License
Hi,
when I run python main.py, and then vlc rtsp://192.168.0.105:4554/camera-has
, I see the following error:
Client: error: can't handle request from 192.168.0.109: invalid camera hash
by the way,
I installed a usb cam to ARM board, and then I would like to use your code to read the cam without decoding and send the data as rtsp. I changed the cameras in config.py file as follows:
cameras = {
'some-URL-compatible-string/including-UTF-characters': {
'path': '.',
'url': 'rtsp://192.168.0.105:4554/<uri>',
# 'storage_command': 'any *nix command for saving rtsp stream to a file',
},
}
When I start main.py file it says:
*** Client: start listening 0.0.0.0:44141 ***
Access is denied.
Line 27 in ced9c68
Вот тут жестко забито 0.0.0.0, хотелось бы менять адрес, где слушать, в конфиге. Я кстати думал, что это local_ip в конфиге, в общем немного путано в этом плане на мой взгляд.
Не могу разобраться как подключить камеры по rtsp ссылкам в файле конфигурации. Не могли бы вы более подробней описать этот момент?
VLC воспроизводит, MPV (и, соответственно, ffmpeg) - нет. Пишет CSeq 3 expected, 0 received.
Дебаг со стороны сервера выглядит так:
~~~ Client: read
SETUP rtsp://127.0.0.1:4554/Серверная/track1 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
CSeq: 3
User-Agent: libmpv
~~~ Client: write
RTSP/1.0 200 OK
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Session: z37o9h5cf;timeout=60
Client: connection closed: 127.0.0.1:40300
Если MPV напрямую к камере подключить, то все ок.
Приветствую. Не могу проиграть VLC поток от сервера. Поток от камеры отдается по вот такому адресу rtsp://login:[email protected]:554/axis-media/media.amp
В storage пишется, отдельно поток VLC воспроизводит, а вот через сервер вида rtsp://ip:4554/hash выдает ошибку
Client: error: can't handle request from 192.168.1.176: Invalid track ID in reply
С хиквижн работало, с аксисом не хотит :( Куда копать?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.