Does the rtsp endpoint accept codes (like GotoPreset)?

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
bprager
Posts: 1
Joined: Thu Feb 03, 2022 4:08 pm

Does the rtsp endpoint accept codes (like GotoPreset)?

Post by bprager »

Hi,
I am trying to get record videos via ffmpeg but I would like to position the camera to a specific preset.
I know I can set it via http request before recording, like

Code: Select all

$  wget http://user:[email protected]/cgi-bin/ptz.cgi?action=start\&channel=0\&code=GotoPreset\&arg1=0\&arg2=1\&arg3=0\&arg4=0
and then start recording via

Code: Select all

$ ffmpeg -y -rtsp_transport tcp -i rtsp://user:[email protected]:554/cam/realmonitor?channel=1\&subtype=0 -vcodec copy -acodec copy -t 10 test.mp4
But is there a shortcut, so I can tell within the rtsp url to go to a specific preset in one command?

Thank you.
GaryOkie
Posts: 418
Joined: Mon Apr 27, 2020 7:23 pm

Re: Does the rtsp endpoint accept codes (like GotoPreset)?

Post by GaryOkie »

no, rtsp cannot do that. The cgi commands are specific to Dahua and its OEMS.
GaryOkie
Posts: 418
Joined: Mon Apr 27, 2020 7:23 pm

Re: Does the rtsp endpoint accept codes (like GotoPreset)?

Post by GaryOkie »

I meant to say ffmpeg cannot do that.

Dang edit button had already disappeared.
Post Reply