bytedeco/javacv

avformat_open_input() error -1330794744: Could not open input

Open

#1,543 建立於 2020年12月2日

在 GitHub 查看
 (18 留言) (0 反應) (0 負責人)Java (1,583 fork)batch import
help wantedquestion

倉庫指標

Star
 (6,985 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南