Reputation: 121
I have a scenario where I am trying to read from IP camera using RTSP method.
On my development PC everything is working fine, the rtsp url is something like:
rtsp://admin:[email protected]:554
but when I try to test it over a friend's place, he has different camera (Axis IP camera), and the url fails to open. The self generated log is something like:
Error: avformat_open_input()
error message: Server returned 5XX Server Error reply
I tried opening it using HTTP tunneling, but this time I'm getting a different error:
error message: Error number -5 occurred
The latter error message even appears on my dev PC (just to mention that I tried this as well); so HTTP tunnel is no good.
Any one knows how to fix 5XX Server Error?
Thanks,
Upvotes: 2
Views: 8492
Reputation: 121
Actually I ended up knowing his camera is not Axis Q6045-S, it is P3346-VE version.
Whole issue was because of incorrect URL. Correct URL to read from RTSP (for this particular model) is as follows:
rtsp://uname:[email protected]:554/axis-media/media.amp?videocodec=h264
Then everything works fine.
Upvotes: 2