This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gw=$(ip route get 8.8.8.8 | grep via | awk '{print $3}') && ping -W 2 -c 1 $gw > /dev/null 2>&1 && echo $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vlc -vvv /home/heroapps/smartiptv/assets/videos/interlaced_bein11.ts --sout '#transcode{vcodec=mp2v,vb=2000,scale=.5,acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp{ttl=1},mux=ts,vsync=1,dst=236.1.1.1:9000}' --loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i INPUTFILE -vf "scale=960:540" -vcodec mpeg2video -acodec mp2 -b:v 25M -b:a 192k -muxrate 25M -f mpegts OUTPUTFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make sure we have the dev tools | |
yum groupinstall "Development Tools" | |
# Just in case you started installing dependencies from yum | |
yum -y remove libnfnetlink | |
# lets put the source code here | |
mkdir -p ~/.src |