Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtsp connection problem from openCV c++ #3187

Closed
12 tasks
MyraBaba opened this issue Apr 3, 2024 · 1 comment
Closed
12 tasks

rtsp connection problem from openCV c++ #3187

MyraBaba opened this issue Apr 3, 2024 · 1 comment

Comments

@MyraBaba
Copy link

MyraBaba commented Apr 3, 2024

Which version are you using?

bluenviron/mediamtx:latest

Which operating system are you using?

ubuntu 22.04

  • [X ] Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

Describe the issue

Description

Describe how to replicate the issue

Hi,

I starting docker :

docker run --rm -it --network=host bluenviron/mediamtx:latest

and publishing the video :

ffmpeg -re -stream_loop -1 -i /home/acc//4K_1920.ts -c copy -f rtsp -rtsp_transport tcp rtsp://localhost:8554/mystream

I can see with ffplay but it waits 5-10 seconds to start.

on the other hand I cant connect through c++ openCV cap.open..

the c++ code connect normal camera rtsp but cant connect rtsp://localhost:8554/mystream .

Best

ERROR:
[ WARN:4] global ./modules/videoio/src/cap_gstreamer.cpp (963) open OpenCV | GStreamer warning: cannot find appsink in manual pipeline
[ WARN:4] global ./modules/videoio/src/cap_gstreamer.cpp (616) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ERROR:4] global ./modules/videoio/src/cap.cpp (164) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.4) ./modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): rtsp://127.0.0.1:8554/mystream in function 'icvExtractPattern'

Error opening video sources
video Okundu - 2

  1. start the server
  2. publish with ...
  3. read with ...

Did you attach the server logs?

no

Did you attach a network dump?

no

@aler9
Copy link
Member

aler9 commented May 14, 2024

Hello, the problem is explained in the log returned by OpenCV:

[ WARN:4] global ./modules/videoio/src/cap_gstreamer.cpp (963) open OpenCV | GStreamer warning: cannot find appsink in manual pipeline

There's an error inside your OpenCV script (which you have not posted) that is preventing OpenCV to correctly interact with any RTSP server. This is not bound to this specific server.

@aler9 aler9 closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants