RTSP H264 stream support (Feature #197)


Added by grzesiek grz almost 15 years ago. Updated over 12 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:- % Done:

0%

Category:highgui-video
Target version:-
Difficulty: Pull request:

Description

Hi !

I have problem with opening RTSP stream from network camera.
This works fine using livemedia RTSP, but can not make it working on OpenCV.

capture = cvCaptureFromFile("rtsp://l:p@ip"); returns null pointer (on version compiled with gstreamer support), or hangs on (on version without gstreamer support).

Interesting thing that version compiled without gsstreamer support seems to work a bit better - as strace shows that library is trying to play the stream (RTSP DESCRIBE and PLAY commands) - but later - hangs infinitely.

For telling truth I'm not sure what the problem is, I suppose it is something about H264 stream encoding.

Are there any changes to make it working ? :)
Thanks in advance !

Best regards,
Grzesiek22


Associated revisions

Revision 7852b68c
Added by Vadim Pisarevsky over 12 years ago

Merge pull request #197 from asmorkalov:ffmpeg_status_message_fix

Revision d1bdd0a3
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #197 from kovand11:calibrateDebevecFix

History

Updated by Sebastian Krämer almost 15 years ago

Maybe this is fixed by another version(s) of gstreamer and/or ffmpeg..? Probably this can't be fixed in opencv itself, but I'm only guessing here..

Updated by anonymous - almost 15 years ago

For this kind of connection you need to use svn version of opencv using its gstreamer backend

Updated by grzesiek grz almost 15 years ago

decision is right - after manual compilation of ffmpeg with x264 + OpenCV recompilation, it works. So changing bug status to invalid as it does not refer to OpenCV itself, but to supporting libraries (ffmpeg, x264 codec).

Regards and thanks for your support !
Grzesiek

  • Status changed from Open to Done
  • (deleted custom field) set to invalid

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Also available in: Atom PDF