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

Most upvoted comments

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:

[rtsp @ 0x39224c0] method PAUSE failed: 551 Option not supported
[rtsp @ 0x39224c0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
"Could not find codec parameters for stream" und "Output file #0 does not contain any stream" = ffmpeg

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 0 to 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.

ffmpeg -rtsp_transport tcp -i rtsp://admin:12345@192.168.0.25:554//Streaming/Channels/1 -map 0 -c copy -f flv /tmp/test.flv

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