avformat_open_input() error -1330794744: Could not open input
#1,543 opened on Dec 2, 2020
Repository metrics
- Stars
- (6,985 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
hello:
i'm use FFmpegFrameGrabber to covert rtsp video stream data to FLV,when i use method start(),it return error infomation.The fllowing is the error message
org.bytedeco.javacv.FrameGrabber$Exception: avformat_open_input() error -1330794744: Could not open input "rtsp://admin:password@192.168.3.130:554/MPEG-4/ch1/main/av_stream". (Has setFormat() been called?) at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:848) at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:780)
Here is my code ,hope to get your help ,thanks very much!
grabber = new FFmpegFrameGrabber(“rtsp://admin:password@192.168.3.130:554/MPEG-4/ch1/main/av_stream”); grabber.setOption("stimeout", "2000000"); // this line doesn't work grabber.start();
i want to know how to repair it and what the return error code -1330794744 mean or where can i find the description of the error code.