Page 1 of 1

How to play ip camera video via RTSP in c++(winapi)?

Posted: 01 Apr 2016 11:20
by abcdwell
Hello, dears.

So nice to find here VLC family.

Currently, I'm bothering by play ip camera video/stream via RTSP a lot.

Let me try to describe my ideas as below:

Hardware: IP camera(H264 codec)
Software: window7 + VLC 2.2.1 + visual studio 2008(VC++), actually I'm using C++ and winapi for coding, no MFC.

#1. what I already did: I can using VLC-->Media-->Open Network Stream--> Enter RTSP://192.168....../rtsp_tunnel,
then the camera video can be played smoothly;
[img]D:\VLC_RTSP.PNG[/img]

#2. my question is:
2.1) is there any command to support me to do the same operation as above #1?
I run the "vlc --H" under cmd.exe, looking for the help.txt, unfortunately no this command;

2.2) can I implement same function similar with 2.1 in my C++ code to play the ip camera stream? to integrate the play ui in my program or separate in vlc, both are ok.
if yes, what library or dll I can use? do you have any manual or instruction, or link for it?
any help link and document is highly appreciated, thank you all:)

Re: How to play ip camera video via RTSP in c++(winapi)?

Posted: 28 Jun 2016 09:58
by Jean-Baptiste Kempf
Read the libVLC documentation.