Page 2 of 2

Re: RTSP (VLC) and ffmpeg syntax

Posted: Wed Oct 20, 2021 11:38 am
by Revo2Maxx
I mean this one does bring back some data or my AI camera not sure if it is the info your looking for but just use your cameras IP in place of mine
http://10.0.0.160/cgi-bin/devVideoAnaly ... &channel=1

Re: RTSP (VLC) and ffmpeg syntax

Posted: Wed Oct 20, 2021 2:00 pm
by GaryOkie
I recommend searching for and downloading the Amcrest HTTP API doc to learn what all the "Get" device capabilities commands are. There are a lot.

I find this command to be the most useful to list the current active configurations...

<ip>/cgi-bin/configManager.cgi?action=getConfig&name=All

Re: RTSP (VLC) and ffmpeg syntax

Posted: Wed Oct 20, 2021 3:49 pm
by YetAnotherDave
Now working on Home Assistant with the Dahua HACS integration https://github.com/rroller/dahua

I appreciate your quick responses. Thanks again!

Re: RTSP (VLC) and ffmpeg syntax

Posted: Wed Oct 20, 2021 3:55 pm
by YetAnotherDave
GaryOkie wrote: Wed Oct 20, 2021 2:00 pm I recommend searching for and downloading the Amcrest HTTP API doc to learn what all the "Get" device capabilities commands are. There are a lot.

I find this command to be the most useful to list the current active configurations...

<ip>/cgi-bin/configManager.cgi?action=getConfig&name=All
Will do.. that returns a LOT of data. very nice.

Re: RTSP (VLC) and ffmpeg syntax

Posted: Tue Oct 26, 2021 11:01 pm
by davidnpgtech
An alternative that I used instead of FFServer was Red5 Pro. On Ubuntu, I used this line:

Code: Select all

ffmpeg -f pulse -i default -f video4linux2 -thread_queue_size 64 -framerate 25 -video_size 640x480 -i /dev/video0 -pix_fmt yuv420p -bsf:v h264_mp4toannexb -profile:v baseline -level:v 3.2 -c:v libx264 -x264-params keyint=120:scenecut=0 -c:a aac -b:a 128k -ar 44100 -f rtsp -muxdelay 0.1 rtsp://localhost:8554/live/paul