restreamer: RTSP video source error
I have a IP video from HIKVision, and it can be accessed in VLC with url:
rtsp://admin:12345@192.168.0.25:554
However restreamer doesn’t work on this video source as output:
11 Jan 03:52:23 - [JsonDB] DataBase db/v1.json loaded.
[11-01-2016 04:52:23.184] [INFO] Retrying ffmpeg connection to rtsp://admin:12345@192.168.0.25:554/ after 6000ms (Restreamer)
[11-01-2016 04:52:27.559] [ERROR] error adding one or more outputs: function toString() { [native code] } (Restreamer)
[11-01-2016 04:52:29.187] [INFO] Retry ffmpeg connection to rtsp://admin:12345@192.168.0.25:554/ retrycounter:10 (Restreamer)
[11-01-2016 04:52:29.187] [INFO] start stream repeatToLocalNginx (Restreamer)
11 Jan 03:52:29 - [JsonDB] DataBase db/v1.json loaded.
[11-01-2016 04:52:39.581] [ERROR] error adding one or more outputs: function toString() { [native code] } (Restreamer)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 31 (18 by maintainers)
Commits related to this issue
- Merge pull request #3 from wdalmijn/feat/update-from-upstream fix: merged master — committed to Nesslax/restreamer by wdalmijn 4 years ago
I was facing the exact issue. I got it to work by adding -rtsp_transport tcp to my command, still not sure how? Maybe someone else here can explain this.
Thanks for your FFmpeg output. It says:
Thats really weird…
I have another question: What video resolution are you using in that profile? Please try to use another Video resolution like 720 or 1080. Try to focus on 16:9 resolutions.
If that did not work try to add the
-map 0to the ffmpeg command.Ok lets do it: Please do Step 1) 2) 3) as above explained (see https://github.com/datarhei/restreamer/issues/3#issuecomment-170857541). execute the following command and show me the output.
Thank you for your patience. Keep on streaming!
Sven
@zeeshancornelius FFmpeg first tries using UDP protocol, then if it fails it goes with TCP. But this switch make the stream analyzing process fail (very probably a FFmpeg bug). Instead, by forcing TCP from the start everything works as it should