Play RTSP Cam Steams Via Linux

Go down

Play RTSP Cam Steams Via Linux

Post by jamied_uk on 8th April 2018, 21:54



Code:
ffplay 'rtsp://username:password@ip_address:port/url'


More

unix.stackexchange.com/questions/25368/how-to-play-rtsp-stream-under-linux-for-the-bosch-autodome-junior-hd-iva-camera


Last edited by jamied_uk on 8th April 2018, 22:43; edited 1 time in total
avatar
jamied_uk
Admin

Posts : 2439
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Play RTSP Cam Steams Via Linux

Post by jamied_uk on 8th April 2018, 22:13

Code
Script To Playback Streams Via Linux Terminal Example


Code:
#!/bin/bash
# jnet.forumotion.com/t1598-play-rtsp-cam-steams-via-linux?highlight=play+rtsp+cam+stream+linux
#
# Usage: ./play.sh ip
#
# ./Cam_Play.sh "192.168.0.34"
#
#

if [ $# -lt 1 ]; then
   echo 1>&2 "$0: Enter IP"
   read ip
fi


ip="$1"
port="554"
#ffplay 'rtsp://username:password@ip_address:'$port'/url'
# ffplay 'rtsp://'"$ip"':'$port''
ffplay "rtsp://$ip:$port"

Code:
./play.sh 192.168.1.14
avatar
jamied_uk
Admin

Posts : 2439
Join date : 2010-05-09
Age : 35
Location : UK

http://address-shortner.co.uk

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum