kanolas / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Problem using ffmpegframegrabber with a remote camera that needs login #331

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, i'm Fernando and i'm using javaCV for connect to an ip camera (with rtsp). 
It works well with urls that doesn't require a login

 ( FFmpegFrameGrabber grabber = new FFmpegFrameGrabber("rtsp://192.168.76.104"); )

but when I modify the url to access one camera that needs username and password

(  FFmpegFrameGrabber grabber = new 
FFmpegFrameGrabber("rtsp://username:password@192.168.76.104"); )

i get an error with the following message

com.googlecode.javacv.FrameGrabber$Exception: avformat_open_input() error 
-1094995529: Could not open input "rtsp://username:password@192.168.76.104". 
(Has setFormat() been called?)

Any suggest about how i can connect to that kind of cameras?
Thank you, very much

Original issue reported on code.google.com by Fer.Garc...@gmail.com on 26 Jun 2013 at 8:49

GoogleCodeExporter commented 8 years ago
I think is a problem in ffmpeg. If i run the ffplay on commad line with 
"ffplay rtsp://username:password@192.168.76.104" 
i get this error:

[rtsp @ 00b989e0] method OPTIONS failed: 401 Unauthorized

any suggestions?

Thank you.

Original comment by Fer.Garc...@gmail.com on 26 Jun 2013 at 1:34

GoogleCodeExporter commented 8 years ago
May be related to this known "fixed" bug?

RTSP stream support broken for some RTSP servers
https://ffmpeg.org/trac/ffmpeg/ticket/129

Anyway, you could try to debug the problem as described on that page.

Original comment by samuel.a...@gmail.com on 14 Jul 2013 at 6:09