https://www.streaming-servers.com/

Script RTMP Decoder Boot Script

Place your Business Ad here !
D

DM 3

Guest
I've cleaned up your code a bit and put some sanity check in, auto omxplayer installer and added some comments to help people understand what each line is doing. I also corrected some syntax errors in your code

To view the content, you need to Sign In or Register.
 
Place your Business Ad here !
D

DM 3

Guest
Why would anyone want to decode an rtmp URL to the HDMI monitor all the time on boot, seems a bit odd and the wrong way around to me
 

sureshece

New Member
Member
Joined
Jul 28, 2019
Messages
10
Likes
74
Points
24
Does Any One Have Raspberry Pi Rtmp , Udp , Http Decoder Software
 
Place your Business Ad here !

vijay

New Member
Member
Banned
Joined
Apr 8, 2020
Messages
71
Likes
113
Points
44
Warning points
200
I've cleaned up your code a bit and put some sanity check in, auto omxplayer installer and added some comments to help people understand what each line is doing. I also corrected some syntax errors in your code

Code:
#!/bin/sh
clear
stty -isig
echo "For Details Visit: https://www.worldofiptv.com/"

# omxplayer sanity check
command -v omxplayer >/dev/null 2>&1 || { sudo apt-get install -y -qq omxplayer; } >> $LOG

# dont flood the system
sleep 2

# check online status
ping -c1 -s1 www.google.com
pingStatus=$?

# results of online status check
if [ $pingStatus = "0" ] then
    # we are online, lets stream

    #clear the screen contents
    clear

    echo "Stream Starting Please wait..."

    # launch the stream
    omxplayer -o hdmi --no-keys --vol 600 rtmp://localhost:1935/live/mystream
else
    # internet appears offline, launch mp4 placeholder

    #clear the screen contents
    clear

    echo "Internet disconnected. Please check Internet"

    # dont flood the system
    sleep 1

    echo "Starting Promo"

    # dont flood the system
    sleep 1

    # launch mp4 placeholder
    omxplayer -o hdmi --no-keys --vol 600 /home/pi/promo.mp4
fi

Thanks,,I will test the same with my Rpi3
 
Top