Ask Your Question
1

Can't open RTSP stream with OpenCV cuda video_reader

asked 2016-11-30 02:51:39 -0600

gopalkildoliya gravatar image

I am running the example samples/gpu/video_reader.cpp and it's working with video files but when I try with any RTSP stream the it gives error.

OpenCV Error: Gpu API call (CUDA_ERROR_FILE_NOT_FOUND [Code = 301]) in CuvidVideoSource, file /home/gopal/opencv-3.0.0/modules/cudacodec/src/cuvid_video_source.cpp, line 66
OpenCV Error: Assertion failed (init_MediaStream_FFMPEG()) in FFmpegVideoSource, file /home/gopal/opencv-3.0.0/modules/cudacodec/src/ffmpeg_video_source.cpp, line 101
terminate called after throwing an instance of 'cv::Exception'
what():  /home/gopal/opencv-3.0.0/modules/cudacodec/src/ffmpeg_video_source.cpp:101: error: (-215) init_MediaStream_FFMPEG() in function FFmpegVideoSource

Aborted (core dumped)

I am using OpenCV 3.1 and CUDA 8.0 on Ubuntu 14.04

edit retag flag offensive close merge delete

Comments

@gopalkildoliya i am also facing the same error. were you able to solve this ?

Pawan gravatar imagePawan ( 2017-10-06 01:02:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-06 11:01:05 -0600

Math gravatar image

Do you have the library opencv_ffmpeg3000.dll in your path? What is your rtsp String?

edit flag offensive delete link more

Comments

Please don't post comment in an answer

LBerger gravatar imageLBerger ( 2016-12-06 15:09:08 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2016-11-30 02:51:39 -0600

Seen: 1,194 times

Last updated: Dec 06 '16