V
V
Vladislav2016-02-29 17:53:16
linux
Vladislav, 2016-02-29 17:53:16

How to get video stream from IP camera via RTSP/RTP in Linux(Debian)?

Has anyone encountered receiving a video stream from an IP camera via the RTSP / RTP protocol in their program?
Does anyone have ready-made examples or libraries for getting a video stream?
Link example: "rtsp://xxx.xxx.xxx.xxx:554/user=USER&password=PASSWORD&channel=1&stream=0?.dtp".
ps Preferably with screwed h264 :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hocok_B_KapMaHe, 2016-02-29
@Hocok_B_KapMaHe

I got it like this:
ffmpeg -rtsp_transport tcp -i rtsp://user:[email protected]:554/channel=1&stream=0?.dtp -vcodec copy -an -y out.mp4
If necessary in the program then here are some tutorials
dranger.com/ffmpeg/tutorial01.html

O
Onito, 2016-02-29
@Onito

vlc player, I don’t know how in Linux, but in Windows you press control + N and opens a window where you need to twist the rtsp link, and that’s it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question