Closed bmsleight closed 2 years ago
For my notes: what brand/model/version of camera is this?
Suspect error in rtsp streamed to moon-fire
I agree. RFC 8866 section 9 says the origin field is mandatory:
; SDP Syntax
session-description = version-field
origin-field
session-name-field
[information-field]
[uri-field]
*email-field
*phone-field
[connection-field]
*bandwidth-field
1*time-description
[key-field]
*attribute-field
*media-description
and it's not in the hex dump you quoted, so the camera is broken. It's in good company. Literally every camera I've tried is violating some RFC, and my practice is to make them work anyway.
The error is coming from the sdp-types
crate. Last time that crate errored out, @sdroege accepted my PR to make it more permissive. Would you like to write a PR to make origin optional, or would you prefer I do it?
As a workaround in the meantime, moonfire-nvr run --rtsp-library=ffmpeg
should work. I'm planning to remove that code path, though, so we should get this working with the default --rtsp-library=retina
.
sorry work, interrupting life. Workaround is good. I will look at upstream soon. (not used coded rust before), but may take a while.
Sounds good. I'm happy to help as needed/desired.
Are you still planning to look at this? I can do it if not, as a precondition of removing ffmpeg.
Describe the bug Unable to parse SDP: No origin line.
Suspect error in rtsp streamed to moon-fire
https://github.com/aler9/rtsp-simple-server/issues/8 https://github.com/aler9/rtsp-simple-server/commit/2a6050d9b25d0083d115bf3b36f39289a18462e3 https://github.com/aler9/rtsp-simple-server/issues/742
Stream can be read from ffprobe and zoneminder Can stream to ffmpeg on two difference machine from camara.
Does not work- ffmpeg -re -rtsp_transport udp_multicast -i rtsp://10.3.2.205:554/live/ch00_1 -c copy /tmp/output.mp4 Works:- ffmpeg -re -rtsp_transport udp -i rtsp://10.3.2.205:554/live/ch00_1 -c copy /tmp/output.mp4
To Reproduce Steps to reproduce the behavior:
Add camera to moonfire-nvr config then moonfire-nvr run
Expected behavior Live stream to be captured/s
Server (please complete the following information):
Platform:
Additional context Commands below